What actually reduces your capital gains tax on real estate

You cannot eliminate capital gains tax on a home sale, but you can reduce the amount you owe through three main routes: the primary residence exclusion, a 1031 exchange, or installment sales. The primary residence exclusion lets you exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly — but only if you owned and lived in the home for at least two of the five years before the sale. A 1031 exchange defers tax entirely by rolling the proceeds into another investment property within strict timelines. An installment sale spreads the gain across multiple years, which can push you into lower tax brackets. Each route has different requirements and costs, and they do not all work together.

The exclusion is the most common and requires no paperwork beyond your normal tax return. The 1031 exchange is the most powerful but demands precision — you have 45 days to identify a replacement property and 180 days to close. Installment sales work best when you are selling to a buyer you trust, because you are financing part of the purchase yourself. None of these eliminate tax; they reduce it, defer it, or spread it out.

Key Takeaways

  • The primary residence exclusion removes up to $250,000 (single) or $500,000 (married) of gain from your taxable income if you lived in the home for two of the last five years.
  • A 1031 exchange defers all capital gains tax by reinvesting the sale proceeds into another investment 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 tax years by financing part of the sale yourself, which can lower your tax bracket each year.
  • Holding a rental property longer does not reduce the tax rate, but it can increase your cost basis if you have made capital improvements or claimed depreciation recapture.

The primary residence exclusion and who qualifies

If you sell your main home, you can exclude $250,000 of gain from federal tax if you are single, or $500,000 if you are married filing jointly. To may have access to, 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 rented it out or been away for part of that time — the IRS only requires that you lived there for 24 months total in the five-year window.

You can use this exclusion only once every two years. If you sold another home and used the exclusion within the past two years, you cannot use it again until that two-year period ends. You report this on Schedule D (Form 1040) when you file your tax return; there is no separate form to file beforehand. If your gain is less than the exclusion amount, you owe no federal capital gains tax on the sale at all. If your gain exceeds the exclusion, you pay tax only on the excess.

This exclusion does not explore to investment properties, vacation homes, or rental properties — only your primary residence. It also does not shield you from state capital gains tax, which varies by state. Some states have no capital gains tax at all; others tax it like ordinary income.

How a 1031 exchange defers tax indefinitely

A 1031 exchange is a transaction structure that lets you sell one investment property and buy another without paying capital gains tax on the sale. The tax is deferred, not erased — when you eventually sell the replacement property without doing another 1031 exchange, you will owe tax on the combined gain from both sales. But you can chain 1031 exchanges together indefinitely, deferring tax for decades or until you sell for cash.

The rules are strict. You have 45 days from the closing date of your sale to identify one or more replacement properties in writing. You have 180 days from closing to actually close on the replacement property. 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 — a primary residence does not may have access to. If you receive any cash or take out a loan for less than the sale price, you will owe tax on that difference.

You must use a may have access to intermediary — a neutral third party who holds the sale proceeds and transfers them to the seller of the replacement property. You cannot touch the money yourself, even briefly. If you do, the entire transaction fails and you owe tax on the full gain. A may have access to intermediary typically charges $500 to $1,500 for the service. You can exchange into any type of investment property: apartments, commercial buildings, raw land, or even a different rental home.

Installment sales and spreading gain across years

An installment sale is when you sell the property but do not receive all the money upfront. Instead, the buyer pays you over time — typically over three to ten years — and you finance part of the purchase. You report the gain proportionally across each year you receive a payment, which can keep you in a lower tax bracket each year instead of pushing all the gain into a single year.

For example, if you sell a rental property with a $100,000 gain and the buyer pays you $20,000 per year for five years, you report $20,000 of gain each year rather than $100,000 in year one. This matters most if the full gain would push you into a higher tax bracket or trigger the net investment income tax (an additional 3.8% tax on high earners). The buyer must make a down payment of at least 20% to 30% for this to work well; if they pay too little upfront, you carry too much risk.

You must charge interest on the unpaid balance — the IRS sets a minimum rate each month, currently in the range of 5% to 9% depending on the loan term. That interest is ordinary income to you and deductible to the buyer. Installment sales work best when you are selling to someone you know or trust, because you are taking on credit risk. If the buyer defaults, you have to pursue collection or foreclose.

