?

Capital Gains Tax Calculator

Calculate capital gains tax on real estate property sales. Includes primary residence exclusion, cost basis adjustments, short vs long-term rates, and 1031 exchange information. Get accurate 2026 tax estimates.

$250K-$500K
Home Sale Exclusion
0%-20%
Long-Term Rates
1031
Tax Deferral Exchange

Property Sale Details

Tax Results

Capital Gain
$0
Profit from sale
Taxable Gain
$0
After exclusions
Tax Rate
0%
Long-term
Tax Owed
$0
Federal tax only

Cost Basis Breakdown

Purchase Price: $0
Home Improvements: $0
Adjusted Cost Basis: $0

Net Profit After Tax

Sale Price: $0
Selling Costs: $0
Cost Basis: $0
Capital Gains Tax: $0
Net Profit: $0

2026 Long-Term Capital Gains Tax Rates

Tax Rate Single Married Filing Jointly Married Filing Separately Head of Household
0% $0 - $47,025 $0 - $94,050 $0 - $47,025 $0 - $63,000
15% $47,026 - $518,900 $94,051 - $583,750 $47,026 - $291,850 $63,001 - $551,350
20% Over $518,900 Over $583,750 Over $291,850 Over $551,350

Note: Short-term capital gains (held less than 1 year) are taxed as ordinary income at your marginal tax rate.

??

Primary Residence Exclusion

Exclude up to $250,000 ($500,000 married) of capital gains if you owned and lived in the home for 2 of the last 5 years.

??

Short vs Long-Term

Properties held over 1 year qualify for favorable long-term rates (0%, 15%, 20%). Under 1 year is taxed as ordinary income.

??

1031 Exchange

Defer capital gains tax on investment properties by reinvesting proceeds into a like-kind replacement property within 180 days.

Understanding Capital Gains Tax on Real Estate

How is Capital Gains Tax Calculated?

Capital gains tax on real estate is calculated by determining your gain and applying the appropriate tax rate:

  1. Calculate Gain: Sale Price - Adjusted Cost Basis - Selling Costs = Capital Gain
  2. Adjust Cost Basis: Original Price + Improvements + Purchase Costs
  3. Apply Exclusions: Primary residence exclusion if qualified
  4. Determine Rate: Short-term (ordinary income) or long-term (0%, 15%, 20%)
  5. Calculate Tax: Taxable Gain × Tax Rate = Tax Owed

Example Calculation

You bought a home for $300,000, made $30,000 in improvements, and sold it for $500,000 after 5 years. Your adjusted basis is $330,000. Your gain is $170,000 ($500,000 - $330,000). As a primary residence, you exclude $250,000 (single), resulting in $0 taxable gain and $0 tax owed!

Short-Term vs Long-Term Capital Gains

The holding period significantly impacts your tax rate:

For example, if you're in the 24% tax bracket, holding just one day past the one-year mark could reduce your tax rate from 24% to 15%, saving thousands of dollars.

Primary Residence Exclusion Rules

The Section 121 exclusion allows significant tax savings on your primary home:

Partial Exclusion

If you don't meet the 2-year requirement due to job change, health reasons, or unforeseen circumstances, you may qualify for a partial exclusion. The exclusion is prorated based on the time you lived in the home.

Ways to Reduce Capital Gains Tax

Smart strategies to minimize your tax burden:

Understanding 1031 Exchange

A 1031 exchange (named after Section 1031 of the tax code) allows you to defer capital gains tax on investment properties:

1031 Example

You sell a rental property for $500,000 with a $200,000 gain. Instead of paying $40,000+ in taxes, you use a 1031 exchange to buy a $600,000 rental property. The tax is deferred until you eventually sell without doing another exchange.

What Increases Your Cost Basis?

Your adjusted cost basis reduces your taxable gain. Include these costs:

Do NOT include: Routine repairs and maintenance, homeowners insurance, mortgage interest, property taxes, depreciation recapture (investment property).

State Capital Gains Tax

This calculator shows federal tax only. Many states also tax capital gains as regular income. Check your state's tax laws for the complete picture. States like California, New York, and Oregon have significant state capital gains taxes.

2026 Federal Capital Gains Tax Rates

Capital gains tax rates depend on your taxable income and how long you held the asset. Assets held over 12 months qualify for lower long-term rates:

