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

Luke Williams's Photo
By Luke Williams Updated March 10, 2026
+ 1 more
's Photo
Edited by Amber Taufen

SHARE

If you have recently sold your house for a profit, you might be worried about whether you owe taxes on the sale. The good news is that most homeowners don’t owe taxes on profits from house sales.

The IRS home sale tax exclusion means you don’t have to pay capital gains taxes if the profit from the sale is less than $250,000 (or $500,000 for married couples).[1]

If your profit was above those limits, the sale will be reported and taxed as capital gains. To qualify for the tax exemption, the house must be your primary residence, and you must have lived in it for at least two of the previous five years.

So if you lived in your house for more than two years and earned less than the limit from the sale, you’re in the clear. Otherwise, you’ll need to account for the sales when you do your taxes this year.

This article will cover the basics of taxes on selling a house and some tips on reducing your tax liability.

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.

According to 26 USC §121, single individuals are exempt from paying taxes on up to $250,000 in profit from home sales.[2] For married couples filing jointly, the limit is increased to $500,000.

To qualify for the tax exemption, the house must be your primary residence, and you must have lived in it for at least two out of the past five years.

Given the generous exemption limit and the fact that most homeowners stay in their homes, most won’t have to pay taxes on a sale. The exception is in high-value markets where property prices have seen significant spikes in recent years (e.g., San Francisco Bay Area, Austin, Seattle, etc.).

To sum up, you won’t owe taxes if:

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

Alternatively, you will owe taxes if:

  • You’ve owned the house for less than two years.
  • You haven’t lived in it for at least two of the previous five years.
  • The house is not your primary residence (e.g., investment property, second home, etc.).
  • The profit from the sale exceeds the exemption limit.

The $250,000/$500,000 primary residence exclusion explained

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

For example: You are single, buy a house for $400,000, then sell it for $600,000 five years later. Because the profit ($200,000) is less than the exemption, you won’t have to pay taxes on the sale.

Alternatively, if you earned $280,000 from the sale, you could exempt the first $250,000 but would have to pay capital gains taxes on the remaining $30,000 in profit.

Below, we’ll cover the three eligibility criteria more in-depth:

1. Ownership test

First, you must have owned the home for at least two years (24 months) in the five 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 also have lived in the house as your primary residence for at least two years (24 months) of the five years immediately preceding the sale date.

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, both spouses must pass the use test.

3. Frequency 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.).

5. Military exception

Active duty military members and their spouses can elect to suspend the five-year residency requirement for up to ten years. This effectively means you only have to have lived in the house for two out of the 15 years.

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’ll 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.

Owned less than 1 year

For properties owned less than one year, short-term capital gains taxes apply. This means that the profit from the sale will be taxed as ordinary income.

So if you’re in the 32% income bracket and earn $100,000 from a sale, you’ll pay 32% in taxes on that profit (e.g., $32,000).

Owned 1–2 years

If you are selling your house after one year but before two years, long-term capital gains taxes apply. This could be either 0%, 15%, or 20%, depending on your income and tax bracket:

  • 0%: $48,000 (single) / $96,000 (married).
  • 15%: $48,000-$533,000 (single) / $96,000-$600,000 (married).
  • 20%: Over $533,000 (single) / Over $600,000 (married).

For a $100,000 profit at the 15% bracket, you’d pay $15,000 in tax on the sale.

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 are 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: Calculate your gain

The first step is calculating the capital gains. This is simply equal to the sales price of the house minus the adjusted cost basis (more on this below).

For instance, if you sold for $600,000 and your adjusted cost basis was $300,000, your total gain would be $300,000.

Step 2: Calculate adjusted cost basis

The adjusted cost basis is equal to the amount you originally paid for the house, plus buying costs and capital improvements.

A capital improvement is anything that increases the value of a home, and includes most additions, renovations, and updates, like HVAC and kitchen remodels. So if you have done any renovations or updates on your home, make sure you save the receipts.

So if you originally bought your house for $270,000, spent $10,000 on closing, and put in $20,000 in updates, your adjusted cost basis would be $300,000. Taxation uses the adjusted cost basis to ensure a more accurate calculation of capital gains on appreciating assets.

Step 3: Deduct selling expenses

Next, deduct your selling expense from the capital gains total. 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).

Step 4: Apply exclusion (if applicable)

Now you can apply your exclusion, if it’s applicable. If you are 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

The last step is to determine your federal income tax bracket and whether short-term or long-term capital gains apply.[3]

Assuming you fall in the 32% tax bracket and you owe short-term capital gains on the $35,000, you would ultimately owe $11,200 in taxes.

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 does not qualify for the exclusion, so you’ll pay capital gains on any profit. If you ever claimed any depreciation on the property, you may also have to pay an additional depreciation recapture tax whenever you sell.

One way to get around this is to do a 1031 exchange. This allows you to use the proceeds from selling an investment property to purchase a “like-kind” property and defer taxes.

Converted rental

Converted rentals are an edge case that can qualify for the exclusion if:

  • You’ve owned it for the past two of five years.
  • You’ve lived in it for two of the past five years.

However, there is a catch. If you rented your property after the year 2008, that period of “nonqualified use” can reduce the deduction you can take.

For instance, if you owned and lived in the home for two years, then rented it out for two years, only 50% of your gains would be deductible (two years qualified use/two years nonqualified use).[4]

Second home

For second homes and vacation homes, you cannot use the exclusion unless you have used it as your primary residence for two out of the last five years.

Converting rental property to primary residence strategy

You can convert a rental to a primary residence and still qualify for the exclusion if you live in it for at least two years before selling. However, similar restrictions related to qualified and non-qualified use apply as they do when selling a converted rental.

State capital gains taxes

So far, we’ve only considered federal taxes on home sales,  but some states have capital gains taxes as well, such as California, New York, and New Jersey. Generally, these states tax capital gains as income or at a separately established rate.

If you are selling a house in a state you don’t live in, you will have to pay taxes on the sale according to the rules of that state. You can obtain a nonresident tax return to account for multi-state properties.

For example, if you are a Texas resident but sold a property in California, California’s capital gains taxes would apply.

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.[5]

If you did receive a 1099-S form, don’t panic, as you still may not owe taxes. If you qualify for the exclusion, the 1099-S is just for reporting the sale to the IRS — it doesn’t automatically mean you have to pay taxes.

If you receive a form and report the sale, you’ll need to do the following:

  • Fill out Form 8949 for the Sales and Disposition of Capital Assets.[6]
  • Input totals on Form 1040-Schedule D.
  • Calculate your total exclusion.
  • Report taxable games in 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:

  • Time the transaction until you’ve owned the home for at least one year. That way, a lower long-term capital gains rate will apply. Even better, wait for two years.
  • Keep track of every single improvement and update you make. These 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.
  • If you have losses from other investments, you can claim them to offset the capital gains you made from selling a house (tax-loss harvesting).

Bottom line: You probably won’t owe taxes

To sum things up, if you are like most homeowners in the U.S., you likely won’t owe taxes when selling your home for a profit.

If you:

  • Owned your home for at least two years
  • Lived in it for two out of the past five years
  • Made less than $250,000 from the sale ($500,000 if married)

... then you won’t owe capital gains taxes on your home sale. 

However, selling before the two-year mark will generate a hefty tax bill, especially if you sell before one year.

So when planning to sell your home, gather all your receipts for improvements and confirm that you meet all ownership tests. You can also talk to an accountant if you plan to sell an investment property.

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.

Article Sources

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.