Cost basis improvements and depreciation recapture

Your cost basis is what you paid for the property plus the cost of major improvements. The higher your basis, the lower your gain when you sell. If you have made capital improvements — a new roof, foundation work, a major renovation — you can add those costs to your basis. Repairs and maintenance do not count; the IRS distinguishes between fixing something broken and making it better than it was.

If you have owned a rental property and claimed depreciation deductions on your tax returns, those deductions reduce your basis. When you sell, you must recapture that depreciation and pay tax on it at a 25% rate, regardless of how long you held the property or what the actual sale price was. This is separate from capital gains tax. For example, if you claimed $50,000 in depreciation over ten years, you owe 25% tax on that $50,000 ($12,500) even if the property did not appreciate at all.

A 1031 exchange defers capital gains tax but does not eliminate depreciation recapture — you still owe it when you eventually sell for cash. Keeping detailed records of all improvements and depreciation claimed is essential, because the IRS will ask for proof if you are audited.

Timing the sale and holding period strategies

The length of time you hold a property does not change the tax rate you pay on long-term capital gains — the rate is the same whether you held it one year or thirty years. However, holding it longer can increase your basis if you have made improvements, and it can reduce your gain if the property appreciates slowly. The real timing decision is whether to sell now or wait, based on whether you expect the property to appreciate or depreciate.

If you own a rental property and are considering converting it to your primary residence, you must live in it for two of the five years before the sale to use the primary residence exclusion. The exclusion applies only to the portion of the gain that accrued while it was your primary residence, not while it was a rental. If you convert a rental to a primary residence, you also stop claiming depreciation deductions, which can be a tax benefit in the year of conversion.

Selling in a year when your other income is low — such as after retirement or a job loss — can keep your capital gains in the lower tax brackets (0%, 15%, or 20% depending on your total income). This is one of the few ways to actually reduce the tax rate itself, rather than just the taxable amount.

State capital gains tax and where you live

Federal capital gains tax is only part of the picture. Some states tax capital gains as ordinary income, some tax them at a lower rate, and some do not tax them at all. If you live in California, you pay state tax on capital gains at your ordinary income tax rate, which can be as high as 13.3%. If you live in Florida, Texas, or Washington, there is no state capital gains tax. If you live in a state with capital gains tax and are considering moving, timing the sale before or after the move can make a significant difference.

A few states have recently enacted capital gains taxes: Washington (7% on gains over $250,000), Colorado (4.63%), and Minnesota (5.35% on gains over $100,000). These are relatively new, and the rules are still being clarified. If you are selling a high-value property, consult a tax professional in your state to understand the full picture.

Frequently Asked Questions

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

Yes, as long as you live in the home as your primary residence for two of the five years before the sale. However, the exclusion applies only to the portion of the gain that relates to the part you lived in. If you rented out 25% of the home, you can exclude only 75% of the gain. You must report this on Schedule D.

What happens if I do a 1031 exchange but the replacement property is worth less?

If the replacement property is worth less than the property you sold, you will owe tax on the difference (called "boot"). For example, if you sold a property for $500,000 and bought one for $450,000, you owe tax on the $50,000 difference. The replacement property must be of equal or greater value to defer all the tax.

Can I do a 1031 exchange on my primary residence?

No. A 1031 exchange applies only to investment or business property. Your primary residence does not may have access to. If you want to defer tax on a home sale, you must use the primary residence exclusion or sell it as an investment property and do a 1031 exchange into another investment property.

Do I have to pay capital gains tax if I inherit a property?

No. Inherited property receives a "step-up in basis," meaning your cost basis is the property's value on the date of death, not what the original owner paid. If you sell it shortly after inheriting it, you owe little or no capital gains tax. This applies to all inherited property, not just primary residences.

What if I sell a rental property at a loss?

You cannot deduct a loss on the sale of a rental property against your capital gains or ordinary income. Real estate losses are passive losses and can only offset passive income from other rental properties or be carried forward to future years. This is different from stocks, where you can deduct up to $3,000 of losses per year against ordinary income.