How do I avoid capital gains tax after selling my house?

Asked by: Solon Fay  |  Last update: June 1, 2026
Score: 4.5/5 (4 votes)

To avoid or minimize capital gains tax when selling your home, you can exclude up to $ 250 , 000 $ 2 5 0 , 0 0 0 (single) or $ 500 , 000 $ 5 0 0 , 0 0 0 (married filing jointly) of profit if you lived in the home as your primary residence for at least two of the five years leading up to the sale. Other methods include increasing your cost basis with improvements, using a 1031 exchange for investment properties, or utilizing partial exclusions for unforeseen circumstances.

What is a simple trick for avoiding capital gains tax on real estate investments?

A 1031 exchange is‌ essentially swapping one real estate investment for another. It's a popular way to defer capital gains taxes when selling a rental home or even a business. Often referred to as a “like-kind” exchange, this tax deferment strategy is defined in Section 1031 of the Internal Revenue Code.

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?

Here's how it works: If you rent out the property, it remains your main residence for up to six years for CGT purposes. If you don't rent it out, there's no time limit, and you can keep claiming the main residence exemption.

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

If you sell your home and decide not to buy immediately, you may still qualify for the capital gains tax exclusion if: The home was your primary residence. You meet the ownership and use tests. You haven't used the exclusion on another home in the last two years.

Watch Out For Capital Gains when Selling Your House

18 related questions found

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.

What is the 3 3 3 rule in real estate?

Three months of savings, three months of mortgage reserves, and three property comparisons give you confidence and flexibility. When you follow the 3-3-3 rule, you're not just buying land, you're building a plan that could protect your investment, your lifestyle, and your financial health.

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

You'll need to add half of your profit to your income for the year. Because your profit was $100,000, you'll report $50,000 as a taxable capital gain. Your personal tax rate is then applied to the total amount of income you reported to determine how much tax you owe.

Who qualifies for 0% capital gains?

A capital gains rate of 0% applies if your taxable income is less than or equal to: $48,350 for single and married filing separately; $96,700 for married filing jointly and qualifying surviving spouse; and. $64,750 for head of household.

How to get exemption from capital gains tax?

Section 54F of the Income Tax Act provides an exemption from long-term capital gains tax when the gains arise from the sale of a long-term capital asset (Long term asset can be defined like asset with holding period of 24 months or more except for listed securities where it is 12 months or more) other than a ...

What is the one-time capital gains exemption?

In simple terms, this capital gains tax exclusion enables homeowners who meet specific requirements to exclude up to $250,000 (or up to $500,000 for married couples filing jointly) of capital gains from the sale of their primary residence.

Is there a loophole around capital gains tax?

Capital Gains Tax 6 Year Rule Explained

To qualify, the property must have been your home before you left. If you sell within the six year exemption period, you can generally claim a full main residence exemption from CGT, provided you have not nominated another property as your main residence during that time.

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.

Are there any loopholes for capital gains tax?

Second, capital gains taxes on accrued capital gains are forgiven if the asset holder dies—the so-called “Angel of Death” loophole. The basis of an asset left to an heir is “stepped up” to the asset's current value.

How to pay zero tax on capital gains?

Manage your tax bracket

At the lowest income levels, the capital gains tax rate is 0%, which means no federal income taxes on your gains (state income taxes may still apply). For a married couple filing jointly, the maximum taxable income to qualify for the 0% rate is $96,700 in 2025.

Can I deduct home improvements to avoid capital gains?

Capital improvements: Improvements that add value to your home or prolong its useful life can reduce the amount of capital gains tax you owe when you sell your home, but won't be immediately deductible.

How much capital gains tax will I pay on $200,000?

Your capital gain (profit) is $200,000. Your taxable capital gain with the 50% discount applied is $100,000. Your estimated capital gains tax obligation is $37,175.

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?

At present, the long-term capital gain exemption limit is ₹1.25 lakh. Any capital gain exceeding ₹1.25 lakh is liable for a tax liability. Previously, the capital gain exemption limit was fixed at ₹1 lakh and a tax rate of 10%. However, the current tax rate is 12.5% for capital gains exceeding ₹1.25 lakh.

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.

How long to live in a house before selling?

The five-year rule

This has to do with the amount of equity the average homeowner has built in their home after five years of possession, and it also takes into account the costs associated with selling a home (and, if applicable, with purchasing a new one).

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.

What is Dave Ramsey's mortgage rule?

For years, Dave Ramsey has pushed a hardline stance when it comes to mortgages: buy with cash if you can, but if you need a loan, never take one longer than 15 years. It's an appealing idea. Pay off your house fast.

What is Warren Buffett's #1 rule?

Key Takeaways

Warren Buffett's “one rule” is simple but powerful: never confuse a stock's price with its value. In downturns like 1966 and 2008, that principle helped Buffett beat the market and even make billions while others lost fortunes.

How much income do you need to make to afford a $400,000 house?

To afford a $400,000 home, assuming a 20% down payment and a 6.5% interest rate on a 30-year mortgage, you would need a gross monthly income of about $7,786.55. This assumes you have $1,000 in monthly debt.