What actually reduces capital gains tax on real estate sales

You cannot avoid capital gains tax entirely on a profitable real estate sale, but you can reduce what you owe through specific strategies that the IRS recognizes. The most common are: using the primary residence exclusion (up to $250,000 if single, $500,000 if married filing jointly), holding property longer than one year to may have access to for long-term rates instead of short-term rates, timing the sale to fall in a lower-income year, and using a 1031 exchange to defer the tax by reinvesting the proceeds into another property.

Each strategy has strict requirements and deadlines. The primary residence exclusion requires you to have lived in the home for at least two of the last five years before sale. A 1031 exchange requires you to identify a replacement property within 45 days and close on it within 180 days. Timing strategies depend on your actual income that year, not just the sale proceeds. None of these are automatic — you have to structure the transaction correctly or you lose the benefit.

Key Takeaways

  • The primary residence exclusion lets you exclude up to $250,000 (or $500,000 if married) in gains from tax if you lived in the home for at least two of the last five years before selling.
  • Long-term capital gains rates (15% or 20% federal) apply only if you held the property for more than one year; short-term rates are taxed as ordinary income, which can be much higher.
  • A 1031 exchange defers capital gains tax by letting you reinvest sale proceeds into another property, but you must identify the new property within 45 days and close within 180 days.
  • Installment sales let you spread the gain across multiple years, potentially keeping you in a lower tax bracket each year.
  • Charitable donations of appreciated property can eliminate the capital gains tax on that property while generating a tax deduction.

The primary residence exclusion and who qualifies

If you are selling a home you lived in, you may be able to exclude a portion of your gain from federal income tax. The exclusion is $250,000 for single filers and $500,000 for married couples filing jointly. This is not a deduction — it means that portion of your gain is simply not taxed at all.

To use this exclusion, you must have owned the home and lived in it as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive. If you owned it for ten years but lived there for only one year, you do not may have access to. If you owned it for three years and lived there for two of those years, you do may have access to.

You can use this exclusion only once every two years. If you sold a home and used the exclusion in 2022, you cannot use it again until 2024. If you are married and filing jointly, both spouses must meet the ownership and use test, though they do not both have to be on the deed.

If your gain exceeds the exclusion amount, you owe tax on the remainder. If you bought a home for $200,000, lived in it for three years, and sold it for $550,000, your gain is $350,000. As a single filer, you exclude $250,000 and owe tax on $100,000.

Long-term versus short-term capital gains rates

How long you owned the property before selling determines which tax rate applies to your gain. If you held it for more than one year, you pay the long-term capital gains rate. If you held it for one year or less, you pay the short-term capital gains rate.

Long-term rates are lower. For 2024, the federal long-term rates are 0%, 15%, or 20%, depending on your total income that year. Short-term gains are taxed as ordinary income, which means they use the same brackets as your salary or wages — up to 37% at the highest bracket. State income tax also applies in most states, on top of federal tax.

The difference is substantial. If you are in the 24% federal tax bracket and you hold a property for exactly one year and one day before selling, you might pay 15% federal tax on the gain. If you sell one day earlier, you pay 24%. For a $100,000 gain, that is $900 in additional federal tax alone.

The holding period is measured from the date you acquired the property to the date of sale. If you inherited a property, the holding period usually starts from the date of death, not the date you inherited it — this is called a "stepped-up basis" and is a separate tax benefit.

Using a 1031 exchange to defer capital gains tax

A 1031 exchange (named after Section 1031 of the Internal Revenue Code) lets you sell a property and reinvest the proceeds into another property without paying capital gains tax on the sale. The tax is deferred, not eliminated — you will owe it when you eventually sell the replacement property, unless you do another 1031 exchange at that time.

The rules are strict and time-sensitive. After you close on the sale of your current property, you have 45 days to identify a replacement property in writing. You have 180 days total to close on the replacement property. If you miss either deadline, the entire transaction is taxable and you owe the capital gains tax immediately.

The replacement property must be "like-kind," which for real estate means any real property held for investment or business use. You can exchange a rental house for an apartment building, or commercial land for a warehouse. You cannot exchange real estate for personal property (like a car) or for a primary residence you plan to live in.

