Selling your home is likely one of the largest financial transactions of your life — and many homeowners are surprised to learn they might owe thousands of dollars in capital gains taxes on the profit. The good news is that the IRS provides one of the most generous tax exclusions in the entire tax code specifically for home sellers.
Selling your home is likely one of the largest financial transactions of your life — and many homeowners are surprised to learn they might owe thousands of dollars in capital gains taxes on the profit. The good news is that the IRS provides one of the most generous tax exclusions in the entire tax code specifically for home sellers. Most people who sell their primary residence pay no capital gains tax at all, and those who do owe something can often reduce it significantly through careful planning.
Important: This article is for general educational purposes only and is not tax or legal advice. Tax rules are complex and change frequently. Consult a qualified CPA or tax attorney before making any decisions based on this information.
What Is Capital Gains Tax on a Home Sale?
Capital gains tax is the tax you pay on the profit you make when you sell an asset for more than you paid for it. For a home sale, your "gain" is calculated as:
Sale price − Adjusted cost basis − Selling costs = Taxable gain
Your adjusted cost basis is generally what you originally paid for the home plus certain closing costs from your purchase, plus the cost of qualifying capital improvements you made while you owned it. Your selling costs — including agent commissions, title fees, and certain other expenses — also reduce the gain.
The tax rate on your gain depends on how long you owned the home:
- Short-term gains (owned the home for less than one year): taxed as ordinary income at your marginal rate, which can range from 10% to 37% depending on your income
- Long-term gains (owned for one year or more): taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income
- Net Investment Income Tax (NIIT): An additional 3.8% tax applies to net investment income for higher earners — generally those with modified adjusted gross income above $200,000 single or $250,000 married filing jointly
What Is the Section 121 Capital Gains Exclusion and How Does It Work?
Section 121 of the Internal Revenue Code allows qualifying homeowners to exclude up to $250,000 of capital gain from the sale of their primary residence from taxable income — or up to $500,000 for married couples filing jointly. This is one of the most valuable tax breaks available to American taxpayers and the reason why most homeowners pay nothing when they sell.
Here's a simple example of how the exclusion works:
- You bought your home in 2018 for $275,000
- You spent $40,000 on a kitchen remodel and a new roof (qualifying improvements)
- Your adjusted basis is $315,000
- You sell for $600,000 in 2026
- After $18,000 in agent commissions and other selling costs, your net gain is $267,000
- As a married couple, you can exclude up to $500,000 — your entire $267,000 gain is excluded, and you owe zero capital gains tax
The Section 121 exclusion resets after two years, meaning you can use it multiple times over your lifetime — once every 24 months — as long as you meet the eligibility requirements each time.
Who Qualifies for the Home Sale Capital Gains Exclusion?
To qualify for the full Section 121 exclusion, you must meet three conditions (known as the "ownership and use tests"):
- Ownership test: You owned the home for at least two years during the five-year period ending on the sale date
- Use test: You used the home as your principal residence for at least two years during that same five-year period (the two years don't need to be consecutive)
- Frequency test: You haven't excluded gain from the sale of another home within the two-year period ending on the sale date
The two-year requirement is cumulative, not continuous. If you moved in and out of the home or had periods of rental use, you may still qualify as long as your total period of use adds up to at least 730 days during the five-year lookback window.
What Happens If You Don't Qualify for the Full Exclusion?
If you sell before meeting the two-year ownership and use requirements, you may still qualify for a partial exclusion if you're selling due to a qualifying reason. Treasury Regulation § 1.121-3 provides for a reduced exclusion when the primary reason for the sale is:
- A change in your place of employment (job relocation)
- Health — including a physician's recommendation to change residences for medical reasons
- Unforeseen circumstances, including divorce, natural disaster, death of a co-owner, or other events the IRS deems qualifying
Under the partial exclusion rules, your exclusion is prorated based on the fraction of the two-year period you actually met the requirements. If you owned and lived there for one year (half of two years), you'd qualify to exclude up to $125,000 (half of $250,000) as a single filer. This partial exclusion can significantly reduce your tax bill even when you can't claim the full amount.
Need to Sell Your House Fast?
Get a free, no-obligation cash offer from Chitty Buys Houses. No repairs, no fees — close on your timeline.
What Expenses Can You Deduct to Reduce Your Capital Gains?
Your taxable gain is reduced by your adjusted cost basis and your selling costs. Keeping good records of both can meaningfully lower your tax bill — or even eliminate it entirely.
Items that increase your basis (reducing your gain):
- Purchase price of the home
- Certain closing costs you paid when you bought (title insurance, recording fees, legal fees, transfer taxes)
- Capital improvements — costs that add value, extend the useful life, or adapt the home to a new use. Examples: kitchen or bathroom remodel, room addition, new roof, new HVAC system, new windows, landscaping that adds permanent value, swimming pool
- Casualty losses not covered by insurance (in certain circumstances)
Items that do NOT increase your basis: Routine repairs and maintenance (painting walls, fixing a leaky faucet, replacing carpet) are operating expenses, not capital improvements, and don't increase your basis.
Selling costs that reduce your gain:
- Real estate agent commissions
- Legal fees, title insurance, and closing fees you paid as the seller
- Home staging costs and advertising
- Transfer taxes
Does Selling Your House to a Cash Buyer Change Your Capital Gains Tax Situation?
No — the IRS taxes you on your gain regardless of who buys your home or how they pay. Whether your buyer is a cash investor, an iBuyer, or a traditional financed purchaser using a mortgage, your capital gain is calculated the same way and the same exclusion rules apply.
That said, there's one practical timing consideration: cash sales typically close much faster than traditional financed sales. If you're near a year-end and the timing of your closing could place the gain in a different tax year, a faster or slower closing could affect which year's income the gain counts toward — potentially affecting your tax bracket. This is worth a conversation with your CPA if the timing is close to December 31.
Learn more about what the cash home sale process actually involves and how it compares to a traditional listing.
What About Depreciation Recapture If You Rented the Property?
If you ever rented your home and claimed depreciation deductions on your tax return, you'll face an additional tax calculation called "depreciation recapture" when you sell — even if you moved back in and qualify for the Section 121 exclusion. Recaptured depreciation is taxed at a flat rate of 25% (this is called "unrecaptured Section 1250 gain") and is not eligible for the Section 121 exclusion.
This doesn't mean you shouldn't rent your home — depreciation deductions can be very valuable during the rental period — but it does mean you need to track your depreciation claims carefully and factor the recapture tax into your calculations when you sell. A CPA can calculate the exact amount of depreciation recapture you'll owe.
Are There Other Strategies to Legally Minimize Capital Gains?
Beyond the Section 121 exclusion, homeowners and investors have several additional tools:
- 1031 Like-Kind Exchange: If you're selling an investment property (not your primary residence), you can defer all capital gains taxes by reinvesting the proceeds in a similar investment property within 180 days. This strategy is not available for a primary residence sale.
- Installment sale: Rather than receiving all proceeds at closing, you receive payments over multiple years. This can spread the taxable gain across several tax years, potentially keeping you in lower tax brackets each year.
- Timing your sale to manage bracket exposure: If you're near the threshold between the 0% and 15% long-term capital gains brackets, selling in a year with lower ordinary income could result in zero tax on your gain up to the exclusion limit.
- Qualified Opportunity Zone investments: Gains from any asset sale, including a home sale, that are reinvested in a Qualified Opportunity Zone fund within 180 days may allow you to defer and partially reduce the tax.
Each of these strategies has eligibility requirements, deadlines, and tradeoffs. A qualified tax professional can help you identify which strategies apply to your situation.
Do You Have to Report Your Home Sale on Your Tax Return?
If your entire gain is excluded under Section 121, you generally do not need to report the sale on your federal income tax return — though many tax professionals recommend reporting it anyway with Form 8949 and Schedule D to create a paper trail and avoid an IRS inquiry. If you have a taxable gain (after the exclusion), you must report it. Your title company or closing agent will file Form 1099-S reporting the gross proceeds of the sale to the IRS regardless.
Ready to Sell? Get a No-Obligation Cash Offer
Understanding your tax situation gives you the clarity to make a confident selling decision. Whether you plan to sell through a traditional agent or want the speed and simplicity of a cash sale, knowing your potential capital gains exposure — and the exclusion that likely eliminates most or all of it — puts you in control.
At Chitty Buys Houses, we buy homes nationwide for cash, with no agent commissions, no repairs required, and flexible closing dates. Get your free, no-obligation cash offer today and see how quickly you can close this chapter and move forward — with as much of your equity as possible in your pocket.
Nothing in this article constitutes tax advice. Please consult a licensed CPA or tax attorney for guidance specific to your financial situation.
Frequently Asked Questions
Related Guides
Last updated:
Chitty Buys Houses is not a licensed real estate brokerage. We connect homeowners with cash buyers and licensed professionals.