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

Asked by: Casimir Gibson  |  Last update: July 5, 2026
Score: 4.5/5 (51 votes)

To avoid or minimize capital gains tax on a home sale, you do not have a set time after the sale to act; rather, you must have lived in and owned the home as your principal residence for at least two of the five years preceding the date of sale. This allows you to exclude up to $ 250 , 000 $ 2 5 0 , 0 0 0 (single) or $ 500 , 000 $ 5 0 0 , 0 0 0 (married) of profit.

How long after selling a house do you pay capital gains tax?

To potentially exclude capital gains on your primary home sale, you generally must have owned it and lived in it as your main home for at least 2 out of the last 5 years before the sale (the "2-in-5-year rule"). This allows single filers to exclude up to $250,000 of gain, and married couples up to $500,000, with the exclusion available every two years, avoiding capital gains tax on that profit. 

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 12 month rule for capital gains?

The "12-month rule" for capital gains tax in the U.S. distinguishes between short-term and long-term gains: assets held for one year or less result in short-term gains, taxed at your higher ordinary income tax rates, while assets held for more than one year (over 12 months) generate long-term gains, taxed at lower, preferential rates (0%, 15%, or 20%). This rule determines if your profit gets taxed as regular income or at a reduced rate, making holding assets longer generally more tax-advantageous.
 

At what age can a homeowner sell a residence without paying capital gains?

Key Takeaways

The over-55 home sale exemption allowed homeowners over 55 to exclude up to $125,000 of capital gains from their taxes when selling a primary residence; however, this exemption ended in 1997.

Watch Out For Capital Gains when Selling Your House

27 related questions found

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. 

Can I sell my house to my son for $1?

Yes, you can absolutely sell a home below market value—and legally gift the difference. It's a legitimate and frequently used estate planning strategy that can support younger generations, avoid probate, reduce capital gains, and reduce estate tax exposure.

Do you have to wait 2 years to avoid capital gains?

Yes, for the primary residence capital gains exclusion, you generally need to have owned and lived in the home for at least 2 of the last 5 years before the sale, but these two years don't have to be consecutive; however, you can't claim the exclusion if you've excluded gain on another home in the prior two years, with exceptions for unforeseen circumstances like job changes or health issues. For other investments, holding an asset for more than one year qualifies for lower long-term capital gains tax rates, but selling before two years means short-term gains taxed at your higher ordinary income rate. 

What is the 36 month rule?

It allowed sellers to claim CGT exemption for the final 36 months of ownership, even if they had moved out. However, this was reduced to 18 months in 2014 and further to 9 months in 2020, which remains the rule today. This general law is in place as it prevents short-term transaction benefits concerning taxation.

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.

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.

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

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 lifetime capital gains exemption?

LCGE has an exemption limit for qualified farm and fishing property or qualified small business corporation shares of $1,250,000. This amount is indexed to inflation. With LCGE, you're allowed to subtract your taxable amount from your profits. Note that the LCGE is a cumulative lifetime limit.

Is there a one-time forgiveness on capital gains tax?

There isn't a single "one-time" capital gains exemption, but the most common exemption allows you to exclude up to $250,000 (single) or $500,000 (married filing jointly) of profit from the sale of your primary residence, which can be used multiple times as long as you meet ownership and use tests (lived in it 2 of the last 5 years) and haven't used the exclusion in the past two years. Other options exist, like 1031 exchanges for investment properties or Charitable Remainder Trusts, but they have different rules. 

How much time after selling a house do you have to buy a house to avoid the tax penalty?

Thankfully, that rule is long gone. The modern answer is reassuring: the current tax rules (specifically the Section 121 exclusion) do not set a timeline requirement for buying your replacement home. To understand why, we need to focus entirely on the home you sold and the two rules that truly matter.