How to Avoid Paying Taxes When You Sell Your Home

build a house, house for sale, house for rent, property, building, house, finance, home, mortgage, investments, estate agents, sale, residential, architecture, purchase, design, mortgage, mortgage, mortgage, mortgage, mortgage

Published on November 13, 2025 by David Lim, CPA

Selling your family home can be a daunting task and overwhelming. You’ve built memories here, you planted that garden, raised those kids, and paid the mortgage. Don’t let a surprise tax bill take a chunk of what you built. Here’s the good news: Uncle Sam offers a significant break for homeowners. It’s called the Section 121 Exclusion, and it could save you thousands in taxes.

What is the Section 121 Exclusion?

The Section 121 Exclusion allows you to exclude a portion of gains from the sale of your principal residence from federal income tax. This means if you bought your home for $400,000 and sold it for $600,000, you may not owe federal tax on that $200,000 gain. The amount you can exclude depends on your filing status.

Exclusion Amounts by Filing Status

Married Filing Jointly (MFJ)$500,000
Single$250,000
Head of Household (HOH)$250,000

Key Tests to Qualify for the Section 121 Exclusion

  • Ownership Test:
    You must have owned the home for at least 2 out of the last 5 years before the sale.
  • Use (Residency) Test:
    You must have lived in the home as your principal residence for at least 2 out of the last 5 years. The ownership and use periods do not need to be the same two years.
  • Frequency Test:
    You cannot have claimed the gain exclusion on another home sale in the 2 years prior to the current sale.
  • Special Circumstances:
    Even if you do not meet the full 2-out-of-5 rule, you may qualify for a partial exclusion due to job change, health reasons, or unforeseen circumstances (must meet IRS exception criteria).

If you meet these criteria, the gain excluded federally is also excluded from California state tax.

This article is for general educational purposes only and does not constitute tax advice. Tax laws change frequently, and each situation is unique. Consult a qualified tax professional before acting on any information in this article.

Have questions about this topic? Contact me.