Sell, Pay the Tax and Buy With 100% Bonus Depreciation, or Do a 1031?
Request the analysis Book a free scope call
Two ways to stay in real estate
A 1031 exchange defers the whole gain, but the replacement inherits your low basis. The depreciation regulations split its basis into exchanged basis, which keeps depreciating on the old building's schedule, and excess basis, which is treated as newly bought (Treas. Reg. 1.168(i)-6(b)(7) and (8)). On used replacement property, only excess basis can take bonus (Treas. Reg. 1.168(k)-2(g)(5)(iii)(A)). An equal-value swap with no new money creates little or none.
The other path is a taxable sale followed by a separate purchase. You pay tax on the sale, but the new property's basis is its full cost. With 100% bonus depreciation permanent for property acquired after January 19, 2025 (P.L. 119-21 section 70301; IRS Notice 2026-11), a cost segregation study on that purchase can turn a quarter or more of the building cost into a first-year deduction, in the same year the gain is taxed.
Why the deduction can land on the sale gain
For most owners, rental depreciation is passive and can only offset passive income (IRC 469). The sale year is the exception. Gain on the disposition of property used in a passive activity is passive activity gross income for the year it is recognized (Treas. Reg. 1.469-2T(c)(2)(i)(A)). The new rental's bonus depreciation is a passive deduction, so it nets against the old rental's sale gain even though they are different properties. A fully taxable sale of your entire interest in the old activity also frees its own suspended losses (IRC 469(g)), which stack on top.
Real estate professionals who materially participate (IRC 469(c)(7)) have nonpassive rental losses, but large losses are then subject to the excess business loss limit: $528,000 for joint filers in 2027, with the excess carried forward as a net operating loss (IRC 461(l); Rev. Proc. 2026-35).
Worked example: $2,000,000 sale, $2,000,000 purchase
A plain cash sale of the apartment building costs this Texas couple $356,774 in 2027 federal income tax and net investment income tax. If they buy a $2,000,000 rental in the same year and a study finds $400,000 of 5-, 7- and 15-year property, the sale-year tax falls to $217,661, a drop of $139,113. The 3.8% net investment income tax alone falls from $49,400 to $34,200, because rental deductions reduce net investment income (IRC 1411(c)(1)(B), 2027).
Compare that with a 1031: tax today would be zero, and the new property would carry over the $700,000 basis. The sell-and-buy route costs $217,661 now in exchange for a new $2,000,000 basis, a fresh 27.5-year schedule on $1,200,000 of remaining building cost and no deferred gain hanging over the next property. Whether that is worth it depends on how long you hold, your bracket later and whether heirs will inherit (IRC 1014 resets basis at death either way). Numbers are illustrative engine output from labeled assumptions; a real study's percentage depends on the building.
What has to be true for the bonus
- Acquired after January 19, 2025. A written binding contract signed earlier disqualifies the property from the 100% rate (IRS Notice 2026-11).
- Used property is fine if it is new to you. You cannot have used it before, and you cannot buy it from a related person or a member of your controlled group, or get a carryover basis or an inherited basis (IRC 168(k)(2)(E)(ii); IRC 179(d)(2)).
- Placed in service in the sale year. The deduction has to land in the same tax year as the gain. A December sale with a January purchase misses it.
- Only short-life components qualify. Bonus applies to property with a recovery period of 20 years or less (IRC 168(k)(2)(A)); the building shell stays on 27.5 or 39 years.
- The study has to hold up. The IRS audit guide lists 13 principal elements of a quality study, from preparer expertise to reconciliation with actual cost (IRS Publication 5653, rev. 2-6-2025).
California and other decoupled states
California does not allow federal bonus depreciation under IRC 168(k) (FTB 2025 Form 3885A instructions), so the state keeps taxing the full gain: $140,163 of California tax in our example, which the federal bonus does not reach, while the federal saving of $139,113 is the same as in Texas. California also taxes all gain as ordinary income, so the state cost of the cash sale is large either way. A California seller who does a 1031 instead defers the state tax too, and if the replacement is outside California the state tracks the deferred gain through an annual information return (FTB Form 3840 instructions, 2025). For many California owners that tilts the comparison back toward an exchange. Check your own state's page under capital gains tax by state.
The trade-off: recapture later
Bonus on 5- and 7-year property is Section 1245 depreciation, recaptured as ordinary income when you sell (IRC 1245(a)); bonus on 15-year land improvements is 1250 additional depreciation recaptured under IRC 1250(a). If the new rental is sold for cash in 2031 with similar income, our engine shows about $129,814 of tax on the recaptured $400,000. A later sale on seller-carried note does not spread it, because recapture is recognized in year one (IRC 453(i)). A later 1031 needs enough 1245 property in that replacement to defer it (IRC 1245(b)(4)); see Section 1245 recapture in a 1031.
When each path tends to win
| Situation | Leans toward |
|---|---|
| Long hold, plan to leave the property to heirs | 1031 (deferred gain disappears at death under IRC 1014) |
| Exchange at risk of failing on the 45/180-day clock | Sell and buy, if the purchase can close in the same tax year |
| Large suspended passive losses on the old property | Sell and buy (losses free up under IRC 469(g)) |
| California resident | Usually 1031, since the state gives no bonus |
| Trading up with new debt anyway | 1031 plus a study on the excess basis; see cost segregation after a 1031 with boot |
| Want out of real estate entirely | Neither; see Section 453 installment sale |
Get the Big Sale Tax Analysis to run both paths, plus an installment sale, on your numbers.
What to know
This is a rate-and-timing trade, not a way around the tax. The study deduction is passive for most owners, so it only helps in the year it has passive gain to absorb, and it needs the purchase to close in the same tax year as the sale. A cash sale still owes more today than a 1031, the bonus comes back as ordinary income on a later sale, and states such as California give no bonus at all. The study fee and the work of keeping separate state depreciation schedules are real costs.
How much tax does this sale cause? A worked example
Assumptions: married couple, $250,000 of other income in 2027. Apartment building sold for $2,000,000, adjusted basis $700,000 after $600,000 of straight-line depreciation, no mortgage: $600,000 unrecaptured Section 1250 gain plus $700,000 of capital gain. Same sale. In the same year they buy a used $2,000,000 rental from an unrelated seller ($400,000 land, $1,600,000 building). A study puts 25% of the building ($400,000) into 5-, 7- and 15-year property, all taken as 100% bonus in 2027 and used as a passive deduction against the passive sale gain (rent assumed to cover the new property's other costs). Same sale for California residents, shown without the study deduction because California does not allow bonus depreciation; the federal saving from the study is the same as in Texas, and regular state depreciation on the new rental would trim the state figure only slightly. If the new rental is sold for cash in 2031 with the same $250,000 of other income, the $400,000 of bonus is recaptured as ordinary income (projected 2031 brackets).
| Engine run | Cash sale, no new purchase, Texas | Same sale, buy and cost seg a new rental | Same sale, California (state view) | Later sale (2031): the $400,000 comes back |
|---|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint | Married, joint |
| State | Texas | Texas | California | Texas |
| Other income (wages, pension, interest) | $250,000 | $250,000 | $250,000 | $250,000 |
| Long-term capital gain | $700,000 | $700,000 | $700,000 | $0 |
| Unrecaptured Section 1250 gain (25% max) | $600,000 | $600,000 | $600,000 | $0 |
| Section 1245 recapture (ordinary income) | $0 | $0 | $0 | $400,000 |
| Passive deduction from bonus on the new rental | $0 | $400,000 | $0 | $0 |
| Federal income tax on the sale | $307,374 | $183,461 | $307,374 | $114,614 |
| Net investment income tax (3.8%) | $49,400 | $34,200 | $49,400 | $15,200 |
| State income tax on the sale | $0 | $0 | $140,163 | $0 |
| Total tax caused by the sale | $356,774 | $217,661 | $496,937 | $129,814 |
| Effective rate on the gain | 27.4% | 16.7% | 38.2% | 32.5% |
| Gain kept after these taxes | $943,227 | $1,082,339 | $803,063 | $270,186 |
Computed December 1, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2026-35 (IR-2026-133, Nov 5 2026) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table (California: FTB 2026 rate schedules, the latest published; the 2027 schedule is not out yet, so the California figure is a projection from the 2026 tables). "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
How much tax would you owe? Run your own numbers
2027 federal law from the engine: 0/15/20% brackets (Rev. Proc. 2026-35), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules (California on the FTB 2026 schedules, because the 2027 schedule is not published yet). What was sold and years held only matter in a few states: Washington exempts real estate, Ohio and New Mexico treat a business sale differently, Arizona subtracts 25% for assets bought after 2011 and Oklahoma deducts gain on Oklahoma property held 5 years or more. Tax shown is the tax caused by the sale. Excludes local taxes other than Maryland's county tax (3.2% used). Tick the active-owner box if you materially participate in the business. Education only.
Long-Term vs Short-Term Capital Gains (2027)
The one-year holding rule, the 2027 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
Is bonus depreciation better than a 1031 exchange?
Can bonus depreciation offset capital gains from selling a rental?
Can you take bonus depreciation on a used building?
Can I do a cost segregation study instead of a 1031 exchange?
Does California allow bonus depreciation?
What happens to bonus depreciation when I sell?
Sources
- IRS Notice 2026-11, 100% bonus under OBBBA (irs.gov)
- IRC 168, including 168(k) (Cornell LII)
- IRC 179(d)(2), used property limits (Cornell LII)
- Treas. Reg. 1.469-2T(c)(2), disposition gain as passive income (eCFR)
- Treas. Reg. 1.168(i)-6, exchanged and excess basis (eCFR)
- Treas. Reg. 1.168(k)-2(g)(5), bonus in like-kind exchanges (eCFR)
- IRC 469, passive activity losses (Cornell LII)
- Rev. Proc. 2026-35, 2027 inflation adjustments (irs.gov)
- FTB 2025 Form 3885A instructions, California depreciation differences
- FTB 2025 Form 3840 instructions, California like-kind exchange reporting
- IRS Publication 5653, Cost Segregation Audit Techniques Guide (rev. 2-6-2025)
Figures as of November 21, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
1031 exchange
Defer the whole gain by trading investment real estate for more real estate, if you can find it and close inside 180 days.
ReadCost segregation after 1031 boot
Took cash out of a 1031? A new study on the replacement can create a same-year deduction against the boot, but only on the excess basis, and it comes back later
ReadCost segregation before a sale
Faster depreciation now, ordinary recapture at sale: when a late cost segregation study still pays.
ReadFailed 1031 exchange
Missed day 45 or day 180? The sale becomes taxable, but a little-known regulation can move the gain into the year the intermediary releases the money.
ReadRental property
How a rental sale is really taxed: the 25% depreciation layer, the losses the sale finally frees, the 3.8% tax, and why moving in first rarely helps.
ReadLoss carryovers
Old capital losses, frozen passive losses and NOLs can soak up a big gain, but each one follows its own ordering rules and caps.
ReadKnow your number before you sign.
Start with a free scope call: a short call to see whether the Big Sale Tax Analysis is worth it for your sale. No obligation.
Prefer email? Request the analysis by email.
You talk to Hans Goldstein. Enrolled Agent, admitted to practice before the IRS.