Selling your home is a major life event, and the tax code for a primary residence is generous, but it is also full of traps that can turn a tax-free profit into a headache. Before you sign the closing papers, it is worth understanding exactly how the Section 121 exclusion works and what can reduce it.
How much home sale gain is tax-free under Section 121?
Section 121 allows you to exclude up to $250,000 of gain if you are single or filing separately, and up to $500,000 if you are married filing a joint return. Most homeowners who meet the requirements pay zero federal capital gains tax on the sale of their primary residence.
The exclusion applies to your principal residence, not investment property, and only the gain above the applicable limit is taxed. For investors weighing rental versus residence treatment, our real estate investor tax guide covers how Section 121 stacks with other strategies.
What is the 2-out-of-5-year rule?
To qualify for the exclusion, you must pass two tests within the five-year period ending on the day you sell: ownership for at least two years, and use as your main home for at least two years. The two years of use do not have to be continuous, so you could live in the home for a year, rent it out for a period, and then move back for another year.
This flexibility is what lets some owners combine the exclusion with periods of rental use. The ownership and use tests are evaluated separately, so meeting one without the other does not qualify.
How do you calculate the gain on a home sale?
Your taxable gain is not simply the difference between purchase and sale price; you reduce it by selling expenses and your adjusted basis. Finding your adjusted basis is where most of the tax savings come from.
The formula looks like this:
How to Calculate Your Capital Gain
FormulaSale price (total amount received at closing) minus selling expenses (agent commissions, legal fees, staging costs) minus adjusted basis (original purchase price + major improvements like a new roof, kitchen remodel, or added bedroom) = Capital gain (the amount potentially subject to tax)
Think of it this way: fixing a leaky faucet is a repair, so it does not count. But adding a bedroom, replacing the roof, or remodeling the kitchen is an improvement. These improvements increase your basis and lower your taxable profit. Make sure you keep those receipts in a safe spot.
What changed for home sellers in 2026?
Two items matter most for 2026: a higher state and local tax (SALT) deduction cap and the inflation-adjusted long-term capital gains brackets that apply to any gain above your Section 121 exclusion. Both can change whether and how much tax you owe on a sale.
The SALT Cap Increase
Thanks to recent legislative updates, the State and Local Tax (SALT) deduction cap has been raised. In 2026, many homeowners can deduct up to $40,400 in state and local taxes, including property taxes, if their income is under $500,000. This is a huge jump from previous years and might make itemizing worth it for you when you file.
2026 Capital Gains Brackets
If your profit goes above the $250,000 or $500,000 limit, the rest is taxed at long-term capital gains rates. Here is where the thresholds sit for 2026:
What reduces or complicates the home sale exclusion?
Depreciation recapture and an early sale are the two issues that most often complicate an otherwise tax-free sale. If you claimed a home office deduction or rented out a room, the IRS recaptures the depreciation you took (or were allowed to take) at a rate of up to 25 percent, and that portion cannot be sheltered by the Section 121 exclusion.
If you must move early for a job, health reasons, or an unforeseen event like a divorce, you may still qualify for a prorated partial exclusion based on the time you did meet the tests. Do not assume you owe full tax just because you have not hit the two-year mark. For the related interaction between a home office and the sale, see our home office deduction guide.
What should be on your home sale checklist?
Before you close, confirm the records and forms that drive the tax result:
- Check whether you meet the 2-out-of-5-year ownership and use tests.
- Gather records for every capital improvement you made (these raise your basis).
- Track your closing costs and agent commissions (these reduce the gain).
- Watch for Form 1099-S. If you receive one, you must report the sale even if you owe no tax, on Form 8949 and Schedule D.
The most expensive mistake is reporting a sale after the fact without modeling the basis and recapture first. Pre-sale planning is part of our tax planning work.
Have questions about the Section 121 home sale exclusion? Contact TS CPA for a free consultation. We respond within the same day.