
Thinking about selling your home but worried about a hefty tax bill? You’re not alone. Many homeowners wonder if they’ll owe capital gains tax after a sale. The good news? You may not owe a dime—if you know how to qualify for the IRS’s generous Section 121 exclusion.
This guide breaks it down in plain English. You’ll learn who qualifies, how much you can exclude, and how to keep more of your hard-earned money. Whether you’re a first-time seller or just curious about tax rules, we’ve got you covered.
Are you selling your primary residence? Have you lived in it for at least two out of the last five years? If so, you could be eligible to exclude up to $250,000—or even $500,000 if you’re married—from your taxable income.
Understanding Capital Gains Tax on Home Sales
When you sell a home for more than what you paid for it, that profit is called a capital gain. Usually, capital gains are taxable. But thanks to IRS Section 121, homeowners can exclude a large chunk of that gain if certain rules are met.
What Is a Capital Gain on a Home?
A capital gain is the profit you make when you sell something for more than what you paid for it. With a home, this means subtracting your original purchase price and improvements from the sale price.
Example: If you bought your home for $200,000 and sold it for $350,000, your capital gain is $150,000.
How to Calculate Capital Gains on a Home Sale
To calculate your capital gain, subtract what you paid for the home—plus certain costs—from your selling price. Here’s a simple formula:
Capital Gain = Selling Price – (Purchase Price + Improvements + Selling Costs)
Example:
- Sold your home for: $400,000
- Purchased for: $250,000
- Improvements: $30,000
- Selling costs: $20,000
Your gain = $400,000 – ($250,000 + $30,000 + $20,000) = $100,000
This amount is what the IRS will look at to determine if you owe any capital gains tax.
What Is the Section 121 Exclusion?
Section 121 allows you to exclude:
- Up to $250,000 in gains if you are single
- Up to $500,000 in gains if you’re married filing jointly
This means if your profit from selling your home is under these limits, you won’t owe any capital gains tax on that amount.
Basic Requirements to Qualify
To qualify for the Section 121 exclusion, you must meet the following:
1. Use as a Primary Residence
You must have lived in the home for at least two years out of the last five before the sale. These two years don’t need to be consecutive.
2. Ownership
You must have owned the home for at least two years during that same five-year period.
3. Frequency Rule
You can only use the exclusion once every two years. If you used it recently, you’ll need to wait before using it again.
What Happens If You Exceed the Limit?
If your gain exceeds $250,000 (or $500,000 for married couples), you will owe capital gains tax on the amount over the exclusion.
Example: You’re single and sell your home for a $300,000 gain. You can exclude $250,000, but the remaining $50,000 is taxable.
Tip:
Keep good records! Save receipts for home improvements and documents from the purchase and sale. These can increase your cost basis and reduce your taxable gain.
Capital Gains Tax Rates: What You’ll Pay
If you owe tax on your home sale, the rate depends on how long you owned the home and your income level:
- Short-term capital gains: For homes owned less than a year. Taxed as regular income (10%–37%)
- Long-term capital gains: For homes owned more than a year. Usually taxed at 0%, 15%, or 20% depending on your income.
Most home sales qualify for long-term rates, which are typically lower than income tax rates.
Home Improvements That Lower Your Capital Gain
Not all costs can be deducted, but certain home improvements can increase your home’s “basis”—meaning they reduce your taxable profit. Here are examples of improvements the IRS accepts:
- New roof or HVAC system
- Room additions or finished basement
- Updated kitchen or bathroom remodels
- New windows or insulation
Note: Routine repairs (like painting or fixing a leak) usually don’t count.
Can You Get a Partial Exclusion?
Yes! Even if you don’t meet the full two-year rule, you may still qualify for a partial exclusion if you sold your home because of:
- A job relocation
- Health issues
- Unforeseen circumstances like natural disasters or divorce
The amount you can exclude will be based on how long you lived in the home before selling.
Inherited or Gifted Homes: What Tax Rules Apply?
If you inherit a home, the IRS gives it a “step-up in basis”—meaning the home’s value is reset to its fair market value on the date of inheritance. So, if you sell it shortly after inheriting, you might owe little or no capital gains tax.
Gifting a home is different. If someone gives you a house, you also inherit their original purchase price as your basis. In most cases, the Section 121 exclusion doesn’t apply to gifted homes unless you make it your primary residence and meet the 2-of-5-year rule.
Important Exceptions to Know
The IRS has special rules in certain situations. Here are some notable exceptions:
- Military and government service: Extended absence rules may apply.
- Divorce or separation: Transfers between spouses are not taxable.
- Destroyed or condemned property: You might still qualify if your home was lost due to disaster or government action.
See IRS Publication 523 for the full list.
Reporting the Sale on Your Tax Return
You’ll likely receive Form 1099-S from your real estate agent or title company. This form reports the sale amount to the IRS.
Even if you don’t owe tax, you should still report the sale on your return to document the exclusion.
Include your purchase price, any improvements made, and selling costs. These help determine your capital gain and ensure accuracy.
What About State Capital Gains Taxes?
While the federal rules are standard, state taxes vary. Some states, like California, follow federal guidelines. Others may have their own rules or no income tax at all.
Check your state’s tax website or talk to a local tax professional to understand your obligations.
When You Might Owe Capital Gains Tax
Here are some situations where you may have to pay capital gains tax on your home sale:
- You didn’t live in the home for 2 of the last 5 years
- You already used the exclusion in the past 2 years
- Your gain exceeds $250,000 (single) or $500,000 (married)
- The home was a rental or vacation property
- You received the home as a gift and haven’t made it your primary residence
Summary: Keep More of Your Profit
Here’s a quick recap of how to avoid capital gains tax on your home sale:
- Live in your home for at least two of the last five years
- Own the home for at least two years
- Don’t use the exclusion more than once every two years
- Keep detailed records of your home’s purchase and improvements
- Report the sale accurately on your tax return
Other Ways to Reduce or Avoid Capital Gains Tax
Even if you don’t qualify for the full exclusion, here are some advanced strategies to reduce your tax burden:
- 1031 Exchange: If the property was an investment, you might defer taxes by reinvesting in another similar property.
- Convert to Rental: Live in the home first, then convert it to a rental and time your sale to meet the 2-out-of-5-year rule.
- Tax-Loss Harvesting: Offset gains by selling other investments at a loss in the same year.
Important: These options can be complex, so speak with a tax advisor before taking action.
Ready to Save on Taxes?
Selling your home doesn’t have to mean losing money to taxes. The IRS Section 121 exclusion is a powerful tool—if you know how to use it.
Need Help With Back Taxes?
Contact a tax specialist today to explore how to reduce, resolve, or eliminate your back taxes with the IRS Fresh Start Program.
For more information or assistance, click here or call us directly at (800) 607-7565 for immediate support.



