What Are Capital Gains on a House? Rates, Exclusions, and Reporting

Capital gains on a house are the profit you keep when you sell for more than you paid, and the IRS treats that profit as taxable income. The big break: if you owned and lived in the home as your main residence for at least two of the five years before the sale, a single filer can exclude up to $250,000 of the gain and a married couple filing jointly can exclude up to $500,000.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Anything above the exclusion is taxed at long-term capital gains rates of 0%, 15%, or 20%, depending on your income.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses

How to Figure the Gain

A capital gain is the sale price minus your adjusted basis and your selling costs. Adjusted basis is what you have invested in the property: the original purchase price, certain closing costs from when you bought (title insurance, transfer taxes, recording fees, survey costs, legal fees tied to the purchase), plus capital improvements made during ownership.3Internal Revenue Service. Publication 551, Basis of Assets

Improvements are projects that add value or extend the home’s life. Replacing the roof, adding a room, installing central air, paving a driveway, rewiring the electrical system. Routine repairs don’t count. Fixing a leaky pipe, patching drywall, or repainting a bedroom keeps the home in its current condition rather than increasing its value, so those costs stay out of your basis.3Internal Revenue Service. Publication 551, Basis of Assets

Loan-related charges from closing also stay out. Mortgage insurance premiums, lender-required appraisal fees, credit report costs, and fire insurance premiums don’t add to basis.4Internal Revenue Service. Publication 530, Tax Information for Homeowners

On the sale side, subtract agent commissions, legal fees, escrow charges, and advertising. What’s left is your gain.

An example. You bought for $300,000, spent $50,000 on renovations, and sold for $550,000. Your gain is $200,000, before subtracting any selling costs. Keep receipts, invoices, and contractor agreements. In an audit, the IRS wants proof for every dollar you claim.

The Primary Residence Exclusion

Section 121 is the reason most home sellers pay no federal tax on the sale. To qualify for the full amount, you must have owned the home and used it as your main residence for at least two years out of the five years ending on the sale date. Married joint filers get $500,000 if both spouses meet the use test and at least one meets the ownership test.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The two years don’t have to be consecutive. Fourteen months, a year away, and ten more months back in the home would satisfy the rule.

You can only use the exclusion once every two years, and only on a principal residence. Vacation homes and pure investment properties don’t qualify on their own. For most sellers, especially those who’ve been in the home for several years, the exclusion wipes out the federal tax bill entirely.

Partial Exclusions

Falling short of two years doesn’t automatically mean zero exclusion. If the sale was driven by a job relocation, a health reason, or certain unforeseen circumstances, you may get a partial exclusion equal to the fraction of the two-year period you completed.5Internal Revenue Service. Property (Basis, Sale of Home, Etc.) Lived there one year before a qualifying job transfer? A single filer could exclude up to $125,000.

Military, Foreign Service, intelligence community, and Peace Corps personnel on qualified extended duty can suspend the five-year lookback for up to 10 years, giving as long as 15 years total to meet the residency test. The suspension applies to one property at a time.6Internal Revenue Service. Publication 523, Selling Your Home

Surviving Spouse Window

If your spouse dies and you sell the home within two years of their death, you can still claim the full $500,000 exclusion if you haven’t remarried and neither you nor your late spouse used the exclusion on another sale in the prior two years. Your late spouse’s ownership and use time counts toward the tests.6Internal Revenue Service. Publication 523, Selling Your Home After two years, the exclusion drops to $250,000.

Federal Tax Rates on What’s Left

Any gain above the Section 121 exclusion is taxed as a capital gain. The rate depends on how long you owned the home and your total taxable income.

Owned for one year or less: short-term capital gain, taxed at ordinary income rates. For 2026 those run from 10% to 37%.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Owned for more than one year: long-term capital gain, taxed at 0%, 15%, or 20%. The 2026 brackets:7Internal 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 amounts up to $545,500 single, $613,700 married filing jointly, or $579,600 head of household.
  • 20% rate: income above the 15% thresholds.

Most sellers with a taxable gain land in the 15% bracket.

