Do I Pay Taxes When I Sell My House? What You Need to Know

Luke Williams's Photo
By Luke Williams Updated October 6, 2026
's Photo
Edited by Amber Taufen

SHARE

If you just sold your home for a profit, or you're about to, you're probably wondering whether a chunk of it is headed to the IRS. For most sellers, the answer is no. Most homeowners don't owe any federal tax on a home sale.

The IRS home sale tax exclusion lets you keep up to $250,000 of profit tax-free, or $500,000 for married couples filing jointly.[1] To qualify, the house must be your main home, and you must have owned it and lived in it for at least two of the five years before the sale.

If your profit goes over the limit, you only pay tax on the amount above it. If you sell before the two-year mark, you may owe tax on all of it.

Below, we cover who owes what, how to report the sale, and the moves that can shrink your bill.

Do most sellers owe capital gains tax?

No, most sellers don’t owe capital gains tax when they sell their homes. The Taxpayer Relief Act of 1997 creates an explicit capital gains tax exemption for homeowners selling their primary residences.[2]

Single filers can exclude up to $250,000 of profit. Married couples filing jointly can exclude up to $500,000. Most sellers stay well under those limits. The sellers most likely to go over are long-time owners in expensive markets, like the San Francisco Bay Area, Seattle, or the New York metro.[2]

You likely won't owe federal tax on your home sale if:

  • You’ve owned the home for at least two years.
  • You lived in it asd your main home for at least two out of the past five years.
  • The profit from the sale was less than $250,000 ($500,000 if married filing jointly).
  • You haven’t claimed the home sale exclusion on another home in the past two years.

Alternatively, you may owe tax on some (or all) of your profit if:

  • You’ve owned or lived in the home for less than two years.
  • The home isn't your primary residence (for example, it's an investment property or vacation home).
  • Your profit is more than the exclusion limit.
  • You claimed depreciation on the home if you rented it out or used part of it as a home office.

The $250,000 / $500,000 limits could be changing

The exclusion limits aren't adjusted for inflation. They're the same today as when the law passed in 1997, while home prices have risen several times over.

Congress is debating a fix. The More Homes on the Market Act (H.R. 1340) would double the limits to $500,000 and $1 million and index them to inflation.[3] The No Tax on Home Sales Act (H.R. 4327) would eliminate the tax on primary home sales.[4]

Neither bill has passed yet, however, so plan your sale around the current limits.

How the home sale tax exclusion works

The Section 121 exclusion applies to the first $250,000 (if single) or $500,000 (if married) of profit from the sale. This is not a one-time benefit, and you can use it once every two years when you sell your primary residence.

Say you're single, buy a house for $400,000, and sell it five years later for $600,000. Your $200,000 profit is under the limit, so you owe no federal tax on it.

Now say your profit was $280,000. The first $250,000 is excluded. You'd owe capital gains tax on the remaining $30,000.

To qualify, you have to pass the following three tests.

1. Ownership test

First, you must have owned the home for at least 2 years (24 months) during the 5 years before the final sale date.

For instance, if you bought a house in January 2022 and sold it in January 2026 (4+ years), you’d pass the ownership test.

2. Use test

You must have lived in the home as your main home for at least 24 months during the five years before the sale.

The 24 months don’t have to be consecutive, so if you lived in the house from January 2022 to January 2024, then rented it out from January 2024 to January 2026, you would still qualify.

Note: For married couples to claim the full $500,000, both spouses must pass the use test, but only one needs to pass the ownership test. Neither spouse can have claimed the exclusion on another home in the past two years.[5] A surviving spouse who sells within two years of their spouse's death can still claim up to $500,000 if the couple met the requirements before the death.

3. Look-back test

Lastly, it must be at least two years since you last claimed a home sale tax exemption. So if you sold your last house and claimed an exemption in April 2024, you wouldn’t be able to claim another until at least April 2026.

4. Special circumstances

There are exceptions to the eligibility test where you can take a partial exclusion even if you haven’t lived in the house for the full two years:

  • You were transferred to a job more than 50 miles from your home.
  • You were divorced or separated from your spouse.
  • You were diagnosed with health issues.
  • Other unforeseeable events (e.g., death of spouse/child, birth, loss of employment, etc.).

"If you have not lived in the property for two years, you might qualify for a partial exclusion in limited circumstances," says Ashley Morgan, an attorney and owner of Ashley F. Morgan Law in Herndon, Virginia. We explain how the partial exclusion is calculated in the next section.

5. Military and federal service exception

Members of the uniformed services, the Foreign Service, the U.S. intelligence community, and Peace Corps volunteers can suspend the five-year window for up to 10 years while on qualified extended duty. That means you'd only need to have lived in the home for two of the last 15 years. You can suspend the window for only one property at a time.

What if I’m selling before I hit 2 years?

