The main ways to reduce capital gains tax on a rental property sale
You cannot avoid capital gains tax entirely when you sell rental property at a profit, but you can reduce what you owe through cost basis adjustments, depreciation recapture planning, timing strategies, and 1031 exchanges. The tax you pay depends on how long you owned the property, what you paid for it, what improvements you made, and whether you use specific tax rules available to property owners.
The IRS taxes the profit you make — the sale price minus what you paid for the property, plus the cost of major improvements. If you owned the property more than one year, you pay long-term capital gains tax, which is lower than ordinary income tax. If you owned it less than one year, you pay short-term rates, which match your regular income tax bracket.
The strategies that actually work involve documenting what you spent on the property, claiming depreciation deductions while you own it (which reduces your basis and lowers the profit), timing the sale to your tax situation, or rolling the proceeds into another property through a 1031 exchange. Each has different rules and different consequences.
Key Takeaways
- Your cost basis — what you paid for the property plus the cost of improvements — directly reduces the profit you owe tax on, so keeping records of all capital improvements is the first step.
- Depreciation deductions you claim each year lower your basis, which means you owe tax on more of the sale price, but the tax savings during ownership often outweigh this cost.
- A 1031 exchange lets you defer capital gains tax by reinvesting the sale proceeds into another rental property of equal or greater value within strict timelines.
- Long-term capital gains rates (for property owned over one year) are significantly lower than short-term rates, so holding the property longer reduces your tax bill.
- Your filing status, total income, and state taxes all affect your final capital gains tax, so the amount you owe varies by your personal situation.
How cost basis and improvements reduce your taxable profit
Your cost basis is what you paid for the property plus the cost of any capital improvements you made. When you sell, the IRS taxes only the difference between the sale price and your basis — not the entire sale price. This is why documenting what you spent is critical.
Capital improvements are permanent upgrades that add value to the property: a new roof, a new HVAC system, a room addition, new plumbing or electrical systems, or a new foundation. Repairs and maintenance do not count — replacing a broken window or repainting walls are deductible as expenses in the year you do them, but they do not increase your basis. The line between repair and improvement is often unclear, which is why keeping receipts and contractor descriptions matters.
If you bought the property for $300,000 and spent $50,000 on a new roof and kitchen renovation, your basis is $350,000. If you sell for $500,000, your profit is $150,000, not $200,000. That $50,000 in improvements saved you tax on $50,000 of gain. Keep all receipts, contractor invoices, and permits for any work you do.
Depreciation deductions and recapture tax
While you own a rental property, you can deduct depreciation — a portion of the building's cost each year — as a business expense. This lowers your taxable rental income and saves you money on your annual tax return. However, when you sell, the IRS recaptures that depreciation and taxes it at 25 percent, which is higher than long-term capital gains rates.
The math often still favors claiming depreciation. If you own the property for ten years and claim $10,000 in depreciation annually, you save roughly $2,000 to $3,700 per year in income tax (depending on your bracket), totaling $20,000 to $37,000 over the decade. When you sell, you owe 25 percent recapture tax on that $100,000 in depreciation — $25,000. You still come out ahead by $5,000 to $12,000 because you had the tax savings earlier.
If you did not claim depreciation, your basis would be higher, and you would owe less capital gains tax on the sale. But you would have paid more income tax each year you owned it. The IRS requires you to recapture depreciation even if you did not claim it, so there is no advantage to skipping the deduction.
1031 exchanges: deferring tax by reinvesting in another property
A 1031 exchange (named after the tax code section) lets you sell a rental property and reinvest the proceeds in another rental property without paying capital gains tax on the sale. The tax is deferred, not eliminated — you will owe it when you eventually sell the second property, unless you do another 1031 exchange at that time.
The rules are strict. You must identify a replacement property within 45 days of closing the sale and complete the purchase within 180 days. The replacement property must be of equal or greater value, and you must reinvest all the proceeds (or at least the net amount after closing costs and debt payoff). You cannot take any cash out without triggering tax on that portion.
You must use a may have access to intermediary — a third party who holds the sale proceeds and transfers them to the seller of the replacement property. You cannot touch the money yourself, or the exchange fails and you owe the tax. may have access to intermediaries charge $500 to $1,500 for this service. If you sell a property for $500,000 and buy a replacement for $550,000, you defer all capital gains tax and build equity in a larger property.
1031 exchanges are most useful if you want to move into a different property or a different market but do not want to pay tax on the gain. They are complex, and mistakes are costly, so working with a tax professional or real estate attorney is standard practice.
Holding period and long-term versus short-term capital gains rates
How long you own the property directly affects your tax rate. If you sell within one year of purchase, you pay short-term capital gains tax at your ordinary income tax rate — potentially 10, 12, 22, 24, 32, 35, or 37 percent depending on your income bracket. If you own it longer than one year, you pay long-term capital gains tax at 0, 15, or 20 percent.
For most people, long-term rates are roughly half the short-term rate. A $100,000 gain taxed at 24 percent (short-term) costs $24,000. The same gain taxed at 15 percent (long-term) costs $15,000 — a $9,000 difference. Holding the property an extra few months to cross the one-year threshold can save thousands.
This strategy only works if you are not forced to sell. If the property is not performing, or you need the cash, the tax savings do not justify holding it. But if you have flexibility on timing, waiting until you hit the one-year mark is a straightforward way to reduce your tax bill.
Net investment income tax and state capital gains taxes
If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you may owe an additional 3.8 percent net investment income tax on top of your capital gains tax. This is a federal tax that applies to investment income, including capital gains from property sales. It is not a capital gains tax itself, but it stacks on top of it.
Most states also tax capital gains. Some states tax them as ordinary income; others have separate capital gains tax rates. California taxes long-term capital gains as ordinary income, so a 15 percent federal rate becomes 15 percent federal plus up to 13.3 percent state — a combined 28.3 percent. Other states like Florida, Texas, and Wyoming have no state income tax at all. If you are considering relocating, the state tax difference can be substantial.
Check your state's rules before you sell. If you live in a high-tax state and are planning to move, timing the sale after you establish residency in a lower-tax state may reduce your bill. However, the IRS and state tax authorities scrutinize residency claims, so this only works if the move is genuine and documented.
Installment sales and spreading the gain over multiple years
If you sell the property and the buyer pays you over time (an installment sale), you can report the gain over the years you receive payments rather than all in the year of sale. This can keep you in a lower tax bracket each year and reduce the net investment income tax if you stay below the threshold.
For example, if you sell for $500,000 with a $100,000 gain and the buyer pays $100,000 per year for five years, you report $20,000 of gain each year instead of $100,000 in year one. If the $100,000 gain would push you over the net investment income tax threshold, spreading it over five years might keep you under it for all five years, saving you the 3.8 percent tax.
Installment sales have downsides: you carry the credit risk (if the buyer stops paying, you have limited recourse), and you do not receive all the cash upfront. They work best when the buyer is creditworthy and you do not need the full proceeds when ready.
Frequently Asked Questions
Can I avoid capital gains tax by keeping the property instead of selling?
Yes, but only until you die. If you hold the property until death, your heirs inherit it at a "stepped-up basis" — the property's value on the date of death becomes their new basis, and they owe no capital gains tax on the appreciation that occurred during your lifetime. This is a major tax benefit, but it requires you to not sell the property.
What if I lived in the house as my primary residence before renting it out?
You may be able to exclude up to $250,000 of gain ($500,000 if married filing jointly) if you lived in the house as your primary residence for at least two of the five years before the sale. However, the exclusion applies only to the portion of the gain from the years you lived there — not the years you rented it out. The depreciation you claimed while renting it out is still subject to recapture tax.
Does a loss on a rental property sale reduce my taxes?
Capital losses on rental property sales can offset capital gains from other investments, reducing your overall capital gains tax. If you have no capital gains to offset, you can deduct up to $3,000 of net capital loss against ordinary income in a single year, with any remaining loss carried forward to future years. This makes selling a losing property valuable for tax purposes.
What happens if I sell the property to a family member?
You still owe capital gains tax on the profit, even if you sell to a family member. The IRS does not allow you to avoid tax by selling to relatives. The sale price must reflect fair market value, or the IRS may challenge it and assess additional tax plus penalties.
Can I deduct the cost of selling the property from my capital gains?
Yes. Real estate commissions, title insurance, attorney fees, and other costs directly tied to the sale reduce your net proceeds and lower your taxable gain. These are not separate deductions — they reduce the sale price used to calculate profit. Keep all closing statements and invoices to document these costs.