The 3.8% Net Investment Income Tax

Higher earners pay an additional 3.8% surtax on net investment income, including a home-sale gain, once modified adjusted gross income tops $200,000 single or $250,000 married filing jointly. Those thresholds aren’t indexed for inflation.8Internal Revenue Service. Net Investment Income Tax The 3.8% applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. Stacked on top of the 20% long-term rate, the maximum federal rate on a home sale gain reaches 23.8%.

Situations That Change the Math

Inherited Homes

When you inherit a house, your basis isn’t what the decedent paid. It resets to the home’s fair market value on the date of death, a rule commonly called a step-up in basis.9Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent The executor can instead elect the value six months after the date of death if that helps the estate.

The difference is huge in practice. If your parents bought for $80,000 in 1985 and the home was worth $450,000 when they died, your basis is $450,000. Sell for $460,000 and your taxable gain is $10,000, not $370,000. An inherited home won’t get the Section 121 exclusion unless you move in and meet the two-year tests yourself, but the stepped-up basis usually keeps the tax small anyway.

Gifts work differently. A house given to you during the giver’s lifetime carries their original basis forward, which can create a much larger gain when you sell.

Home Office Depreciation

If you claimed a home office deduction using the regular method (actual expenses), you were required to depreciate the business-use portion. At sale, that depreciation is recaptured. You reduce your basis by the greater of the depreciation you actually claimed or should have claimed, and the recaptured amount is taxed at a rate of up to 25%. The Section 121 exclusion does not shelter depreciation recapture. You’ll owe tax on the recaptured portion even if the rest of your gain fits well inside the exclusion.10Internal Revenue Service. Depreciation and Recapture

When the office was inside your living space (a spare bedroom, not a detached structure), you don’t have to split the sale into business and residential portions. Treat it as one sale and handle the recapture piece.6Internal Revenue Service. Publication 523, Selling Your Home

The simplified home office deduction ($5 per square foot, up to 300 square feet) treats depreciation as zero, so there’s nothing to recapture at sale.10Internal Revenue Service. Depreciation and Recapture

A Home That Was Once a Rental

If you rented out the property before moving in (or after moving out and then back in), a proportional slice of your gain won’t qualify for the Section 121 exclusion. The rule looks at “nonqualified use” after 2008: divide days of nonqualified use after 2008 by total days of ownership, and that fraction of the gain is taxed regardless of the exclusion.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Owned for 10 years, rented for the first 4, lived there the last 6: roughly 40% of the gain is not excludable.6Internal Revenue Service. Publication 523, Selling Your Home Time after you last used the home as your primary residence within the five-year lookback doesn’t count as nonqualified use, and nonqualified use before January 1, 2009 is ignored.

Pure investment property is a separate track. Section 121 doesn’t cover it, but a 1031 like-kind exchange can defer the gain if you roll proceeds into a replacement investment property, subject to a 45-day identification window and a 180-day closing deadline.11Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment

State Taxes

Federal tax is only part of the bill. Most states tax capital gains as ordinary income, and rates vary. A handful of states have no income tax; the highest charge above 13%. Some offer their own version of the primary-residence exclusion or a preferential rate for long-term gains, and many don’t. Check your state’s rules before assuming Section 121 leaves you with nothing to pay.

Reporting the Sale

If your entire gain is covered by the Section 121 exclusion and you didn’t get a Form 1099-S at closing, you generally don’t need to report the sale.12Internal Revenue Service. Important Tax Reminders for People Selling a Home The closing agent is required to issue a 1099-S for most real estate sales, but there’s an exception when the seller certifies in writing that the home is their principal residence and the full gain qualifies for the exclusion.13Internal Revenue Service. Instructions for Form 1099-S (Rev. December 2026)

If you received a 1099-S, if your gain exceeds the exclusion, or if you don’t qualify for the full exclusion, report the sale on Form 8949 and carry the totals to Schedule D of your Form 1040.14Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets When a 1099-S was issued and you qualify for the exclusion, report the sale and claim the exclusion on the return anyway. That prevents the IRS from treating the proceeds as unreported income.