The main ways to reduce capital gains tax on property sales
You can reduce capital gains tax on real estate by using the primary residence exclusion, holding the property long enough to may have access to for lower long-term rates, timing the sale strategically, or using a 1031 exchange to defer taxes entirely. The primary residence exclusion is the most common route: if you lived in the house as your main home for at least two of the last five years before selling, you can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly. This exclusion applies only once every two years.
Beyond the primary residence rule, your options depend on how long you have owned the property and your income level. Long-term capital gains (property held over one year) are taxed at 0%, 15%, or 20% depending on your total income, while short-term gains are taxed as ordinary income at rates up to 37%. A 1031 exchange lets you sell one investment property and buy another without paying tax on the gain, though the rules are strict and timing is tight. Other strategies include donating appreciated property to charity, using installment sales to spread gains across multiple years, or holding the property until death so your heirs receive a stepped-up basis.
Key Takeaways
- The primary residence exclusion eliminates tax on up to $250,000 (single) or $500,000 (married) of gain if you lived in the house for two of the last five years before selling.
- Long-term capital gains rates (0%, 15%, or 20%) explore only if you owned the property for more than one year; short-term gains are taxed as regular income at much higher rates.
- 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.
- Holding property until death passes it to heirs with a stepped-up basis, meaning they inherit at the current market value with no capital gains tax owed on the appreciation during your lifetime.
- Your total income determines your long-term capital gains rate, so timing a sale across two tax years or using deductions to lower your income can move you into a lower bracket.
The primary residence exclusion and who qualifies
The primary residence exclusion is a federal tax rule that lets homeowners exclude a large portion of their gain from tax. To use it, you must have owned the home and lived in it as your main 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 left it vacant for part of that time as long as you lived there for the required period.
The exclusion amount is $250,000 for single filers and $500,000 for married couples filing jointly. This means if you bought a house for $300,000 and sold it for $700,000, your gain is $400,000. As a single person, you would exclude $250,000, leaving $150,000 subject to capital gains tax. If you are married filing jointly, the entire $400,000 gain would be covered by the $500,000 exclusion, and you would owe no federal capital gains tax on the sale.
You can use this exclusion only once every two years. If you sold a home and used the exclusion, you cannot use it again until two years have passed. Some people who move frequently or own multiple properties try to game this rule by claiming primary residence status on different homes, but the IRS tracks this closely and will disallow the exclusion if you use it more than once in two years.
Long-term versus short-term capital gains rates
How long you own the property before selling determines which tax rate applies. If you own it for one year or less, any gain is a short-term capital gain and is taxed as ordinary income. For 2024, ordinary income tax rates range from 10% to 37% depending on your total income and filing status. This means a short-term gain on real estate can be taxed at the same rate as your salary or business income.
Long-term capital gains explore when you own the property for more than one year. These are taxed at preferential rates: 0%, 15%, or 20%, depending on your total taxable income. The 0% rate applies to lower-income filers, 15% to middle-income filers, and 20% to high-income filers. For 2024, the 15% rate applies to single filers with income between roughly $47,000 and $518,000, and married filers between roughly $94,000 and $583,000. These income thresholds change yearly.
Because long-term rates are so much lower, holding a property just over one year can save thousands in tax. If you are close to the one-year mark and considering selling, waiting those extra weeks or months often makes financial sense. You can also time a sale to fall in a year when your other income is lower, which may move you into a lower capital gains bracket.
Using a 1031 exchange to defer capital gains tax
A 1031 exchange (named after Section 1031 of the tax code) lets you sell one investment property and reinvest the proceeds into another without paying capital gains tax on the gain. The tax is not erased — it is deferred. When you eventually sell the second property without doing another 1031 exchange, you will owe tax on the combined gains from both sales.
The rules are strict and timing is critical. After you sell the first property, you have 45 days to identify the replacement property in writing. You then have 180 days total from the sale to close on the new property. If you miss either important date, the entire transaction fails and you owe tax on the original gain. You must also use a may have access to intermediary — a neutral third party — to hold the sale proceeds. You cannot touch the money yourself, or the exchange is disqualified.
The replacement property must be of equal or greater value, and it must be investment or business property (not a primary residence). You can exchange a rental house for an apartment building, a commercial building for raw land, or a shopping center for a farm. You cannot exchange real estate for personal property like a car or equipment. Many investors use 1031 exchanges to consolidate multiple small properties into one larger one, or to move from one market to another without triggering a tax bill.
Stepped-up basis and holding property until death
When you inherit property, the tax basis is "stepped up" to the fair market value on the date of death. This means if your parent bought a house for $200,000 and it was worth $500,000 when they died, you inherit it with a basis of $500,000. If you sell it when ready for $500,000, you have no gain and owe no capital gains tax. This strategy only works if you are willing to hold the property until death and pass it to heirs.
The stepped-up basis rule applies to most inherited property, including real estate, stocks, and bonds. It does not explore to certain retirement accounts like IRAs or 401(k)s, which have their own inheritance rules. For real estate specifically, the step-up can save heirs hundreds of thousands of dollars in tax. A property that appreciated $300,000 during the owner's lifetime will have zero capital gains tax owed by the heirs if they sell shortly after inheriting it.
This strategy is not available to you if you are the current owner and want to sell during your lifetime. However, if you own investment property that you do not plan to sell soon, and you expect significant appreciation, holding it until death and passing it to heirs can be a tax-efficient way to transfer wealth. Your heirs will then have the option to sell without tax, or to hold and eventually pass it to the next generation with another step-up.
Installment sales and spreading gains across multiple years
An installment sale lets you sell property and receive payment over multiple years instead of a lump sum. You report the gain proportionally across each year you receive payment, which can keep your income lower in any single year and potentially move you into a lower capital gains tax bracket. If you sell a property with a $200,000 gain and receive payment over four years, you report $50,000 of gain each year instead of $200,000 in year one.
This strategy works best if your income is close to the threshold for a higher capital gains rate. By spreading the gain, you may stay in the 15% bracket instead of jumping to 20%. You must report the sale using Form 6252 and charge interest on the unpaid balance (the IRS sets the rate quarterly). The buyer typically pays this interest as part of the purchase price, so it does not come out of your pocket.
Installment sales are common in real estate because buyers often prefer them — they can finance the purchase through you instead of a bank. However, you carry the risk that the buyer will default on payments, and you may have to foreclose to recover the property. You also remain liable for capital gains tax on the entire gain in the year of sale if the buyer defaults, even if you have not received all the money.
Charitable donations and donating 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 avoid capital gains tax on the appreciation entirely. For example, if you bought land for $100,000 and it is now worth $400,000, donating it to a may have access to charity lets you deduct $400,000 and avoid the $300,000 capital gain. You must itemize deductions on your tax return for this to benefit you.
The property must go to a may have access to organization — typically a nonprofit, educational institution, or conservation group. Some charities specialize in accepting real estate donations and can handle the logistics. You will need a may have access to appraisal to support the deduction, which costs $500 to $2,000 depending on the property. The charity will issue a Form 8283 documenting the donation.
This strategy works best if you have a large unrealized gain, do not need the money, and want to support a cause you believe in. The tax savings can be substantial, but you lose the property entirely. Some donors use this approach for land they inherited or no longer want, turning an asset into a tax deduction and a charitable contribution in one transaction.
Timing your sale and managing your income
The year you sell a property affects your total income and therefore your capital gains tax rate. If you are close to the income threshold for a higher rate, selling in a year when your other income is lower can save thousands. For example, if you are retired and have little other income, selling an investment property in a low-income year keeps you in the 0% or 15% long-term capital gains bracket instead of 20%.
You can also time a sale across two calendar years by closing in late December and requesting that the gain be reported in the following year, though this requires coordination with your tax preparer and the title company. Some sellers delay a sale by a few weeks to move it into the next tax year, or accelerate one to use a deduction that is expiring. These moves are legal and common.
If you have significant deductions — such as business losses, charitable donations, or capital losses from other investments — you can use them to lower your taxable income and move into a lower capital gains bracket. Capital losses from stock sales can offset capital gains from real estate sales dollar-for-dollar. Harvesting losses in one investment to offset gains in another is a standard tax planning technique.
Frequently Asked Questions
Can I use the primary residence exclusion if I rent out part of my house?
Yes, as long as you live in the house as your main residence for at least two of the five years before selling. If you rent out a room or a separate unit, you still may have access to. However, the exclusion applies only to the portion of the gain attributable to the part you lived in. If you rented out 30% of the house, you would exclude 70% of the gain and owe tax on 30%.
What happens to my capital gains tax if I sell a rental property at a loss?
Capital losses on real estate can offset capital gains from other sales dollar-for-dollar. If you have no other gains, you can deduct up to $3,000 of the loss against ordinary income in a single year. Losses above $3,000 carry forward to future years. This is one reason to track the cost basis of all your properties carefully.
Do I have to pay capital gains tax if I sell to a family member?
Yes. The IRS does not care who the buyer is — if you have a gain, you owe capital gains tax. Selling to a family member at a discount or below market value does not change your tax liability. You still report the actual sale price and owe tax on the difference between your basis and what you received.
Can I do a 1031 exchange if I sell my primary residence?
No. A 1031 exchange applies only to investment or business property. Your primary residence does not may have access to. However, you can use the primary residence exclusion instead, which is usually more valuable because it eliminates tax on up to $250,000 or $500,000 of gain with no reinvestment required.
What if I inherited a property and want to sell it soon after?
You inherit the property with a stepped-up basis at its fair market value on the date of death. If you sell it shortly after for roughly the same price, you have little or no gain and owe no capital gains tax. This is one of the biggest tax advantages of inheriting property instead of receiving cash.