You cannot touch the sale proceeds yourself. A may have access to intermediary — a neutral third party — must hold the money between the sale and the purchase. If you receive the funds directly, even briefly, the exchange fails and you owe tax. Most real estate attorneys and title companies can recommend a may have access to intermediary.

Installment sales and spreading gains across years

An installment sale is when you sell the property but the buyer pays you over time in installments rather than all at closing. This spreads your capital gain across multiple years, potentially keeping you in a lower tax bracket each year.

For example, if you sell a property for $500,000 with a $200,000 gain and the buyer pays you $100,000 per year for five years, you report $40,000 of gain each year instead of $200,000 in year one. If $200,000 in gain would push you into the 20% long-term capital gains bracket but $40,000 keeps you in the 15% bracket, you save money on federal tax.

Installment sales require a promissory note and mortgage or deed of trust securing the buyer's obligation to pay. You are essentially becoming the lender. This means you bear the risk if the buyer defaults, and you must report interest income on the payments as well as the capital gain.

Installment sales are less common because most buyers finance through banks, but they can be negotiated. You will need a real estate attorney to draft the note and security instrument correctly.

Charitable donations of appreciated property

If you donate appreciated real estate to a may have access to charity, you can deduct the fair market value of the property and you do not pay capital gains tax on the appreciation. This works only if the charity is a may have access to organization (most nonprofits and public charities may have access to; donor-advised funds and private foundations have different rules).

The deduction is limited to a percentage of your adjusted gross income — usually 30% for real estate donations. If your AGI is $100,000, you can deduct up to $30,000 in the year of donation, and carry forward unused deductions for up to five additional years.

You must obtain a may have access to appraisal of the property and file Form 8283 with your tax return. The charity must also sign the form. This process takes time and costs money for the appraisal, so it makes sense only for properties with significant appreciation.

Timing the sale to manage your tax bracket

Capital gains tax is calculated based on your total income in the year of sale. If you can arrange the sale to occur in a year when your other income is lower, you may pay a lower tax rate on the gain.

For example, if you are retiring and expect your income to drop significantly in the year you retire, selling the property that year might result in lower tax than selling it while you are still working. Similarly, if you have a year with unusually low income due to a job loss or sabbatical, that might be the year to sell.

This strategy requires planning and coordination with your accountant. You also need to consider state income tax, which varies by state and may not follow the same brackets as federal tax. Some states tax capital gains differently or have special rates for long-term gains.

This approach does not reduce your total lifetime tax — it just shifts when you pay it. But if you can keep yourself in a lower bracket in the sale year, the savings are real.

Frequently Asked Questions

Can I use the primary residence exclusion if I rent out part of my home?

You can still use the exclusion if you rent out part of the home, but only on the portion you lived in. If you rented out 30% of the home, you exclude 70% of your gain up to the limit ($250,000 or $500,000). The 30% that was rental property is taxed as a capital gain with no exclusion.

What if I inherited a property and then sold it shortly after?

Inherited property receives a "stepped-up basis," meaning your cost basis is the fair market value on the date of death, not what the original owner paid. If you sell shortly after inheriting, you may have little or no gain. The holding period for long-term capital gains treatment usually starts from the date of death, so inherited property often qualifies for long-term rates immediately.

Do I have to report the sale to the IRS even if I use the primary residence exclusion?

Yes. You must report the sale on Form 8949 and Schedule D, even if your gain is fully excluded. The IRS needs to see that you meet the requirements for the exclusion. Failure to report can result in penalties and interest.

Can I do a 1031 exchange if I am selling a rental property but buying a primary residence?

No. The replacement property in a 1031 exchange must be held for investment or business use. A primary residence does not may have access to. If you want to convert a rental property into your home, you cannot use a 1031 exchange.

What happens to capital gains tax if I sell the property at a loss?

If you sell at a loss, you do not owe capital gains tax. You cannot deduct a loss on the sale of a primary residence. On investment property, you can use the loss to offset other capital gains, and up to $3,000 of losses can offset ordinary income in a single year, with unused losses carried forward indefinitely.