Selling your home before two years is when things can start to get expensive.

“Selling a home before the two-year mark is one of the most costly mistakes that a homeowner can make,” says Olivier Wagner, CEO of international tax service 1040 Abroad. “You lose that massive tax-free exclusion of $250,000 entirely if you don't meet the residency requirements.“

Without the exclusion, you may have to pay a hefty tax on the sale. “That means the IRS considers your profit to be regular income or short-term capital gains, which has a much higher tax rate,” says Wagner. For a deeper look, see our guide to selling a house before 2 years.

Owned less than 1 year

For properties owned for less than one year, short-term capital gains tax applies. It's taxed at the same rates as your paycheck, from 10% to 37%.[7] Any profit covered by the exclusion is never subject to it.

Partial exclusions

If you qualify for a partial exclusion, you can claim a percentage amount of the full exemption equal to the percentage of the two-year residency you have fulfilled. So if you live in your house for 12 months (50% of two years), you can take a $125,000 exemption (50% of $250,000).

How to calculate capital gains tax when you owe it

If you're selling your home and you don’t qualify for the full exclusion, here is how to calculate how much you’ll owe in taxes.

Keep in mind that these are estimated calculations and that you should always consult with a tax professional before making final decisions.

Step 1: Figure out your adjusted cost basis

Your adjusted cost basis is what you paid for the house, plus certain buying costs and the cost of any capital improvements. Buying costs that count include title fees, recording fees, and transfer taxes. Capital improvements are projects that add value or extend the home's life, like an addition, a new roof, a new HVAC system, or a kitchen remodel. Routine repairs and maintenance don't count.

Say you bought your house for $270,000, paid $10,000 in eligible buying costs, and put $20,000 into improvements. Your adjusted cost basis is $300,000.

Step 2: Calculate your gain

Your gain is the sale price minus your adjusted cost basis.

If you sold for $600,000 and your basis is $300,000, your gain is $300,000.

Step 3: Deduct selling expenses

Next, deduct your selling expenses from the total capital gains. These are costs related to selling your house, like agent title, escrow, recording, and transfer fees. So in our current example, if you spent $15,000 on closing costs and selling the home, your adjusted capital gains would be $285,000 ($300,000-$15,000).

These costs reduce your gain directly. They aren't itemized deductions, so don't look for them on Schedule A.

Step 4: Apply exclusion (if applicable)

Now you can apply your exclusion, if it’s applicable. If you're filing single with an adjusted capital gain of $285,000, taking the full $250,000 sales deduction would leave a taxable capital gain of $35,000.

Step 5: Determine your tax rate

Because this seller passed the two-year tests, they have owned the home for more than a year, so long-term rates apply. At the 15% rate, they'd owe $5,250 in federal tax ($35,000 x 15%).

If their income is over the net investment income tax threshold, add 3.8%, or another $1,330.

Taxes on rental properties and second homes

The home sale exclusion only applies to primary residences, so you’ll need to consider taxes for investment properties, rentals, and second homes.

Pure investment property

An investment property that you’ve never lived in doesn't qualify for the exclusion, so you’ll pay capital gains on any profit. You'll also owe tax on any depreciation you claimed while you owned it, at a rate of up to 25%. Our guide to capital gains tax on investment property walks through the math.

You can defer both taxes with a 1031 exchange. It lets you roll the proceeds from one investment property into a "like-kind" property and put off the tax bill.

Converted rental

If you lived in the home first, then rented it out, you can still claim the full exclusion if you sell within three years of moving out. That keeps two years of living there inside the five-year window.[5] Rental time after you move out doesn't shrink your exclusion.

That three-year deadline is tighter than it looks. "It runs from the day the sale closes, not the day you list," says Phillip Zagotti, a tax attorney, CPA, and founder of North Star Law Firm in Houston. "I have seen sellers list in month 34 thinking they are safe, watch the first buyer fall through, and close in month 38, losing a quarter-million-dollar exclusion over four months."

If you're renting out your old home and plan to sell, list it with plenty of runway before the three-year mark.

Also note that any depreciation you claimed, or were entitled to claim, while renting is taxed when you sell, at up to 25%. "The recaptured amount is taxed as ordinary income, capped at 25 percent, and the home-sale exclusion cannot offset it," Zagotti says. Our guide to avoiding taxes when you sell a rental property covers ways to reduce that bill.

Second homes and vacation homes

A second home or vacation home doesn't qualify for the exclusion unless it was your main home for at least two of the five years before the sale. The rules above for rentals that became your main home also apply here.

Do you pay state taxes when you sell a house?

Most states with an income tax also tax home-sale profits, usually as ordinary income. Many follow the federal $250,000 and $500,000 exclusion limits, but check your state's rules before assuming they match.

"Depreciation recapture and state taxes are the most commonly overlooked," says Jay H. Gutmann, a CPA and real estate tax advisor in Frederick, Maryland.

