Capital Gains Tax on Selling a Home

Capital Gains Tax on Selling a Home – Selling your home can be one of the biggest financial moves you make. Many U.S. homeowners worry about capital gains tax on selling a home, but the IRS offers a powerful exclusion under Section 121 that lets most people avoid taxes entirely on substantial profits. This guide breaks down the latest 2026 rules from official IRS sources, so you can confidently calculate your tax liability (or zero it out) when selling your primary residence.

What Is Capital Gains Tax on Selling a Home?

Capital gains tax applies to the profit (gain) you make when you sell your home for more than your adjusted basis. The gain equals the amount realized from the sale minus your adjusted basis in the property. For most homeowners, this is a long-term capital gain (taxed at preferential rates) if you’ve owned the home for more than one year.

However, the IRS allows you to exclude up to $250,000 of gain if you’re single (or married filing separately) or up to $500,000 if married filing jointly—provided you meet simple tests. This exclusion has remained unchanged since 1997 and still applies fully in 2026.

Who Qualifies for the $250,000 / $500,000 Primary Residence Exclusion?

To claim the full exclusion, you must pass both the ownership test and the use test during the 5-year period ending on the date of sale:

  • Ownership test: You (or your spouse for joint filers) owned the home for at least 2 years (24 months). These periods do not need to be consecutive.
  • Use test: You lived in the home as your main (principal) residence for at least 2 years (730 days) out of the 5 years before the sale. Again, periods can be non-consecutive. Short absences like vacations count, and time in a care facility may qualify under specific rules.

For married couples filing jointly, only one spouse needs to meet the ownership test, but both must meet the use test. You generally cannot claim the exclusion if you used it on another home sale within the previous 2 years.

Special situations (military service, Foreign Service, intelligence community) allow suspension of the 5-year period for up to 10 years of qualified extended duty. Surviving spouses may qualify for the $500,000 limit under certain conditions if selling within 2 years of a spouse’s death.

How to Calculate Your Capital Gain on Home Sale?

Follow these steps (use IRS Worksheet 2 in Publication 523 for precision):

  1. Determine amount realized = Selling price − Selling expenses (real estate commissions, legal fees, advertising, title/escrow fees, etc.).
  2. Subtract adjusted basis = Original cost basis + improvements and certain closing costs − depreciation, casualty losses, energy credits, or other adjustments.

Gain = Amount realized − Adjusted basis

If your gain is $250,000 or less (single) or $500,000 or less (joint), and you qualify, it’s completely tax-free.

What Counts Toward Your Home’s Adjusted Basis?

Your basis starts with the purchase price plus certain buying costs (title fees, recording fees, surveys, etc.). It increases with capital improvements such as:

  • Additions (bedrooms, bathrooms, decks)
  • Major systems (new roof, HVAC, plumbing, electrical)
  • Landscaping, driveways, fences, or pools
  • Kitchen/bathroom remodels that add value

Routine repairs (painting, fixing leaks) do not increase basis. Keep detailed records and receipts— the IRS requires them if audited.

Your basis decreases for items like depreciation claimed (e.g., home office), insurance reimbursements, or certain credits/subsidies.

Long-Term Capital Gains Tax Rates on Home Sales in 2026

If your gain exceeds the exclusion (or you don’t qualify), the taxable portion is taxed at long-term capital gains rates (0%, 15%, or 20%) based on your taxable income for 2026:

Tax Rate Single Filers Married Filing Jointly
0% Up to $49,450 Up to $98,900
15% $49,451 – $545,500 $98,901 – $613,700
20% Over $545,500 Over $613,700

Note: Unrecaptured Section 1250 gain (from prior depreciation) is taxed at a maximum 25%. High earners may also owe the 3.8% Net Investment Income Tax.

When You Must Report the Sale on Your Tax Return?

You do not need to report the sale if:

  • Your entire gain is excluded, and
  • You did not receive Form 1099-S.

Otherwise, report on Form 8949 and Schedule D (Form 1040). Any taxable gain goes on your 2026 tax return (filed in 2027).

Partial Exclusion: Job Move, Health, or Unforeseen Circumstances

If you don’t meet the full 2-year tests, you may still qualify for a reduced exclusion (prorated by the shorter of ownership time, use time, or time since last exclusion). Qualifying reasons include:

  • Change in place of employment (new job at least 50 miles farther)
  • Health issues
  • Unforeseen circumstances (divorce, death, multiple births, unemployment, etc.)

Use IRS Worksheet 1 in Publication 523 to calculate the reduced amount.

Nonqualified Use and Depreciation Rules

Gain allocable to periods of nonqualified use (after Dec. 31, 2008, when the home was not your principal residence, such as rental periods) is not excludable. However, time after your last qualified use within the 5-year window and certain military absences are exempt. Depreciation taken after May 6, 1997, is recaptured and not eligible for exclusion.

Smart Strategies to Minimize or Avoid Capital Gains Tax

  • Maximize your basis — Document every improvement.
  • Time your sale — Ensure you meet the 2-out-of-5-year tests.
  • Consider partial exclusion if life changes force an early sale.
  • Installment sale — Spread gain over years (still eligible for exclusion).
  • Track nonqualified use — Convert rental property back to primary residence strategically.
  • Consult a tax professional — Rules get complex with divorce, inheritance, or multiple properties.

State Capital Gains Taxes on Home Sales

Federal rules apply nationwide, but many states also tax capital gains (often at ordinary income rates). A few states (like Florida, Texas, Washington) have no state income tax or do not tax capital gains on homes. Check your state’s Department of Revenue for specifics.

Final Tips for Home Sellers in 2026

The capital gains tax on selling a home is far less scary than most people think thanks to the generous Section 121 exclusion. Most qualifying homeowners pay zero federal tax on their profit. Keep excellent records, understand your adjusted basis, and run the numbers before listing. For personalized advice, review IRS Publication 523 or speak with a qualified tax advisor or CPA.

Selling smartly can put thousands more in your pocket—plan ahead and enjoy the rewards of homeownership.