Capital Gains From Selling a House: Exclusions, Rates, and Reporting

When you sell your primary home, federal law lets you exclude up to $250,000 of the profit from tax if you file as single, or up to $500,000 if you are married filing jointly, so capital gains from selling a house end up costing most owners nothing.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Anything above that exclusion is taxed at long-term capital gains rates if you owned the home for more than a year. Whether you owe depends on three things: how big your gain actually is after the right adjustments, whether you pass the ownership and use tests, and where the taxable portion (if any) lands on the rate schedule.

Figuring Out Your Actual Gain

The gain is your net sale price minus your adjusted basis. Both numbers are usually smaller than the price tags on the closing statements, and that works in your favor.

What Goes Into Your Adjusted Basis

Start with what you paid for the home. Add the closing costs from your purchase that count toward basis: owner’s title insurance, legal fees, recording fees, survey fees, transfer taxes, and charges for installing utility services.2Internal Revenue Service. Publication 523 (2025), Selling Your Home Financing costs like mortgage origination fees and seller-paid points generally do not.

Then add every capital improvement you made while you owned the place. A new roof, a kitchen remodel, a replacement HVAC system, an added deck: anything that adds value or extends the home’s useful life increases basis dollar for dollar. Routine maintenance does not. Repainting a bedroom and patching drywall keep the house livable but change nothing about your tax picture.

One subtraction to watch. If you claimed a federal residential energy credit for something like solar panels or a high-efficiency heat pump, you must reduce your basis by the credit amount.3Internal Revenue Service. Instructions for Form 5695 (2025) A $10,000 solar installation that generated a $3,000 tax credit only adds $7,000 to your basis.

What Comes Off Your Sale Price

Your “net sale price” (the IRS calls it the amount realized) is the gross price minus your selling expenses. Real estate agent commissions, advertising, legal fees, and seller-paid closing costs all reduce the number that feeds into the gain calculation.2Internal Revenue Service. Publication 523 (2025), Selling Your Home Commissions alone typically consume 5% to 6% of gross price, so this step is not a rounding exercise.

A Worked Example

You bought the home for $300,000 and paid $8,000 in qualifying closing costs at purchase. Over eight years, you spent $45,000 on a new roof and a kitchen remodel. Your adjusted basis is $353,000. You sell for $575,000 and pay $34,500 in commissions and closing costs, leaving a net sale price of $540,500. Your gain is $187,500. As a single filer who meets the exclusion tests, all of it disappears under the $250,000 exclusion, and you owe no federal tax on the sale.

Change the numbers and the story changes. A married couple with an $820,000 gain and the $500,000 exclusion has $320,000 of taxable long-term gain, potentially owing $48,000 or more in federal tax depending on their other income.

Qualifying for the $250,000 or $500,000 Exclusion

Section 121 of the tax code is what shelters most home sales. To claim the full exclusion, you have to clear three tests.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Ownership and Use

You must have owned the home for at least two years and used it as your primary residence for at least two years, both within the five-year window ending on the sale date. The two years don’t have to be consecutive. You could live in the home 14 months, rent it out for a year, move back in for 10 months, and still pass the use test. Short absences for vacation, illness, or business count as time you lived there.2Internal Revenue Service. Publication 523 (2025), Selling Your Home

For married joint filers, only one spouse needs to satisfy the ownership test, but both spouses must independently satisfy the use test to claim the full $500,000.

The Once-Every-Two-Years Rule

You can only use the exclusion once in any two-year period. If you claimed it on a different home sale within the two years before this one, you can’t claim it again now.

Special Cases

A surviving spouse can still claim the full $500,000 exclusion, but only if the home is sold within two years of the other spouse’s death and both spouses met the use and ownership requirements immediately before the death. After that two-year window, the exclusion drops to $250,000.

Members of the uniformed services, the Foreign Service, and the intelligence community can elect to suspend the five-year look-back for up to 10 years while on qualified official extended duty, which is an assignment of more than 90 days at a station at least 50 miles from the home, or living in government quarters under orders.4Internal Revenue Service. Topic No. 701, Sale of Your Home In practice, that gives eligible service members up to 15 years to sell and still qualify.

The Partial Exclusion When Life Forces a Sale

