The Waterfall Strategy

Home / Articles

How to Avoid Capital Gains Tax on Rental Property: 30 Options

By Hans Goldstein · Updated 2026-09-27

You can rarely erase the capital gains tax on a rental, but you have about 30 legal ways to defer it, spread it, offset it with losses, give part of it away, or never trigger it at all. The right one depends on a few honest answers: do you want to stay in real estate, do you need the money soon, are you likely to hold until death, and do you have stuck passive losses waiting on Form 8582? The routing table below answers that in one screen. The rest of the page explains each option in a few lines.

A word on bias: this site is built around one option, an installment sale timed to stuck passive losses. For many sellers another path is better, and this page says so.

Rule out first

Before comparing tools, answer these in order. Each "yes" points to the option to discuss with your CPA first. None of them is right for everyone.

  1. Do you want to stay in real estate and need no money out? A full 1031 exchange is usually the first thing to look at.
  2. Would you keep the building if someone else ran it? Keep it, hire a manager, maybe borrow.
  3. Are you older, with heirs, and a building strong enough to hold? Holding until death often wins.
  4. Would you give a large share to charity anyway? Charitable tools.
  5. Is the goal moving wealth to family? An estate attorney, not a sale plan.
  6. Do you need most of the money within two years? A cash sale, maybe split over two tax years.
  7. Do you have stuck passive losses, or losses you will create, to meet the gain? An installment sale timed to those losses.

The routing table

Your situation Often the first path to look at Where an installment sale fits
Want to stay in real estate, need no money out Full 1031 Doesn't
Stay in real estate, but some boot you can't avoid 1031, spread only the boot Only the boot
Tired of the work, not the building Keep it, hire a manager Doesn't
Older, heirs, strong building, spending near the rent Keep (borrow a little), hold for the step-up Doesn't
Poor health, no need for the money Hold until death Doesn't. A note gets no step-up
Want passive real estate, no management DST, TIC or UPREIT (from a securities professional) Maybe for money leaving real estate
Need most of the money within two years Cash sale, maybe split over two tax years Doesn't
Gain small enough for one or two low-income years Time the sale, or a two-year split Doesn't
Big bank of capital losses Cash sale, use the losses Maybe for what the bank can't cover
Want more rentals anyway Sell, buy and cost-segregate a new one For gain bigger than one year's new loss
Other rentals never cost-segregated Look-back study first Often, to spread gain over the catch-up
Charity is a big part of your plan CRT, donor-advised fund, bargain sale For the slice you keep
Estate over the exemption Estate attorney: gifts, grantor trust sale Rarely
Selling working farmland to a farmer §1062 election, or a note If you want the gain itself spread
Government is taking the property §1033 replacement If you want out
Want growth, not income, for ten years Opportunity Zone fund Doesn't, or paired payment by payment
Property in a no-tax state, and you're really moving Move first, then sell After the move, if spreading still helps
Trust the buyer, want a higher rate Seller financing This is an installment sale
Offered "a loan" of the cash at closing An IRS target; the book's view is to walk away Doesn't
Want out, stuck or new passive losses, don't need the money for years An installment sale timed to the losses This is the waterfall
Want out, no losses, big gain Compare: spreading, seller financing, OZ Maybe. The edge is brackets only

Now the 30 options, in seven groups.

Group 1: Don't sell (or not yet)

1. Keep it and hire a manager. Wins when you are tired of the work, not the building. Loses when you want out of the risk: concentration, repairs, rent limits.

2. Keep it and borrow. Keep the building (or 1031 into another), borrow when needed, hold until death. It wins for an older owner with a strong building, heirs and modest borrowing, and breaks when borrowing is large at today's rates or a bad decade forces a sale. See 1031, borrow and hold vs an installment sale.

3. Hold until death. Heirs get a basis equal to date-of-death value (§1014), which erases the gain and the depreciation recapture. In community property states, both halves step up at the first spouse's death (§1014(b)(6)). For many older owners, this is the best tax plan on the list. Loses when you have stuck passive losses and many years to live: at death they are allowed only to the extent they exceed the step-up (§469(g)(2)), so on an appreciated building the reservoir usually dies with you.

