Do You Pay Capital Gains on a Home Sale? What Homeowners Need to Know

capital gains on home sale capital gains on home sale
Written by
Uploaded on
Share

If your home sale could generate a sizable profit, understanding how capital gains tax works can help you reduce capital gains tax legally and avoid costly reporting mistakes. 

Capital gains on a home sale depend on your adjusted basis, ownership period, IRS exclusion eligibility, and even the records you kept for improvements and closing costs. 

In this blog, we will explain when you owe capital gains tax on a home sale, how the IRS calculates it, what exemptions apply, and how to legally lower your taxable gain before filing. 

What Is Capital Gains Tax on a Home Sale?

Capital gains on a home sale are the profit left after subtracting your adjusted basis and selling costs from your final sale price. The IRS taxes that profit as a capital gain. Good home improvement tax basis records directly reduce this number.

Per IRS Publication 523 (2025), the formula is:

Sale Price - Selling Expenses = Amount Realized 

Amount Realized - Adjusted Basis = Capital Gain or Loss

If the number is positive, you have a gain. If negative, you sold at a loss. Losses on a personal residence are never deductible.

Capital gains tax on home sale falls into two categories:

  • Short-term: Owned the home for one year or less. Taxed at ordinary income rates (10% to 37% in 2025).
  • Long-term: Owned for more than one year. Taxed at 0%, 15%, or 20%, per IRS Topic No. 409.

Long-term capital gains real estate rates apply to most homeowners who have owned their home for several years before selling.

When Do You Have to Pay Capital Gains on Home Sale Profits?

You do not pay capital gains tax on a home sale every time you sell. The IRS provides a large exclusion for qualifying primary residence sales.

Per IRS Tax Tip 2023-81, homeowners who exclude all gain from the sale do not need to report the sale on their return unless they received Form 1099-S, Proceeds From Real Estate Transactions. If you received Form 1099-S, you must report the sale even if the entire gain is excludable, per IRS Topic No. 701.

You do pay capital gains on home sale profits in these cases:

  • Your gain exceeds the exclusion limit
  • You do not meet the ownership and use tests
  • You claimed the exclusion on another home in the prior 2 years
  • You used the home for business or rental and have depreciation recapture

How the IRS Calculates Capital Gains on the Sale of a Home

To calculate capital gains on a property sale, the IRS uses Publication 523 Worksheet 2.

Adjusted basis starts with your original purchase price and adds:

  • Settlement fees and closing costs paid at purchase (abstract fees, recording fees, title insurance, transfer taxes)
  • Capital improvements made during ownership (additions, systems, roofing, etc.)

Then it subtracts:

  • Depreciation taken for business or rental use
  • Casualty loss deductions claimed
  • Energy credits received for improvements included in your basis

Selling expenses (agent commissions, advertising, legal fees, and closing costs you paid as seller) reduce your amount realized before the gain calculation.

The lower your adjusted basis, the higher your taxable gain on a home sale. Every qualifying improvement and closing cost you track directly reduces what you owe.

How Much Capital Gains on Sale of Home Could You Owe?

How much capital gain you have on the sale of your home depends on your gain after the exclusion, your filing status, and your total taxable income for the year. You pay capital gains tax on a home sale after using the exclusion only on the amount above your exclusion limit.

Per IRS Topic No. 409 (2025), federal capital gains tax on home sale long-term rates are:

Filing Status 0% Rate 15% Rate 20% Rate
Single Up to $48,350 $48,351 to $533,400 Over $533,400
Married Filing Jointly Up to $96,700 $96,701 to $600,050 Over $600,050
Head of Household Up to $64,750 $64,751 to $566,700 Over $566,700

How much capital gains tax on the sale of a home you actually pay also includes state taxes. Most U.S. states tax capital gains as ordinary income on top of federal rates.

Use a capital gains calculator home sale tool or work with a CPA to estimate how much capital gains on the sale of your home you can estimate before closing.

Primary Residence Exclusion Rules Every Homeowner Should Know

The primary residence capital gains exclusion under section 121 exclusion rules is the most valuable tax break homeowners get. Per IRS Publication 523 and Topic No. 701:

  • Single filers: exclude up to $250,000 in gain
  • Married filing jointly: exclude up to $500,000 in gain

To qualify for the IRS home sale exclusion, you must pass all parts of the Eligibility Test:

  • Ownership test: Owned the home for at least 24 months out of the last 5 years before the sale date
  • Residence test: Used it as your main home for at least 24 months of the last 5 years. The 24 months do not have to be consecutive.
  • Look-back test: Did not claim this exclusion on another home sale within the prior 2 years

For joint filers, either spouse meets the ownership test. But both spouses must meet the residence test individually to get the full $500,000 capital gains exclusion home sale amount.

Partial exclusion is available if your sale was caused by a work-related move (new job at least 50 miles farther), a health-related move, or an unforeseeable event such as death, divorce, job loss, or pregnancy with multiple children.

