Do you avoid capital gains if you buy another house?

Asked by: Claud Blick  |  Last update: May 19, 2026
Score: 4.5/5 (66 votes)

Yes, you can avoid or defer capital gains when buying another home, but rules differ for primary residences (using the §121 exclusion up to $250k/$500k if you lived there 2 of 5 years) and investment properties (using a 1031 Exchange to defer taxes by reinvesting in a "like-kind" property, requiring strict timelines). Buying a new primary home doesn't automatically avoid gains on the old one; you need to meet specific IRS tests, while 1031 exchanges are for investment real estate, not personal homes, though a home can sometimes be converted.

Do you pay capital gains tax if you buy another house?

Key Takeaways

Buying another property does not automatically eliminate capital gains tax on a primary residence or investment property. Homeowners may qualify for the Section 121 Exclusion, which allows up to $250,000 in tax-free gains for single filers or $500,000 for married couples if residency requirements are met.

How long does it take to buy another house to avoid capital gains?

To avoid capital gains on your primary residence, you must meet the 2-out-of-5-year rule, not buy another home, but have owned/lived there 2 of the last 5 years, allowing you to exclude up to $250k/$500k gain. For investment properties, use a 1031 Exchange: identify a replacement property within 45 days and close within 180 days, deferring taxes by reinvesting in a similar property.

Do I have to pay capital gains tax if I reinvest in another property?

Yes, you generally have to pay capital gains tax when selling a house, but you can defer it (not avoid it completely) by reinvesting in another investment property via a 1031 exchange, or potentially exclude some gains if it was your primary home using the Section 121 exclusion. For investment properties, a 1031 exchange lets you roll profits into a "like-kind" property (another investment) within strict 45-day identification and 180-day closing deadlines. For a primary residence, you can exclude up to $250,000 (single) or $500,000 (married) of gain if you owned and lived in it for 2 of the last 5 years, but this doesn't apply to investment properties. 

How to avoid paying capital gains on a second home?

To avoid or minimize capital gains tax on a second home, you can convert it into your primary residence for at least two of the last five years to use the $250k/$500k exclusion (single/married), perform a 1031 exchange (for investment properties) to defer gains into another investment, donate it to charity, increase your cost basis with improvements, or strategically time the sale for lower income years. 

Pay Capital Gains Tax or Buy Another Property?

25 related questions found

What is the IRS rule for second homes?

IRS rules for second homes focus on mortgage interest, property taxes, and rental income, allowing deductions for personal use within debt limits ($750k acquisition debt post-2017) and property taxes, while treating rentals over 14 days as investment properties, requiring income reporting and expense allocation. To qualify as a second home for deductions, you must use it personally for more than 14 days or 10% of rental days (whichever is longer) if rented out. 

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

How much time do you have to reinvest to avoid capital gains?

Reinvestment in Similar Properties

Known as a 1031 exchange, as long as you snag another similar property within 180 days, you can push off those taxes.

Does improvements on my home affect capital gains?

Unlike business expenses, you can't simply write off a kitchen renovation or new flooring on your current tax return. However, this doesn't mean your improvements provide no tax benefit. They may impact your capital gains tax when selling the home.

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.

What is the 36 month rule for capital gains tax?

The "36-month rule" for capital gains tax (CGT) primarily refers to the UK's Principal Private Residence (PPR) Relief, where the final 36 months (or 9 months for most) of a property's ownership period are tax-exempt, even if not lived in, provided it was a main home at some point. In the US, the relevant rule for home sales is the "2-out-of-5-year rule" for the Section 121 exclusion, allowing up to $250k/$500k profit tax-free if owned and used as a main home for 2 of the 5 years before sale, with exceptions for unforeseen circumstances.

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%). 

Does buying a house reduce capital gains tax?

If you've lived in your home for at least 2 of the past 5 years, you may qualify for the home sale exclusion, which allows single filers to exclude up to $250,000 and married couples up to $500,000 in capital gains from taxes.

How much capital gains do you have to 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%). 

How long will $500,000 last using the 4% rule?

Your $500,000 can give you about $20,000 each year using the 4% rule, and it could last over 30 years. The Bureau of Labor Statistics shows retirees spend around $54,000 yearly. Smart investments can make your savings last longer.

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. 

How to avoid capital gains in 2025?

Can I avoid capital gains taxes?

  1. Look for gains in your tax-advantaged accounts. When you sell appreciated stocks within a retirement plan, you'll face no federal taxes on the sale at that time. ...
  2. Offset your gains by taking investment losses, too. ...
  3. Give appreciated investments to charity.

At what age does capital gains tax stop?

The capital gains tax over 65 is a tax that applies to taxable capital gains realized by individuals over the age of 65. The tax rate starts at 0% for long-term capital gains on assets held for more than one year and 15% for short-term capital gains on assets held for less than one year.

How to avoid capital gains tax on a second home?

To avoid or minimize capital gains tax on a second home, you can convert it into your primary residence for at least two of the last five years to use the $250k/$500k exclusion (single/married), perform a 1031 exchange (for investment properties) to defer gains into another investment, donate it to charity, increase your cost basis with improvements, or strategically time the sale for lower income years. 

Do you have to pay capital gains if you reinvest in another house?

Yes, you generally have to pay capital gains tax when selling a house, but you can defer it (not avoid it completely) by reinvesting in another investment property via a 1031 exchange, or potentially exclude some gains if it was your primary home using the Section 121 exclusion. For investment properties, a 1031 exchange lets you roll profits into a "like-kind" property (another investment) within strict 45-day identification and 180-day closing deadlines. For a primary residence, you can exclude up to $250,000 (single) or $500,000 (married) of gain if you owned and lived in it for 2 of the last 5 years, but this doesn't apply to investment properties.