How to avoid capital gains tax after selling a house?

Asked by: Marilou O'Connell  |  Last update: May 24, 2026
Score: 4.4/5 (60 votes)

To avoid or minimize capital gains tax when selling a house, the most effective method is to use the IRS Section 121 exclusion, which allows individuals to exclude up to $ 250 , 000 $ 2 5 0 , 0 0 0 ( $ 500 , 000 $ 5 0 0 , 0 0 0 for married couples) of profit if it was their primary residence for at least two of the five years preceding the sale. Other strategies include deducting home improvement costs to increase the cost basis, using a 1031 exchange for investment properties, and offsetting gains with losses from other investments.

How to get out of capital gains tax from selling a house?

Qualifying for the exclusion

In general, to qualify for the Section 121 exclusion, you must meet both the ownership test and the use test. You're eligible for the exclusion if you have owned and used your home as your main home for a period aggregating at least two years out of the five years prior to its date of sale.

What is the 6 year rule for capital gains?

The "6-year rule" for Capital Gains Tax (CGT) in Australia allows you to treat a former main residence as tax-exempt for up to six years after you move out, even if you rent it out, enabling you to avoid CGT on any growth during that period. You qualify by moving out, choosing to treat it as your main home for tax, and can reset the rule by moving back in. If you rent it out for longer than six years, only the portion of the gain after the six-year mark becomes taxable.
 

What happens if I sell my house and don't buy another?

If you sell your house and don't buy another, you'll have cash proceeds (after paying off the mortgage and selling costs) and need to decide on new housing, often renting or moving in with family; financially, you might benefit from the IRS capital gains exclusion (up to $250k/$500k profit if you've lived there two of the last five years), but you'll pay tax on gains beyond that, while also managing the new costs of renting or storage.

How long do you have after selling a house to avoid capital gains?

The seller must have owned the home and used it as their principal residence for two out of the last five years (up to the date of closing). The two years don't have to be consecutive to qualify. The seller must not have sold a home in the last two years and claimed the capital gains tax exclusion.

Homeowners BEWARE! Capital Gains Changes Will DEVASTATE Your Equity

19 related questions found

What is the 3-3-3 rule in real estate?

The "3-3-3 rule" in real estate isn't a single guideline but refers to different strategies: for buyers, it's about financial readiness (3 months savings, 3 months reserves, 3 property comparisons) or a financial affordability check (30% income, 30% down, 3x income); for agents, it's a marketing habit (call 3, note 3, share 3) or prospecting (talking to everyone within 3 feet). There's also a developer rule (1/3 land, 1/3 build, 1/3 profit), though it's considered outdated by some.

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

Who qualifies for 0% capital gains?

To qualify for 0% capital gains tax, you must have long-term capital gains (assets held over a year) and your taxable income (after deductions) must fall below specific IRS thresholds, which change annually but are roughly <$48,350 for single filers and <$96,700 for married filing jointly for the 2025 tax year, allowing for higher total income when combined with deductions like the standard deduction. The key is keeping your adjusted gross income (AGI) low enough so that after subtracting deductions, your taxable income remains within these limits. 

At what threshold do you pay capital gains tax?

For the 2024/25 and 2025/26 tax years, the CGT allowance stands at £3,000 for individuals, personal representatives, and trustees for disabled people, and £1,500 for other trustees. The reduction from £6,000 in 2023/24 and £12,300 in 2022/23 means more people who previously paid no CGT must now pay tax on their gains.

What is the one-time capital gains exemption?

The primary "one-time" capital gains exemption in the U.S. allows single filers to exclude up to $250,000 (or $500,000 for married couples filing jointly) of profit from selling their main home, provided they've owned and lived in it for at least two of the last five years before the sale. While it's often called a one-time exclusion, you can use it multiple times, but you must wait two years before claiming it again on another property.
 

What are some common capital gains tax mistakes?

One of the simplest yet most expensive mistakes is misunderstanding the difference between short-term and long-term capital gains taxes. Short-term gains — profits from assets held less than a year — are subject to typical income tax rates, which can reach 37% for high earners.

How do I offset capital gains on sale of property?

Use a 1031 exchange

A 1031 exchange, also referred to as a like-kind exchange, lets you defer capital gains taxes when you sell a rental property. The caveat is that you must reinvest the proceeds into a similar investment property.

How do the rich not pay capital gains?

Billionaires often employ the “buy, borrow, die” strategy to avoid income and capital gains taxes. First, they acquire appreciating assets like stocks or real estate. Instead of selling these assets when they need cash (which would trigger capital gains tax), they borrow against them at favorable interest rates.

What is the 20% rule for capital gains?

The 20% rule for capital gains refers to the highest federal tax rate for long-term capital gains, applying to higher income brackets when you sell investments (stocks, real estate) held for over a year, with lower rates of 0% and 15% for lower incomes, and even higher rates for special assets like collectibles. This rate kicks in for single filers earning over approximately $492,300 (2024) or $533,401 (2025), and higher for joint filers, making holding assets over a year a key tax strategy.

Does the Big Beautiful Bill get rid of capital gains tax?

The 2025 tax legislation signed into law by President Trump, commonly referred to as the One Big Beautiful Bill Act, largely preserves the existing capital gains tax framework. Long-term capital gains rates remain set at 0%, 15% and 20%, with no changes to the underlying brackets.

How much capital gain is tax free?

The amount of tax-free capital gain depends on the asset, but the most common exemption is for your primary home, allowing single filers to exclude up to $250,000 (or $500,000 for married couples) of profit if you've lived there 2 of the last 5 years. Additionally, certain long-term investments in qualified small businesses or Opportunity Funds, plus gains on inherited assets (due to stepped-up basis at death), can also be tax-free, while lower income levels may qualify for a 0% long-term capital gains tax rate. 

How much is capital gains tax on a $500,000 house?

When you sell your primary residence, $250,000 of capital gains (or $500,000 for a couple) are exempted from capital gains taxation. This is generally true only if you have owned and used your home as your main residence for at least two out of the five years prior to the sale.

What is the 6 year rule for capital gains tax?

The "6-year rule" for Capital Gains Tax (CGT) in Australia allows you to treat a former main residence as tax-exempt for up to six years after you move out, even if you rent it out, enabling you to avoid CGT on any growth during that period. You qualify by moving out, choosing to treat it as your main home for tax, and can reset the rule by moving back in. If you rent it out for longer than six years, only the portion of the gain after the six-year mark becomes taxable.
 

How can I legally avoid capital gains tax?

A common way to defer or reduce your capital gains taxes is to use tax-advantaged accounts. Retirement accounts such as 401(k) plans, and individual retirement accounts offer tax-deferred investment. You don't pay income or capital gains taxes on assets while they remain in the account.