Nobody actually avoids capital gains tax on an appreciated property the way the phrase implies. What exists instead is a short list of legal mechanisms that reduce, spread out, or defer the bill, each with its own eligibility rules and tradeoffs. An owner who understands which mechanism fits their situation walks into a closing with a plan instead of a surprise line on next April's return.
Why the Gain Is Bigger Than Most Sellers Expect
Capital gain on real estate is not simply the sale price minus the purchase price. It is the sale price minus adjusted basis, and adjusted basis has usually been reduced over the years by depreciation taken on rental or business property. An owner who bought a duplex for $300,000 and depreciated it for a decade may have an adjusted basis well under $250,000, even though the property never lost value.
That gap between what an owner remembers paying and what the IRS considers their basis is where a lot of unpleasant surprises come from at closing. Pulling the actual depreciation schedule before listing a property, rather than relying on the original purchase price from memory, is the first step toward an accurate estimate.
Basis and Timing Moves Within a Single Sale
Some of the simplest reductions happen before a contract is even signed. Selling costs, capital improvements documented over the years, and closing expenses all reduce the taxable gain when they are properly tracked and added back into basis. An owner who kept receipts for a roof replacement or an addition has a real, defensible number to add, while one who did not is stuck estimating or losing the deduction entirely.
Timing the sale to land in a lower-income year, splitting a sale across two tax years through an installment note, or harvesting capital losses from other investments in the same year are all legitimate ways to reduce the tax actually owed without changing anything about the property itself.
Deferral Instead of Elimination: Where a 1031 Exchange Fits
For investment or business real estate specifically, a Section 1031 exchange is the mechanism most owners reach for once they understand it is not the same as avoiding tax outright. Selling the relinquished property and reinvesting the proceeds into another qualifying property through a qualified intermediary defers the recognized gain rather than erasing it, and the deferred tax carries forward into the replacement property's basis.
It is one option on the list, not a universal fix, and it only applies to property held for investment or business use, not a primary residence. For an owner who wants to keep capital working in real estate rather than cashing out and paying the IRS first, it is usually the most direct route on this list, though it comes with its own strict 45-day and 180-day deadlines.
Options That Do Not Involve Selling at All
- Holding the property until death, since heirs generally receive a stepped-up basis to fair market value
- Refinancing to pull out cash instead of selling, since loan proceeds are not a taxable event
- Gifting the property, which shifts basis to the recipient rather than eliminating the gain
- A charitable remainder trust for owners willing to give up direct ownership in exchange for an income stream and a deduction
Each of these solves a different problem than a sale does, and none of them is a shortcut without real consequences for control, income, or estate planning.
Matching the Right Tool to the Actual Goal
An owner who wants to cash out and walk away from real estate entirely has a narrower set of options than one who is willing to keep reinvesting. An owner sitting on a property with almost no remaining depreciation to recapture faces a different calculation than one who has depreciated a building close to zero. The mechanism that fits depends less on the property and more on what the owner actually wants to do with the proceeds next.
Running the numbers on two or three of these paths side by side, with an actual basis calculation behind each one, is worth more than picking based on which strategy is most talked about.
Common Questions
Is there a way to legally pay zero capital gains tax on an investment property sale?
Rarely in a single outright sale. Deferral through a 1031 exchange, a stepped-up basis at death, or staying in a low enough income bracket to qualify for the 0 percent long-term rate are the closest paths, and each has narrow conditions attached.
Does a 1031 exchange work for a primary residence?
No. Section 1031 applies only to property held for investment or business use. A primary residence has its own separate exclusion under Section 121, which works differently and caps at a set dollar amount rather than deferring the gain indefinitely.
How much does depreciation actually add to the tax bill at sale?
The amount of depreciation taken over the holding period is recaptured at sale and taxed at its own rate, separate from the capital gains rate on appreciation. A property held and depreciated for many years can owe more in recapture than in gain on the appreciation itself.
Can an installment sale reduce the total tax owed, or just delay it?
It spreads recognition of the gain across the years payments are received, which can keep an owner in a lower bracket each year rather than stacking the entire gain into one. It does not reduce the total gain, only when it gets taxed.
What records does an owner actually need before estimating their gain?
The original purchase settlement statement, every depreciation schedule filed on the property, documented capital improvements with receipts, and the current sale contract with closing cost estimates. Without those, any estimate is a guess.




