How do I avoid capital gains if I sell before 2 years?

Asked by: Lavina Collier  |  Last update: April 19, 2026
Score: 4.4/5 (67 votes)

One way to accomplish this is to convert a second home or rental property to a principal residence. A homeowner can make their second home into their principal residence for two years before selling and take advantage of the IRS capital gains tax exclusion.

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

If you've owned and occupied your property for at least 2 of the last 5 years, you can avoid paying capital gains taxes on the first $250,000 for single-filers and $500,000 for married people filing jointly. Visit the IRS website to review additional rules that may help you qualify for the capital gains tax exemption.

Do you get penalized for selling a house before 2 years?

Unless there is a prepayment penalty on your mortgage (very rare) there is no penalty involved in reselling a property as soon as you own it.

What is a simple trick for avoiding capital gains tax?

An easy and impactful way to 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 are the exceptions to the 2 year home sale exclusion?

Good excuses include: a change in your place of employment. health problems that require you to move, or. circumstances you didn't foresee when you bought the home that force you to sell it.

No Capital Gains Tax on your home sale even if you owned it less than 2 years.

15 related questions found

How to avoid paying capital gains tax on sale of rental property?

Use a 1031 Exchange to Defer Capital Gains

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 do I avoid capital gains on sale of primary residence?

Sale of your principal residence. We conform to the IRS rules and allow you to exclude, up to a certain amount, the gain you make on the sale of your home. You may take an exclusion if you owned and used the home for at least 2 out of 5 years. In addition, you may only have one home at a time.

What is the capital gains loophole in real estate?

This tax loophole allows property owners to defer capital gains on their sale as long as the proceeds are used to purchase another property within a set time frame.

How do I legally not pay capital gains tax?

A few options to legally avoid paying capital gains tax on investment property include buying your property with a retirement account, converting the property from an investment property to a primary residence, utilizing tax harvesting, and using Section 1031 of the IRS code for deferring taxes.

At what age can you sell your home and not pay capital gains?

The seller, or at least one title holder, had to be 55 or older on the day the home was sold to qualify. Following the passage of the Taxpayer Relief Act of 1997, the exemption was replaced. As of 1997, there are new per-sale exclusion amounts for all homeowners regardless of age.

What if I sell my home in less than 2 years?

What Happens if You Sell Your Home Before Two Years Are Up? You may have a harder time turning a profit on your home sale if it's been less than two years since you bought your house. If you do make a profit, you may have to pay a higher short-term capital gains tax rate, or go without a capital gains exclusion.

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

Thankfully, you can defer capital gains tax should you purchase another rental property within 180 days of the original investment property sale. There are also a variety of other options to lower your tax liabilities or avoid paying capital gains tax on your rental properties altogether.

How do I calculate capital gains on sale of property?

Determine the cost basis of your assets, which is the original value of the asset, plus any improvements and minus any depreciation. Subtract the cost basis from the selling price. The resulting number is your capital gain (or loss).

What happens if I sell my house before 2 years?

Selling a house before two years of ownership can have some financial implications. You likely won't recoup the money you invested in the house, and you may have to pay capital gains tax.

What is the exemption of capital gains?

Long-term capital gains of up to ₹1 lakh are exempted from tax. However, please note that as per the latest Union Budget, this limit of ₹1 lakh has been increased to ₹1.25 lakh, which will be effective from FY 24-25.

How much do you pay the IRS when you sell a house?

If you sell a house or property within one year or less of owning it, the short-term capital gains is taxed as ordinary income, which could be as high as 37 percent. Long-term capital gains for properties you owned for over a year are taxed at 0 percent, 15 percent or 20 percent depending on your income tax bracket.

How to get 0% tax on capital gains?

A capital gains rate of 0% applies if your taxable income is less than or equal to:
  1. $47,025 for single and married filing separately;
  2. $94,050 for married filing jointly and qualifying surviving spouse; and.
  3. $63,000 for head of household.

Can I sell my house and buy another without paying capital gains?

You can avoid capital gains tax when you sell your primary residence by buying another house and using the 121 home sale exclusion. In addition, the 1031 like-kind exchange allows investors to defer taxes when they reinvest the proceeds from the sale of an investment property into another investment property.

What is the wash sale rule?

Under the wash sale rule, your loss is disallowed for tax purposes if you sell stock or other securities at a loss and then buy substantially identical stock or securities within 30 days before or 30 days after the sale.

What is the 2 out of 5 year rule?

To qualify for the principal residence exclusion, you must have owned and lived in the property as your primary residence for two out of the five years immediately preceding the sale. Some exceptions apply for those who become disabled, die, or must relocate for reasons of health or work, among other situations.

Do you have to pay capital gains after age 70 if you?

Current tax law does not allow you to take a capital gains tax break based on your age. In the past, the IRS granted people over the age of 55 a tax exemption for home sales, though this exclusion was eliminated in 1997 in favor of the expanded exemption for all homeowners.

How do I defer capital gains without a 1031 exchange?

Utilizing a Deferred Sales Trust, investors can defer capital gains taxes over time. Deferred Sales Trusts provide an alternative to 1031 exchanges for deferring capital gains taxes on appreciated assets.

What is the one-time capital gains exemption?

If you have a capital gain from the sale of your main home, you may qualify to exclude up to $250,000 of that gain from your income, or up to $500,000 of that gain if you file a joint return with your spouse. Publication 523, Selling Your Home provides rules and worksheets.

Is there a way around capital gains tax on a home sale?

Yes. Home sales can be tax-free as long as the condition of the sale meets certain criteria: 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 do not have to be consecutive to qualify.

Are closing costs deducted from capital gains?

By properly deducting eligible closing costs and major improvements, you reduce your capital gain, potentially lowering your tax liability significantly.