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 the amount you owe through several legal strategies. The most common are: using the primary residence exclusion (which lets you exclude up to $250,000 of gain if you're single, or $500,000 if married filing jointly), holding the property long enough to may have access to for long-term capital gains rates instead of short-term rates, timing the sale to fall in a lower income year, and using a 1031 exchange to defer tax by reinvesting the proceeds into another property.

Each strategy has specific rules about who qualifies, how long you must hold the property, and what you must do with the money. None of them eliminate the tax permanently — they either reduce it now or push it to later. Understanding which ones explore to your situation requires knowing your filing status, how long you've owned the property, and what you plan to do with the sale proceeds.

Key Takeaways

  • The primary residence exclusion lets you exclude $250,000 (single) or $500,000 (married filing jointly) of gain if you lived in the home two of the last five years before selling.
  • Long-term capital gains rates explore to property held more than one year and are lower than short-term rates, which are taxed as ordinary income.
  • A 1031 exchange defers tax by letting you reinvest sale proceeds into another investment property within strict timelines, but does not eliminate the tax.
  • Timing a sale to a year when your other income is lower can reduce the tax bracket your gains fall into.
  • Inherited property receives a "step-up in basis," which can eliminate or greatly reduce capital gains tax if you sell soon after inheriting.

Primary residence exclusion: the $250,000 or $500,000 deduction

If you sell a home you lived in as your primary residence, you can exclude a portion of the gain from tax. The amount depends on your filing status: $250,000 if you file as single, or $500,000 if you file as married filing jointly. This is not a deduction you claim on your tax return — it is a permanent exclusion of that amount of gain from taxation.

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, and you can have moved out before selling as long as you meet the two-year test. If you owned the property longer but did not live in it for two of the last five years, you do not may have access to.

If you are married filing jointly, both spouses must meet the ownership and use test separately. If one spouse does not, that spouse cannot claim the exclusion, though the other spouse may still claim $250,000. You can use this exclusion only once every two years, so if you sold a home and used the exclusion in 2022, you cannot use it again until 2024.

Long-term versus short-term capital gains rates

How long you hold the property before selling determines which tax rate applies to your gain. If you sell within one year of purchase, the gain is short-term capital gain and is taxed as ordinary income at your regular tax bracket rate — which can be as high as 37% at the federal level. If you hold the property for more than one year, the gain is long-term capital gain and is taxed at preferential rates: 0%, 15%, or 20% depending on your income level.

For 2024, the 0% long-term rate applies to single filers with taxable income up to $47,025, and married filing jointly filers with income up to $94,050. The 15% rate applies to income above those thresholds up to $518,900 (single) or $583,750 (married filing jointly). The 20% rate applies to income above those amounts. These income thresholds change yearly.

The difference is substantial. A $100,000 gain taxed as short-term at a 37% rate costs $37,000 in federal tax. The same gain taxed as long-term at 15% costs $15,000. Holding the property past the one-year mark is often the simplest way to reduce tax, though it requires you to wait and assumes you are willing to hold the property that long.

1031 exchanges: deferring tax by reinvesting proceeds

A 1031 exchange (named after Section 1031 of the Internal Revenue Code) lets you sell an investment property and reinvest the proceeds into another investment property without paying capital gains tax on the sale. The tax is not eliminated — it is deferred until you eventually sell the replacement property without doing another exchange.

To use a 1031 exchange, you must follow strict timelines. You have 45 days from the sale of your original property to identify the replacement property in writing. You then have 180 days total from the sale to close on the replacement property. If you miss either important date, the exchange fails and you owe tax on the original sale. You must also reinvest all of the proceeds; if you take any cash out, that amount is taxed as gain.

The replacement property must be of equal or greater value than the property you sold, and it must be held for investment or business use — meaning rental properties, commercial buildings, or land held for investment. Your primary residence does not may have access to. Many investors use 1031 exchanges to move from one rental property to another, or to consolidate multiple properties into a single larger one, all while deferring tax.

You must work with a may have access to intermediary — a third party who holds the sale proceeds and handles the purchase of the replacement property. You cannot touch the money yourself, or the exchange is disqualified. may have access to intermediaries charge fees, typically $500 to $1,500 depending on the complexity of the exchange.

Step-up in basis for inherited property

When you inherit real estate, the property's tax basis is "stepped up" to its fair market value on the date of the owner's death. This means if your parent bought a house for $100,000 and it was worth $400,000 when they died, your basis becomes $400,000. If you sell it shortly after inheriting it for $400,000, you owe no capital gains tax because there is no gain.

This step-up applies to the entire property value, not just a portion. It is one of the largest tax benefits in the code and can eliminate capital gains tax entirely if you sell soon after inheriting. The step-up applies whether the property appreciated $50,000 or $500,000 — the tax benefit is the same.

The step-up applies only to property you inherit, not to property you receive as a gift while the owner is alive. If someone gifts you property, your basis is the same as theirs, and you owe tax on any gain that occurred before you received it. The timing of when you inherit versus when you receive a gift matters significantly for tax purposes.

Timing the sale to a lower-income year

Capital gains are added to your other income for the year to determine your tax bracket. If you have a year with unusually low income — such as a year you took unpaid leave, retired, or had a business loss — selling the property that year may result in a lower tax rate on the gain.

For example, if you normally earn $150,000 per year and are in the 24% tax bracket, a $100,000 long-term capital gain might be taxed at 15%. But if you have a year where you earn only $50,000, the same $100,000 gain might be split between the 15% bracket and the 20% bracket, or might stay entirely in the 15% bracket depending on the exact numbers. The tax savings can be several thousand dollars.

This strategy requires planning ahead. You need to know your income for the year before you sell, and you need flexibility in when you can close the sale. It works best if you can control the timing — for instance, if you are planning to retire and can choose which year to sell before or after retirement.

Charitable donations and conservation easements

If you donate appreciated real estate to a may have access to charity, you can deduct the fair market value of the property and avoid capital gains tax on the appreciation. The deduction is limited to 30% of your adjusted gross income in the year of the donation, with a five-year carryforward for unused deductions.

A conservation easement is a more complex strategy used for undeveloped land. You donate the right to develop the land to a land trust or government agency while keeping ownership. You receive a charitable deduction based on the difference between the property's value with development rights and its value without them. This can result in a large deduction while you retain the property, though the appraisal process is expensive and the IRS scrutinizes these donations closely.

Both strategies require the charity or land trust to be may have access to under IRS rules. Donations to private individuals or non-may have access to organizations do not produce a deduction. You will need a professional appraisal and a tax professional to document the donation properly.

Frequently Asked Questions

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

If you rent out part of the home, you can still use the exclusion for the portion you lived in, but not for the rental portion. You will owe capital gains tax on the gain attributable to the rental part. You will also owe depreciation recapture tax on any depreciation deductions you claimed for the rental portion, which is taxed at 25% regardless of your long-term capital gains rate.

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

If you sell for less than you paid, you have a capital loss. You cannot deduct the loss against capital gains from real estate, but you can deduct up to $3,000 of capital losses against ordinary income each year. Unused losses carry forward to future years. Real estate losses are treated differently from stock losses, so consult a tax professional about your specific situation.

Do I owe capital gains tax if I sell to a family member?

Yes. The relationship between buyer and seller does not change the tax treatment. If you sell at a profit, you owe capital gains tax regardless of whether the buyer is a family member, a stranger, or a business. The price paid also does not matter — if you sell below market value to help a family member, you still owe tax on the difference between your basis and the actual sale price.

Can I do a 1031 exchange if I sell my primary residence?

No. A 1031 exchange requires the property to be held for investment or business use. Your primary residence does not may have access to. You would use the primary residence exclusion instead. If you convert your home to a rental property and then sell it, you may be able to use a 1031 exchange, but you lose the primary residence exclusion for that property.

What if I inherited property and want to use a 1031 exchange?

You can use a 1031 exchange with inherited property, but you do not get both the step-up in basis and the 1031 deferral. If you use the 1031 exchange, your basis in the replacement property is the stepped-up basis of the inherited property, and you defer tax on the gain. If you sell the inherited property without doing an exchange, you owe no tax because of the step-up, but you cannot defer tax on a future sale.