Capital Gains Tax When Selling a Home: What You Need to Know
- Zoritha Thompson

- Jul 18
- 6 min read

You've built equity for years, the market has been kind, and now you're ready to sell. Before you get too far into planning what to do with the proceeds, there's one number worth understanding clearly: how much of that gain, if any, the IRS considers taxable.
The good news first — the vast majority of home sellers owe nothing in federal capital gains tax on the sale of their primary residence, thanks to a generous exclusion built into the tax code. But "most sellers" isn't "all sellers," and the rules have specific requirements that trip people up, especially after a big run-up in home values, a rental conversion, or an inherited property.
This guide walks through exactly how the exclusion works, how to calculate your actual taxable gain, and the legitimate ways sellers reduce what they owe. As always, this is general education, not personalized tax advice — a CPA or tax attorney should confirm the numbers for your specific return.
The Section 121 Exclusion: Why Most Sellers Owe Nothing
The primary residence exclusion under Internal Revenue Code Section 121 lets qualifying sellers exclude a significant portion of their gain from federal tax entirely:
$250,000 of gain can be excluded for single filers
$500,000 of gain can be excluded for married couples filing jointly
The exclusion applies against your total gain, not your sale price — the two are very different numbers
Sellers who've used the exclusion before can generally use this exclusion again, as long as they meet the ownership and use tests each time
To qualify, you generally need to meet two tests:
The Ownership Test — you must have owned the home for at least 2 of the last 5 years before the sale
The Use Test — the home must have been your primary residence for at least 2 of the last 5 years (the 24 months don't need to be continuous)
How to Calculate Your Actual Taxable Gain
Your taxable gain isn't simply sale price minus purchase price. It's your net proceeds minus your adjusted cost basis — and cost basis is where sellers most often leave money on the table by forgetting to count everything they're entitled to.
01 🏷️ Start With Your Original Purchase Price
📄 Documentation: Closing statement from your original purchase
This is your starting cost basis — the price you paid, plus certain closing costs from the original purchase like title fees, transfer taxes, and legal fees (but not your mortgage interest or points).
02 🛠️ Add Qualifying Capital Improvements
📄 Documentation: Receipts, contracts, and permits for improvement work
Capital improvements — a new roof, a kitchen remodel, an added bathroom, a new HVAC system — increase your cost basis and reduce your taxable gain. Routine repairs and maintenance (painting, fixing a leaky faucet) do not count. Keep every receipt; this is the single most common thing sellers forget to track.
03 💰 Determine Your Net Sale Proceeds
📄 Documentation: Your closing statement/settlement statement from the sale
This is your sale price minus selling costs — agent commissions, transfer taxes, title fees, and other closing costs you paid as the seller. Selling costs reduce your gain; they are not the same as improvements, but they're subtracted the same way.
04 🧮 Subtract Basis and Selling Costs From Sale Price
📄 Formula: Sale Price − Selling Costs − Adjusted Cost Basis = Total Gain
The result is your total gain. From there, subtract your available Section 121 exclusion ($250,000 or $500,000). Whatever remains — if anything — is your taxable gain.
05 📊 Apply the Right Tax Rate to Any Remaining Gain
💵 Long-Term Capital Gains Rates: 0%, 15%, or 20% federally, based on income
If you owned the home for more than a year (which almost all primary-residence sellers have), any taxable gain beyond your exclusion is taxed at long-term capital gains rates rather than ordinary income rates — which are usually lower. Many states also apply their own capital gains tax on top of the federal rate.
Sample Calculation: A $250,000 Gain Scenario
Here's how the math plays out for a married couple selling their primary residence:
Line Item | Amount |
Sale price | $750,000 |
Selling costs (commissions, fees) | − $45,000 |
Original purchase price | $350,000 |
Capital improvements over the years | + $60,000 |
Adjusted cost basis | $410,000 |
Total gain (sale price − selling costs − basis) | $295,000 |
Section 121 exclusion (married, filing jointly) | − $500,000 |
Taxable gain | $0 |
Situations That Commonly Trigger a Tax Bill
⚠️ Gain exceeds your exclusion amount — in high-appreciation markets, a long-held home can produce a gain above $250,000/$500,000 — the excess is taxable
⚠️ You haven't lived in the home for 2 of the last 5 years — second homes, rental properties, and recently converted rentals often don't meet the use test
⚠️ You used the exclusion on another home within 2 years — the exclusion generally can't be claimed more than once every 2 years
⚠️ You claimed depreciation on the property — prior use as a rental (even partial) can trigger depreciation recapture, taxed separately from the capital gain
⚠️ The home was inherited or received in a divorce — these situations use special basis rules ('stepped-up basis' for inherited homes) that change the math significantly
Legitimate Ways to Reduce What You Owe
Track and document every capital improvement receipt going back to your purchase date — this single habit can add tens of thousands to your cost basis
Count all eligible selling costs into your basis calculation, since they reduce your net proceeds
Time your sale carefully if you're close to the 2-year mark and your move can reasonably wait, since a few extra months can mean the difference between owing and owing nothing
Look into a partial exclusion if you or your spouse experienced a job change, health issue, or other qualifying unforeseen circumstance and didn't meet the full 2-year test
Talk through your specific numbers with a CPA before listing if your gain is likely to exceed the exclusion — there may be legitimate basis adjustments or timing strategies specific to your situation
Frequently Asked Questions
Do I need to report the sale if I don't owe any tax?
If your full gain is covered by the exclusion and you didn't receive a Form 1099-S, you typically don't need to report the sale. If you did receive a 1099-S, most tax preparers will still report it on your return to match IRS records, even if the taxable gain is zero.
Does the exclusion apply to state taxes too?
It depends on the state. Many states follow the federal exclusion rules, but some tax capital gains differently or don't offer the same exclusion. Check your state's specific rules or ask your tax preparer.
What if I sell at a loss instead of a gain?
A loss on the sale of a primary residence is generally not deductible for tax purposes — this exclusion only applies to gains. Investment or rental property losses follow different rules.
Does refinancing affect my cost basis or gain?
No. Refinancing changes your mortgage balance and interest costs, but it doesn't change your cost basis or your taxable gain calculation, since basis is tied to what you paid and invested in the property, not what you owe on it.
Should I talk to a tax professional before I list?
If your expected gain is anywhere near your exclusion limit, if the home was ever a rental, was inherited, or was owned by a trust or LLC, a short conversation with a CPA before you list can prevent an expensive surprise at tax time.
Your Pre-Listing Tax Checklist
✅ Ownership and use dates confirmed — at least 2 of the last 5 years for both
✅ Original purchase closing statement located to establish starting cost basis
✅ Capital improvement receipts gathered from every year of ownership
✅ Rental or business use history reviewed for any depreciation recapture exposure
✅ Prior use of the exclusion checked to confirm the 2-year reuse window has passed
✅ Estimated gain calculated against your $250,000/$500,000 exclusion limit
✅ CPA consulted if the estimated gain is close to or above the exclusion
Ready to Sell With a Clear Financial Picture?
Understanding your tax exposure before you list means no surprises at closing — and it can shape decisions about timing, pricing, and even whether now is the right moment to sell. At Goree & Thompson, we help every seller understand the full financial picture, and we're happy to connect you with a trusted CPA to confirm the numbers for your specific situation.
📞 Contact us today for a free seller consultation — and let's map out your numbers before you list.
👉 Visit us at: www.goreeandthompson.com | 📱 (916) 897-8548
This article is for general educational purposes only and is not tax or legal advice. Consult a qualified CPA or tax attorney regarding your specific situation.
.jpg)



Comments