A surviving spouse who sells within 2 years of a spouse’s death and has not remarried may still use the full $500,000 capital gains tax exemption for a home sale. This capital gains tax exemption home sale covers the same gain thresholds as a standard joint filing, as long as the other eligibility conditions are met.

Situations Where You May Still Owe Capital Gains Tax on Home Sale

Even qualifying homeowners can end up owing capital gains tax on a home sale in these situations:

  • Gain exceeds the exclusion: If you are single and your gain is $380,000, you pay tax on $130,000 above the $250,000 limit.
  • Acquired through a 1031 exchange in the past 5 years: Per Publication 523, this is an automatic disqualification from the exclusion.
  • Depreciation recapture: If you used part of the home for business or rental after May 6, 1997, you cannot exclude the gain equal to the depreciation taken. The IRS taxes it as ordinary income.
  • Nonqualified use after 2008: Rental periods or vacation home use after 2008 that occurred before your personal use creates a taxable portion of the gain, based on a proportional calculation.
  • Multiple homes: Per IRS Tax Tip 2023-81, the exclusion only covers your main home. Second homes and investment properties owe full capital gains tax.
  • Look-back violation: If you used the exclusion on another home sale in the prior 2 years, this sale is ineligible.

How Long Should You Live in a House to Avoid Capital Gains Tax?

To avoid capital gains tax on a house sale, you need 24 months of residency out of the last 60 months (5 years) ending on the sale date. That is 730 total days. Per Publication 523, they do not have to be consecutive.

Vacations and short absences count as time you lived there, even if you rented the home while you were away. Periods in a licensed care facility also count, as long as you used the home as your main home for at least 12 months during the 5-year period.

Military and intelligence community members can suspend the 5-year test period for up to 10 years while on qualified official extended duty.

If you pay capital gains on a home sale after a shorter residency, a partial exclusion may still apply if the sale was for a work-related move, health reason, or unforeseeable event.

What Home Improvement Expenses Can Reduce Your Taxable Gain?

Home improvement tax basis additions directly reduce your capital gains on home sale by lowering your taxable profit. Per IRS Publication 523, qualifying improvements include:

  • Additions: Bedrooms, bathrooms, decks, garages, porches, patios
  • Systems: Heating, central air conditioning, furnace, wiring, security systems, sprinkler systems
  • Exterior: New roof, siding, storm windows, insulation
  • Interior: Built-in appliances, kitchen remodels, flooring, fireplaces, wall-to-wall carpeting
  • Grounds: Landscaping, driveway, fencing, swimming pools

What does NOT count as a basis increase:

  • Routine repairs (painting, fixing leaks, filling cracks, replacing broken hardware)
  • Improvements no longer part of the home at the time of sale
  • Improvements with a useful life of under one year when installed

Energy credits received reduce your basis by the credit amount. If you claimed a residential energy credit and included that improvement in your basis, you must subtract the credit amount.

Selling an Inherited or Rental Property: Different Capital Gains Rules Explained

Inherited property: Your basis equals the fair market value on the date of the original owner’s death, per Publication 523. This stepped-up basis often eliminates most capital gain at sale. Inherited property is always treated as long-term. If you meet the 2-year residency requirement after inheriting, the $250,000/$500,000 exclusion can still apply.

Rental property: Two key tax layers apply:

  • Depreciation recapture: Depreciation deducted after May 6, 1997, cannot be excluded under the Section 121 rules. It gets taxed as ordinary income and reported on Form 4797.
  • Nonqualified use proration: Rental periods after 2008 that occurred before your personal use are “nonqualified use.” The IRS allocates a portion of the gain to that period and taxes it as a long-term capital gains real estate gain. The allocation uses the ratio of nonqualified-use days to total days owned.

Common Mistakes Homeowners Make When Reporting a Home Sale

These errors trigger IRS notices and cost homeowners money on capital gains on home sale tax bills:

  • Thinking the exclusion is once per lifetime: It is not. The Section 121 exclusion can be used every 2 years on different primary residences.
  • Not reporting when Form 1099-S was issued: If you received Form 1099-S, reporting home sale to the IRS via Form 8949 and Schedule D is required, even if your gain is fully excluded.
  • Missing improvement records: Every qualifying improvement reduces your gain. Losing receipts for a kitchen remodel or new roof means you likely overpaid on the capital gains tax when selling a house.
  • Forgetting selling expenses: Agent commissions, legal fees, and seller-paid closing costs all reduce the amount realized.
  • Assuming losses are deductible: They are not. Per IRS Tax Tip 2023-81, losses on your main home sale are never deductible.
  • Ignoring state taxes: Taxes after selling a house include state-level capital gains taxes on top of federal rates.

How Does Hopkins CPA Firm Help Homeowners Handle Capital Gains Taxes?

