Skip to content
Cash OfferREVIEWS

Do You Pay Taxes When You Sell Your House?

Most people who sell their main home owe no federal tax on the gain, thanks to the home sale exclusion. Here's how it works, and when rentals, inherited homes and big gains are taxed.

Key takeaways

  • If you owned and lived in your home for 2 of the last 5 years, you can exclude up to $250,000 of gain ($500,000 for married couples filing jointly).
  • Inherited homes usually get a stepped-up basis, which reduces taxable gain.
  • Rentals and second homes don't qualify for the exclusion and may owe depreciation recapture.
  • Selling for cash doesn't change your taxes; the price and your basis do.
Compare top-rated cash buyers near you Ranked by real seller reviews. Free, no obligation.

Most homeowners who sell their primary residence owe no federal income tax on the profit, because of the home sale exclusion. But rentals, second homes, inherited properties and very large gains can be taxable. Selling to a cash buyer doesn’t change any of this; the tax is based on your gain, not how the buyer pays.

This guide is general information, not tax advice. Talk to a tax professional about your situation.

The home sale exclusion (Section 121)

Filing status Gain you can exclude
Single Up to $250,000
Married filing jointly Up to $500,000

To qualify, you generally must have owned the home and lived in it as your main home for at least 2 of the 5 years before the sale, and not have used the exclusion in the prior two years. Partial exclusions may be available if you sell early because of a job change, health or certain unforeseen circumstances.

How to calculate your gain

Gain = sale price − selling costs − adjusted basis

Your adjusted basis is generally what you paid, plus certain purchase costs and capital improvements (like a new roof or addition), minus certain items such as depreciation if you rented it out.

Example Amount
Sale price $320,000
Selling costs −$4,000
Purchase price + improvements (basis) −$180,000
Gain $136,000
Exclusion (single) −$250,000
Taxable gain $0

Inherited homes

Heirs usually receive a stepped-up basis equal to the home’s fair market value at the date of death. If you sell soon after, for about that value, taxable gain is often small. See selling an inherited house.

Rentals and second homes

These don’t qualify for the exclusion (unless converted and used as your main home under specific rules). You may owe capital gains tax plus depreciation recapture. A 1031 exchange can defer taxes if you reinvest in another investment property.

Do you qualify for the full exclusion?

Question Requirement
Ownership test You owned the home at least 2 of the last 5 years
Use test You lived in it as your main home at least 2 of the last 5 years
Look-back test You didn’t exclude gain on another home in the last 2 years
Married couples ($500,000) Either spouse meets ownership; both meet use; neither used the exclusion in the last 2 years

The two years don’t have to be continuous. Special rules can apply for military service, divorce, a surviving spouse and certain disabilities.

Capital gains tax rates

Gains that aren’t excluded are generally taxed as long-term capital gains if you owned the home more than a year, at federal rates of 0%, 15% or 20% depending on income, plus a possible 3.8% net investment income tax for higher earners. Homes owned a year or less are taxed at ordinary income rates. Many states tax capital gains as ordinary income.

What increases your basis

  • Purchase price and certain closing costs when you bought
  • Additions, new roof, new HVAC, remodels and other capital improvements
  • Assessments for local improvements like sidewalks

Routine repairs and maintenance generally don’t count. Keep receipts; they can reduce taxable gain years later.

Reporting the sale

If you receive Form 1099-S or have taxable gain, you’ll generally report the sale on your tax return. If your entire gain is excluded and you don’t receive a 1099-S, you may not need to report it. A tax professional can confirm.

Other things to know

  • Losses on a personal residence generally aren’t deductible.
  • Many states also tax capital gains.
  • Forgiven debt in a short sale may have tax consequences. See selling underwater.
  • Keep your closing statement and improvement receipts.

Special situations

Divorce. If you transfer your share of the home to a spouse as part of a divorce, that transfer usually isn’t taxable. If you sell, each spouse may claim up to $250,000 if they qualify, and there are special rules for the time a spouse lived in the home.

Surviving spouse. A surviving spouse may still claim up to $500,000 if they sell within two years of the spouse’s death and other conditions are met.

Military service. Members of the uniformed services and certain others on qualified official extended duty can suspend the five-year test period for up to ten years.

Home office or rental use. If part of your home was used for business or rented, depreciation you claimed may be taxable when you sell, even if the rest of the gain is excluded.

State taxes and withholding

Many states tax capital gains, and some require withholding on sales by non-residents. If you live in one state and sell a home in another, ask the title company whether withholding applies. Sellers who aren’t U.S. persons may also face federal withholding under FIRPTA.

Records to keep

  • Closing statement from when you bought
  • Receipts for improvements
  • Closing statement from the sale
  • Any Form 1099-S you receive

Frequently asked questions

How much can you sell your house for without paying taxes?

It's about gain, not price. If you qualify for the home sale exclusion, you can exclude up to $250,000 of gain, or $500,000 for married couples filing jointly.

Do I pay more taxes if I sell my house for cash?

No. The tax rules are the same whether the buyer pays cash or uses a mortgage.

What is my cost basis?

Generally what you paid for the home plus certain purchase costs and capital improvements. Inherited homes typically use the value at the date of death.

Will I get a 1099-S when I sell my house?

The closing agent may file Form 1099-S. Even if your gain is fully excluded, keep your records in case you need to report the sale.

Can I avoid taxes by buying another home?

Not for a main home under current federal rules; that "rollover" rule ended decades ago. The home sale exclusion is the main break. For investment property, a 1031 exchange can defer tax.

What if I lived in the home less than two years?

You may qualify for a partial exclusion if you sold because of a job change, health reasons or certain unforeseen circumstances.

Do I pay taxes on an inherited house I sell right away?

Usually little or none, because your basis is generally stepped up to the value at the date of death. Any gain after that may be taxable.