Selling before you’ve hit the two-year marks doesn’t automatically mean the full gain is taxable. If the sale was triggered by certain events beyond your control, you can claim a reduced exclusion. The qualifying reasons include:2Internal Revenue Service. Publication 523 (2025), Selling Your Home

  • Job relocation or change in employment status
  • Health reasons
  • Divorce or legal separation
  • Death of a resident
  • Multiple births from one pregnancy
  • Eligibility for unemployment compensation
  • Inability to pay basic living expenses because of a change in employment
  • Destruction or condemnation of the home
  • Casualty loss from a disaster or act of terrorism

The partial exclusion is proportional. Take the shortest of three periods (how long you owned the home, how long you used it as your residence, or how long since you last claimed the exclusion) and divide by 730 days. Multiply that fraction by $250,000 or $500,000. A single filer who lived in the home 15 months before a qualifying job move gets 15/24 × $250,000, or about $156,250.

When Part of Your Gain Is Still Taxable

Two situations can leave some gain exposed even when you qualify for the exclusion.

Non-Qualified Use

If you used the home as something other than your primary residence for any period after December 31, 2008, the share of gain tied to that period cannot be excluded. The common pattern: buy a home, live in it three years, convert it to a rental for four, then sell. The four rental years are non-qualified use, and a proportional slice of the gain is taxable no matter what your exclusion is.

Depreciation Recapture

If you ever rented the home and claimed depreciation, those deductions come back as taxable income when you sell. Recaptured depreciation is taxed at a maximum federal rate of 25%, and the Section 121 exclusion does not shelter it. Even if your total gain is well under $250,000 or $500,000, you still owe tax on whatever depreciation you took.

Rates on the Taxable Portion

Whatever gain isn’t excluded gets taxed based on how long you owned the home.

Short-Term vs. Long-Term

Held one year or less, the gain is short-term and taxed at your ordinary income rate. Held more than one year, it’s long-term and qualifies for preferential rates.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses Most homeowners land in long-term territory.

2026 Long-Term Capital Gains Brackets

For tax year 2026, the long-term rates depend on total taxable income and filing status:6Internal Revenue Service. Revenue Procedure 2025-32

  • 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
  • 15% rate: income above those thresholds but not exceeding $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
  • 20% rate: income above the 15% ceiling.

These thresholds apply to your total taxable income, not just the home sale. A married couple with $80,000 of regular income and $120,000 of taxable gain has $200,000 in total taxable income and pays 15% on the gain.

The 3.8% Net Investment Income Tax

Higher earners face an additional 3.8% tax on net investment income, including capital gains. It applies when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers.7Internal Revenue Service. Topic No. 559, Net Investment Income Tax Any gain excluded under Section 121 is not subject to this tax; only the portion above the exclusion can trigger it.8Internal Revenue Service. Net Investment Income Tax A high-income single filer with $300,000 of gain would only face the surtax on the $50,000 above the exclusion.

State Tax

Most states also tax capital gains, usually at ordinary income rates. A few states have no income tax at all; the highest-taxing states charge rates above 13%. The state where you live on the date of sale generally determines who taxes your gain. Run your state’s numbers before assuming the federal calculation tells the whole story.

Reporting the Sale

The closing agent is required to file Form 1099-S with the IRS reporting the gross sale price and your identifying information, unless you provide a signed certification that the full gain qualifies for the Section 121 exclusion.9Internal Revenue Service. Instructions for Form 1099-S (04/2025)

If a 1099-S is filed and you don’t report the sale, the IRS matching system will flag it. When the gain is fully excluded, report the sale on Form 8949 and enter the exclusion with code “H.” When part of the gain is taxable, report the full transaction on Form 8949 with your acquisition date, sale date, net sale price, and adjusted basis; the results flow through Schedule D to your Form 1040.

Estimated Tax

A large taxable gain can create an underpayment penalty if you wait until April. You generally need to make an estimated tax payment during the quarter you close if you expect to owe at least $1,000 in total tax for the year after withholding and credits.10Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc. The IRS lets you annualize income so the payment covers only the quarter the gain occurred. The Annualized Estimated Tax Worksheet in Publication 505 walks through the math.