Most homeowners sell a primary home only a few times in their lives. Getting the capital gains tax on home sale numbers wrong can mean paying thousands more than necessary. Hopkins CPA Firm works with U.S. homeowners on selling a house and capital gains tax planning before and after closing.

Our services include:

  • Eligibility review for the IRS home sale exclusion ($250,000/$500,000)
  • Adjusted basis calculation, including all improvements and closing costs
  • Depreciation recapture and nonqualified use analysis for rental or mixed-use homes
  • Partial exclusion calculation for work-related or health-related moves
  • Reporting home sale to IRS compliance on Form 8949 and Schedule D
  • Estimated tax payment planning when the gain exceeds the exclusion

Book a consultation before the closing date. The right plan before the sale costs far less than fixing a wrong return after it.

What Records Should You Keep After Selling Your Home?

Per IRS Publication 523, keep home sale records until 3 years after the due date of the tax return for the year of sale.

Records to keep:

  • Purchase documents: Original closing statement, settlement sheet, and sales contract showing your purchase price
  • Improvement receipts: Invoices, contractor contracts, and building permits for every capital improvement
  • Depreciation records: Schedules showing any business or rental use periods and deductions claimed
  • Energy credit documentation: Proof of any energy credits received that reduce your basis
  • Sale closing documents: Final closing disclosure, Form 1099-S (if received), and settlement statement
  • Prior gain carryovers: If you deferred a gain from a home sold before May 7, 1997, those records still affect your current basis

Solid recordkeeping is what separates homeowners who pay nothing from those who get unexpected IRS notices.

Reduce Home Sale Taxes With Hopkins CPA Firm 

Capital gains tax on a home sale depends on far more than your final profit number. Your eligibility for the Section 121 exclusion, adjusted basis calculations, depreciation recapture, selling expenses, and improvement records all directly affect how much tax you owe after selling a house. 

Proper planning before closing can significantly reduce reporting errors and unnecessary tax exposure. Hopkins CPA Firm helps homeowners calculate taxable gains accurately, document qualifying deductions, analyze rental or mixed-use property rules, and stay compliant with IRS reporting requirements.

We can help you identify every qualifying exclusion, maximize your adjusted basis, handle Form 8949 and Schedule D reporting, and reduce avoidable capital gains tax liability before mistakes become expensive. Contact us today for a personalized consultation.

FAQs

Yes, if the gain exceeds the exclusion limit. No senior-specific exemption exists under current law. The old over-55 rule was eliminated in 1997. Seniors who owned and lived in the home for 2 of the last 5 years qualify for the same primary residence capital gains exclusion ($250,000 single, $500,000 married) as any other homeowner.

Meet the 2-year ownership and residency test to qualify for the $250,000 or $500,000 exclusion. Add every capital improvement to your adjusted basis. Deduct all selling expenses. If your gain still exceeds the exclusion, time the sale in a year when your income is lower to qualify for the 0% federal capital gains tax on a long-term home sale rate.

No. The old one-time exemption for homeowners over 55 was repealed in 1997. Under the Section 121 exclusion, any qualifying homeowner can exclude up to $250,000 ($500,000 for married) in gain from every qualifying home sale, once every 2 years, with no age requirement and no lifetime limit.

Yes. You pay capital gains tax on a home sale even if you buy another home with the proceeds. The IRS eliminated the old "rollover" rule in 1997. Reinvesting proceeds into a new home does not defer or reduce your tax.

The IRS receives a copy of Form 1099-S directly from the closing agent. If the sale is reported to the IRS but missing from your return, a CP2000 notice proposes additional tax. Unreported taxes after selling a house trigger interest charges plus accuracy-related penalties of up to 20% of the tax underpayment. Always file Form 8949 and Schedule D if you received Form 1099-S.

Table of Contents

Form Title
To tackle your IRS Notice smartly.
Author

Joe has 30+ years as a Certified Public Accountant licensed in the State of Texas and solving IRS problems. Current member with the American Institute of Certified Public Accountants (AICPA), Texas Society of CPA’s (TSCPA), National Society of Accountants (NSA), Bachelor’s degree in accounting (BBA), Master’s degree in Business Administration (MBA) at Texas A&M Corpus Christi. Experience in a variety of industries as Controller, CFO and tax resolution issues for both business and personal tax cases. 

At Hopkins CPA Firm, we adhere to a stringent editorial policy emphasizing factual accuracy, impartiality and relevance. Our content, curated by experienced industry professionals. A team of experienced editors reviews this content to ensure it meets the highest standards in reporting and publishing.

More Similar Posts
Author

Joe has 30+ years as a Certified Public Accountant licensed in the State of Texas and solving IRS problems. Current member with the American Institute of Certified Public Accountants (AICPA), Texas Society of CPA’s (TSCPA), National Society of Accountants (NSA), Bachelor’s degree in accounting (BBA), Master’s degree in Business Administration (MBA) at Texas A&M Corpus Christi. Experience in a variety of industries as Controller, CFO and tax resolution issues for both business and personal tax cases.