Long-Term Capital Gains (held > 1 year)

Tax RateSingle FilersMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,351×$533,400$96,701×$600,050$64,751×$566,700
20%Over $533,400Over $600,050Over $566,700

Short-Term Capital Gains (held = 1 year)

Short-term gains are taxed as ordinary income at your marginal income tax rate (10%×37%). This can be 2×3× higher than long-term rates for high earners × making holding for 12+ months one of the most powerful tax strategies available.

Net Investment Income Tax (NIIT): High earners also pay an additional 3.8% NIIT on investment income if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married). This brings the effective maximum federal rate on long-term gains to 23.8%. State taxes (0×13.3%) stack on top.

Frequently Asked Questions

How is capital gains tax calculated on real estate? +

Capital gains tax is calculated by subtracting your adjusted cost basis (purchase price plus improvements) from the sale price to determine your gain. After subtracting selling costs and any applicable exclusions, the remaining taxable gain is taxed at either short-term rates (ordinary income) if held less than 1 year, or long-term rates (0%, 15%, or 20%) if held longer than 1 year. Your specific rate depends on your income level and filing status.

What is the primary residence exclusion? +

The primary residence exclusion (Section 121) allows you to exclude up to $250,000 ($500,000 for married filing jointly) of capital gains from the sale of your primary home. To qualify, you must have owned and lived in the home for at least 2 of the 5 years before the sale. The 2 years don't need to be consecutive, and you can only use this exclusion once every 2 years. This is one of the most valuable tax benefits for homeowners.

What is a 1031 exchange? +

A 1031 exchange (like-kind exchange) allows you to defer paying capital gains tax when you sell an investment property by reinvesting the proceeds into another investment property. You must identify the replacement property within 45 days and complete the purchase within 180 days of selling. The properties must be held for investment or business purposes (not personal use), and you must use a qualified intermediary to handle the funds. This strategy allows investors to defer taxes indefinitely by continuing to exchange properties.

What's the difference between short-term and long-term capital gains? +

Short-term capital gains apply to properties held for 1 year or less and are taxed as ordinary income at your regular tax rate (10% to 37%). Long-term capital gains apply to properties held for more than 1 year and are taxed at preferential rates of 0%, 15%, or 20% depending on your income. For most people, the long-term rate is 15%, which is significantly lower than ordinary income rates. This is why holding real estate for at least one year before selling can result in substantial tax savings.

What improvements increase my cost basis? +

Capital improvements that add value, prolong the property's life, or adapt it to new uses increase your cost basis. This includes: room additions, new roof, HVAC systems, kitchen/bathroom remodels, new flooring, deck/patio construction, landscaping, new windows, insulation, and electrical/plumbing upgrades. Regular maintenance and repairs (painting, fixing leaks, replacing broken fixtures) do NOT increase basis. Keep all receipts and documentation for improvements to reduce your taxable gain when you sell.

Do I pay capital gains tax if I reinvest in another home? +

For primary residences: Simply buying another home does NOT defer capital gains tax. However, if you qualify for the primary residence exclusion ($250K/$500K), your gain may be completely tax-free regardless of whether you buy another home. For investment properties: You can defer tax through a 1031 exchange by following specific rules and timelines. The old "rollover" rule that allowed deferring primary residence gains was eliminated in 1997 and replaced with the current exclusion.

Can I avoid capital gains tax completely? +

Yes, through several methods: (1) Primary residence exclusion - gains under $250K/$500K are tax-free if you meet the 2-year requirement; (2) Hold until death - heirs receive a stepped-up basis and avoid all capital gains tax; (3) 1031 exchanges - defer tax indefinitely by continuing to exchange investment properties; (4) Opportunity Zones - invest gains in qualified zones for potential tax elimination after 10 years; (5) Tax-loss harvesting - offset gains with losses from other investments. Each strategy has specific requirements and limitations.

What if I inherited the property? +

Inherited property receives a "stepped-up basis" equal to the fair market value at the time of the previous owner's death. This means you only pay capital gains tax on appreciation that occurs after you inherit it, not on any gains during the original owner's lifetime. For example, if someone bought a house for $100,000 and it was worth $400,000 when they passed away, your basis becomes $400,000. If you sell it for $420,000, you only pay tax on the $20,000 gain, not $320,000. This is one of the most powerful tax benefits in real estate.