4. Wait for a low-income year. For 2026, joint filers pay 0% on long-term gain up to $98,900 of taxable income, and the 3.8% tax starts above $250,000 of modified AGI. A gap year can absorb a modest gain, not a large one.

5. Split it across two tax years. Close in December, take one payment in January. A two-payment installment sale. Good when two years of brackets are enough. Recapture on cost-segregated parts still lands in year one.

Group 2: Stay in real estate

6. A full 1031 exchange. Reinvest all the equity and replace the debt within the 45- and 180-day windows, and nothing is taxed yet. When you don't need money out, it usually wins. In the book's Case 3 (an illustrative composite; engine output), a full 1031 ended at $5.34M after ten years against $5.07M for a 1031 with the cash-out spread over time and $4.90M for a 1031 with cash boot. Anything you take out is boot: see 1031 boot.

7. A Delaware Statutory Trust (DST). A fractional interest in institutional real estate that can be 1031 replacement property (Rev. Rul. 2004-86). Deferral, no landlord work. Loses when you want out of real estate risk or have stuck losses that need gain to meet. It is a security with sponsor fees, no control and no liquidity until the sponsor sells.

8. A tenancy-in-common (TIC) interest. An undivided fraction of a building on title, for a small group of trusted co-owners. Unanimous consent cuts both ways.

9. An UPREIT (§721). Contribute the property to a REIT's operating partnership for units. Diversification, and a step-up if held until death, but converting units later is generally taxable all at once, and that money can never be exchanged again.

10. A condemnation (§1033). If the government takes the property, you can reinvest and defer, with more time than a 1031.

11. Move in first (§121). Two of the five years as your main home can exclude up to $250,000 ($500,000 joint). But gain tied to rental use after 2008 isn't excluded (§121(b)(5)), depreciation after May 6, 1997 never is (§121(d)(6)), and property received in a 1031 must be owned five years first (§121(d)(10)). Works best for a former home rented only briefly. The full rules, with two worked examples, are in selling a rental that was your primary residence.

Group 3: Sell, but spread the tax

12. Seller financing. You carry the note, secured by the property, and report gain as you are paid (§453). Often a higher rate than other options. You take the buyer's credit risk, and a buyer who refinances pays you off early, dumping the rest of the gain into one year. See the ISC guide to seller financing taxes.

13. A structured installment sale. The buyer pays at closing, and the obligation to pay you over time is assigned to a company that is usually funded by a fixed annuity it owns (some programs use a funding agreement). The buyer can't prepay it. You are an unsecured creditor of that company, can't pledge or accelerate the payments, no IRS ruling specifically approves the structure, and the commission is built into the pricing. The tax math matches seller financing.

14. A Deferred Sales Trust. You sell to a trust for a note; the trust sells to the buyer, invests the cash and pays you. No published IRS guidance addresses it by name. Your payments depend on the trust's investments, and a Washington appeals court upheld a finding that such a note was an unregistered security (Mariani, 2025). Compare it in the ISC guide, Deferred Sales Trust vs installment sale.

15. A monetized installment sale. An intermediary buys on a note and a lender "loans" you the cash on day one. IRS Chief Counsel called the theory flawed (CCA 202118016), and the IRS has proposed making it a listed transaction (Prop. Reg. §1.6011-13, not final). If you get the cash on day one, the IRS view is that you did not defer anything. The book's view: walk away. More in the ISC guide to the monetized installment sale.

16. An Opportunity Zone fund. Invest the capital gain within 180 days. For money invested after 2026, the deferred gain is taxed at the earlier of selling the fund interest or five years, with 10% excluded after five years (30% in a rural fund) and the fund's growth tax-free after ten. Recapture does not qualify. Loses when you want income, or have stuck losses that need gain to meet.

17. The farmland election (§1062). Sell qualified farmland to a qualified farmer under a farming covenant and pay the tax in four equal yearly installments. It spreads the payment of the tax, not the gain; your brackets are set in the year of sale.

Group 4: Sell, and bring your own losses

18. Harvest capital losses. Capital losses offset capital gains without limit, whatever their passive status, and carry forward indefinitely (§§1211(b), 1212(b)). A big enough bank can absorb the gain. They offset only $3,000 of ordinary income, so they barely touch recapture.