Nine states have no broad state income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. Washington taxes some capital gains, but it exempts real estate. For state-by-state rules, see our ultimate guide to real estate taxes.

Selling a house in another state

The state where the property is located can tax your gain, even if you live somewhere else. A Texas resident who sells a rental in California, for example, would owe California tax on the profit and would file a California nonresident return.

Your home state may also tax the gain. Most states give you a credit for taxes paid to the other state, so you aren't taxed twice on the same profit. Some states also withhold part of the sale price at closing when the seller lives out of state. Ask your title or escrow company about this early so it doesn't catch you by surprise at the closing table.

How to report the sale to the IRS

If you qualify for the full exclusion and don’t receive a 1099-S when you sell the home, you may not have to report the sale to the IRS.[8]

If you did receive a 1099-S, you must report the sale on your tax return, even if the exclusion covers your whole gain.[9] Reporting it doesn't mean you'll owe anything. It shows the IRS why no tax is due.

To report the sale:

  • Report it on Form 8949, Sales and Other Dispositions of Capital Assets.[10]
  • Enter the excluded amount on Form 8949 so it reduces your gain.
  • Carry the totals to Schedule D of Form 1040.
  • Report any remaining taxable gain on Form 1040.

How to reduce your tax bill when selling

If you owe capital gains taxes, there are still some ways you can reduce the amount you’ll have to pay:

  • Hold the home for more than a year. Long-term rates top out at 20%, while short-term gains are taxed at up to 37%. If you can, wait until you hit two years and qualify for the exclusion.
  • Keep home improvement receipts. These expenses raise the adjusted cost basis, which determines your total gains.
  • Document all your selling expenses. You can deduct these to reduce your total tax liability. Commissions, title fees, and transfer taxes are deducted from your sale price.
  • Offset the gain with investment losses. Losses from selling other investments, such as stocks, can offset your gains (tax-loss harvesting).
  • Know your basis if you inherited the home. Your cost basis is generally the home's value on the date the previous owner died, not what they paid for it. See our guide to selling an inherited home.

Bottom line: You probably won't owe taxes

If you're like most U.S. homeowners, you won't owe federal tax on your home sale. You're in the clear if you:

  • Owned your home for at least two years
  • Lived in it as your main home for at least two of the past five years
  • Made a profit of $250,000 or less ($500,000 or less if married filing jointly).

Selling before the two-year mark is where the tax bill gets large, especially if you sell within the first year.

Before you list, pull together your receipts for improvements, check your ownership and move-in dates, and run the numbers above. If you've rented the home out, own an investment property, or expect a gain above the exclusion, talk to a CPA before you sign a listing agreement.

Ready to sell? Clever connects you with top local agents who can help you maximize your sales price and minimize fees. Get matched with a vetted agent today.

FAQ

Do I pay taxes if I sell my house and buy another?

Buying another home doesn't affect whether you owe tax on the one you sold. The old rule that let you roll your profit into a new home ended in 1997. Today, the $250,000 or $500,000 exclusion is what protects your profit, whether you buy again, rent, or move in with family.

Do I have to report the sale of my home to the IRS?

Only if you received a Form 1099-S or have a taxable gain.[5] If you got a 1099-S, report the sale on Form 8949 even if the exclusion covers all of your profit.

How much tax do you pay when you sell a house?



If your profit is under $250,000 ($500,000 if married filing jointly) and you pass the two-year tests, you pay $0 in federal tax. Above those limits, the excess is usually taxed at 15%. Sellers who owned the home for a year or less pay their regular income tax rate on the full profit.

Related reading

Article Sources

[1] IRS – "Topic no. 701, Sale of your home". Accessed October 8, 2026.
[2] Office of the Law Revision Counsel – "26 USC 121: Exclusion of gain from sale of principal residence". Accessed October 5, 2026.
[3] Congress.gov – "H.R.1340 - More Homes on the Market Act". Accessed October 5, 2026.
[4] Congress.gov – "H.R.4327 - No Tax on Home Sales Act". Accessed October 5, 2026.
[5] IRS – "Publication 523 (2025), Selling Your Home". Accessed October 5, 2026.
[6] – "".
[7] IRS – "Topic no. 559, Net investment income tax". Updated February 20, 2026. Accessed October 5, 2026.
[8] IRS – "About Form 1099-S, Proceeds from Real Estate Transactions". Updated January 23, 2026. Accessed October 6, 2026.
[9] IRS – "About Form 1099-S, Proceeds from Real Estate Transactions". Updated January 23, 2026. Accessed October 5, 2026.

Better real estate agents at a better rate

Enter your zip code to see if Clever has a partner agent in your area
If you don't love your Clever partner agent, you can request to meet with another, or shake hands and go a different direction. We offer this because we're confident you're going to love working with a Clever Partner Agent.