Loading calculators...
Fetching calculator categories and tools for this section.
Preparing tools and content for you. This usually takes a second.
Fetching calculator categories and tools for this section.
Direct answer — calculate capital gains tax on a property sale
Capital gains on sale of property ≈ sale price − selling expenses − adjusted basis. On a qualifying primary residence, Section 121 excludes up to $250,000 (single) or $500,000 (married filing jointly) — so many home sales owe $0 federal capital gains tax. Hold >1 year for long-term rates (0/15/20%); ≤1 year is short-term (ordinary rates). State note: CA/NY tax remaining gains as ordinary income; TX/FL have no state income tax. Default model: gain $120,000, excluded $120,000 → federal tax $0. Not tax advice.
Same keywords as our guide: how to calculate capital gains tax on a property sale. Last updated: August 9, 2026.
Formula, Section 121, short vs long-term, and state note — then the interactive calculator.
| Exclusion amount | Up to $250,000 (single / many MFS) or $500,000 (married filing jointly) |
| Ownership test | Owned the home for at least 2 years during the 5 years before the sale |
| Use (main home) test | Lived in it as your primary residence for at least 2 of the 5 years before the sale |
| Frequency | Generally cannot claim the full exclusion more than once every 2 years |
| Does not apply | Typical rental / investment sales (no automatic Section 121); conversions need special rules |
| Type | Hold | Federal |
|---|---|---|
| Short-term | ≤ 1 year | Ordinary income rates (10%–37%) |
| Long-term | > 1 year | Preferential LTCG 0% / 15% / 20% |
| Depreciation recapture | Any (on rentals) | Up to 25% on prior depreciation |
| State | Treatment |
|---|---|
| California | Taxes gains as ordinary income (no preferential state LTCG)Up to ~13.3%; planning ~9.3% on this site |
| New York | Taxes gains as ordinary income (NYC local may add)~6.85% state planning rate here |
| Texas | No state income tax$0 state CG tax — federal only |
| Florida | No state income tax$0 state CG tax — federal only |
| New Jersey | Taxes gains as ordinary income~6.37% planning (higher brackets possible) |
| Illinois | Flat state income tax on gains4.95% flat planning rate |
Model Section 121, holding period (short vs long-term), and depreciation recapture — then open a state landing for CA, NY, TX, FL, NJ, or IL.
State-specific landings
Federal rules + state planning estimate
Need sale proceeds before tax? Home sale calculator
Rental/investment property only
Must own 2+ years and live in 2+ of last 5 years for exclusion
Annual taxable income excluding this sale
Total Capital Gain
$120,000
$120,000 excluded (primary residence)
Holding Period
5.5 years
Long-Term
Federal LTCG Rate
N/A
Tax breakdown
Net proceeds (after tax)
$470,000
Notes
Expanded basis steps for sale-of-property scenarios. Educational federal model — confirm with IRS Pub 523 and a CPA.
| Step | Formula |
|---|---|
| Cost basis | Purchase price + capital improvements |
| Adjusted basis | Cost basis − depreciation |
| Capital gain | Sale price − adjusted basis − selling expenses |
| Taxable gain | max(0, gain − Section 121 exclusion) |
| Federal CG tax | Short-term ordinary rates or long-term 0% / 15% / 20% + recapture ≤ 25% |
Computed with this page's federal model. Ignores NIIT (3.8%) and state tax unless you open a state landing.
| Scenario | Gain | Excluded | Taxable | Est. federal tax |
|---|---|---|---|---|
| Married MFJ primary home (default): $500k sale, $300k purchase, $50k improvements, $30k costs | $120,000 | $120,000 | $0 | $0 |
| Single primary home: $650k sale, $300k basis, $25k costs — gain above $250k exclusion | $325,000 | $250,000 | $75,000 | $11,250 |
| Rental / investment: $400k sale, $60k depreciation, no Section 121 | $135,000 | $0 | $135,000 | $26,250incl. ~$15,000 recapture |
Prose walkthrough: how to calculate capital gains tax on a property sale.
Exclusion
$250k / $500k
Automatically applies primary residence exclusion if qualified
Tax Rate
Up to 25%
Calculates depreciation recapture at up to 25% rate for rental property
Basis
Purchase + Improvements
Maximize cost basis with improvements to reduce taxable gain
Period
Long/Short Term
Automatic calculation of holding period and applicable tax rates
Rates
0%, 15%, 20%
Applies current long-term capital gains tax rates based on income
Net Amount
After All Taxes
Calculate your actual proceeds after all taxes and expenses
Primary residence sale: $500,000 (purchased $300,000, improvements $50,000, expenses $30,000, owned 5 years):
Capital Gain
~$120,000
Excluded
$120,000
Tax Owed
$0
Our Real Estate Capital Gains Tax Calculator simplifies the complex process of estimating capital gains tax on property sales. It applies IRS rules for primary residence exclusions, depreciation recapture, and long-term capital gains rates to provide accurate tax estimates for real estate transactions.
Cost Basis = Purchase Price + ImprovementsAdjusted Basis = Cost Basis - DepreciationCapital Gain = Sale Price - Adjusted Basis - Selling ExpensesTaxable Gain = Capital Gain - Primary Residence ExclusionDepreciation Recapture Tax = Depreciation × 25% (max)Capital Gains Tax = Taxable Gain × Long-Term Rate (0%, 15%, 20%)These formulas calculate real estate capital gains tax with primary residence exclusions ($250k single/$500k married) and depreciation recapture rules. The calculator automatically determines holding period, applies exclusions if qualified, and calculates taxes based on your income and filing status.
Real estate capital gains tax applies when you sell property for more than you paid (adjusted for improvements and depreciation). Primary residences qualify for significant exclusions ($250k/$500k), while investment properties face depreciation recapture and full capital gains tax. Understanding these rules helps maximize tax savings when selling real estate.
Explore other real estate calculators like our Capital Gains Calculator or Rental ROI Calculator.
Get Custom Calculator for Your BusinessDetail for primary residence vs rental — see also the citeable summary table above.
Result: $0 capital gains tax due to primary residence exclusion
The $500,000 exclusion covers the entire gain, resulting in no tax liability.
Result: $26,250 total tax ($15,000 depreciation recapture + $11,250 capital gains)
Rental property sales include depreciation recapture at 25% plus capital gains tax on remaining gain.
Share it with others who need help with real estate capital gains tax calculations
Suggested hashtags: #CapitalGains #PropertySale #RealEstateTax #Section121