19. Buy a new rental and cost-segregate it. For property acquired after January 19, 2025, 5-, 7- and 15-year parts can take 100% bonus depreciation, used property included when bought from an unrelated seller. For a passive owner, the big first-year loss is passive and so is the sale gain: they meet. It keeps you a landlord, adds debt, and the depreciation comes back as ordinary recapture later. California allows no bonus.

20. A look-back cost segregation study. On rentals you keep that were never studied, a Form 3115 method change catches up missed depreciation in one year, with no amended returns.

21. A short-term rental you run yourself. Average stay of seven days or less and it is not a rental activity; if you materially participate, its losses are nonpassive. It is a hospitality job. See material participation.

22. A spouse who qualifies as a real estate professional. One spouse with more than 750 hours and more than half their work in real estate, plus material participation, turns rental losses nonpassive. It takes real hours, and California ignores the rule. For high-earning households, see Passive Losses for Doctors.

23. Oil and gas drilling costs. A working interest without limited liability is nonpassive, and intangible drilling costs can be deducted when paid (§§469(c)(3), 263(c)). Risky, unlimited liability, and the deduction comes back on sale (§1254). Only if you would invest without the deduction.

24. Transferable energy credits. Buy credits at a discount (§6418). For individuals they generally offset only tax on passive income, which stuck passive losses would cover for free.

Group 5: Give some of it away

25. A charitable remainder trust. Contribute before a sale is agreed; the trust itself pays no tax when it sells and pays you for life or up to 20 years, with at least 10% projected to charity. Wins if charity was in the plan anyway. The principal never comes back, and suspended losses on a gifted property are added to basis instead of deducted (§469(j)(6)).

26. A donor-advised fund, bunching or a bargain sale. Give property or part of it and deduct its value within the §170 limits. The 2025 law trimmed the benefit starting in 2026. Debt on a gifted property counts as sale proceeds.

27. A conservation easement (the legitimate kind). Give up development rights on land you'd never develop. Not an exit. Syndicated easement deals are a different thing: the IRS treats them as listed transactions.

Group 6: Move it to family

28. Give it to your children first. They take your basis (§1015) and lose the step-up they'd get at your death. For most families under the $15 million per person 2026 exemption, this trades a free step-up for carryover basis.

29. Sell to a grantor trust or a family member on a note. Estate planning, not an exit. A sale to a grantor trust frees none of your stuck losses; related-party rules can accelerate or disallow installment treatment (§§453(e), 453(g), 1239). Self-canceling notes and private annuities belong here too, and only with an estate attorney who does them often.

Group 7: Move yourself

30. Move to a no-tax state before the sale. Works only if the property is also in a no-tax state: the property's state taxes the gain wherever you live, and California keeps taxing each installment's gain after you move (FTB Pub. 1100).

Better together

Several combine rather than compete: a 1031 plus spreading only the boot, a DST plus a note for the part leaving real estate, or a note paired with loss harvesting, a new cost-segregated building, or a charitable slice.

Where the installment sale fits, and where it fails

It wins when three things are true at once: you want out of real estate, you won't need the money for years, and you have losses (stuck or new) to meet the gain. Gain on selling a passive rental is passive income, and paid over time it can meet those losses year after year instead of once. See suspended passive losses when you sell.

It does little when you are a professional whose losses already offset your income, when your K-1s already pay income, or when you trade down with cash and create no new depreciation. Selling rental property taxes shows the layers it can and cannot move.

Bottom line

"Avoid" is usually "defer, spread, offset or give." Holding until death and the §121 exclusion are the main erasers, and each has limits. If you want to stay in real estate, a full 1031 usually wins; if you're older with heirs, holding often wins; if charity or estate tax is the real goal, those tools win. If you want out and have losses stuck on Form 8582, spreading the gain to meet them is worth a hard look. Run the numbers in the free calculator, and get the free book for the full routing guide.

Questions to ask your CPA

Get the full playbook. The Waterfall Strategy, the 20-minute version and the one-page Cliff Notes, free.

Send me the books Try the calculator

Educational only, not tax, legal or investment advice. Examples are illustrative. Have your CPA or tax attorney review your facts before you act. Hans Goldstein is a licensed insurance agent (CA Insurance License #4273294) and is not a CPA or attorney. He is paid a commission only if a structured installment sale is funded; seller financing pays him nothing. Disclosures.