Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / 1245 recapture in a 1031
1031 after a cost seg

Section 1245 Recapture in a 1031 Exchange: Why a Cost-Segged Building Can Owe Tax With No Boot

Short answerA 1031 exchange defers Section 1245 recapture only to the extent you receive Section 1245 property back. If the old building was cost-segged and the replacement has too little 5- and 7-year property, the shortfall is ordinary income in the exchange year even with no boot (IRC 1245(b)(4)). In our Texas example, a $200,000 shortfall costs $56,740 in 2026.

The trap in one sentence

A like-kind exchange defers gain, but Section 1245 has its own rule for exchanges, and it overrides the general deferral: the ordinary recapture you owe on the old property's personal-property components is limited only to the gain you recognize plus the fair market value of property you receive that is not Section 1245 property (IRC 1245(b)(4)). If you hand over cost-segged carpet, cabinetry and dedicated electrical, and get back mostly building shell and land, the regulation treats you as having traded 1245 property for non-1245 property. That difference is ordinary income in the exchange year, even when the qualified intermediary reports zero boot.

Before cost segregation and bonus depreciation were common, this rarely mattered, because most buildings carried little 1245 depreciation. A study that moved 20% or 30% of a building into 5- and 7-year lives, written off at 100% bonus for property acquired after January 19, 2025 (P.L. 119-21 section 70301; IRS Notice 2026-11) or at the phase-down rates for earlier years, changes that.

How the limit is computed

Start with what would be recaptured in a taxable sale. For each 1245 component, recapture is the lesser of the depreciation taken on it or the gain on it (IRC 1245(a)(1)). Then apply the exchange limit (Treas. Reg. 1.1245-4(d)(1)):

  1. Gain recognized on the exchange anyway (boot), plus
  2. The fair market value of non-1245 property you receive that was not already counted as boot.

Recapture is the smaller of the sale amount or that limit. In a typical real estate exchange the replacement building and land are worth far more than the old components, so item 2 is large and the practical question becomes how much of the components' value comes back to you as Section 1245 property. The regulation's examples match 1245 property received against 1245 property given up; when the replacement is short, the shortfall is recaptured.

Real structural components are a separate question. For Section 1031, structural components of a building are real property even if a study treats some of them as 1245 property for depreciation (Treas. Reg. 1.1031(a)-3(a)(2)). Movable personal property is not like-kind real property at all, so value you receive in that form is taxable. Your qualified intermediary and attorney should confirm which items fall where.

Worked example: zero boot, real tax

Our couple sells an office building in Texas that was cost-segged in 2021. The 5- and 7-year components were fully written off and are worth $250,000 at the exchange, so a cash sale would recapture $250,000 (the per-component cap holds it below the larger amount of depreciation taken). They roll every dollar into a replacement that, without a study, carries only $50,000 of Section 1245 property.

The $200,000 shortfall is ordinary income: $56,740 of 2026 federal tax and net investment income tax, with $7,600 of that being the 3.8% tax (IRC 1411, threshold $250,000 joint, not indexed, 2026). In California the same shortfall costs $75,340, of which $18,600 is state tax. If a study on the replacement documents $200,000 of 5- and 7-year property before the return is filed, the shortfall drops to $50,000 and the tax to $13,900, a difference of $42,840. Numbers are illustrative engine output from labeled assumptions; the matching of specific components is your CPA's call.

The per-component cap: value the old components honestly

The recapture exposure is not the depreciation you took. It is capped, component by component, by the gain on that component, which depends on its value at the exchange (IRC 1245(a)(1)). Five-year carpet that was installed seven years ago may be worth very little. A defensible, documented low value for worn 5- and 7-year items shrinks the amount that needs matching 1245 property on the other side.

  • Get the valuation in writing from an appraiser or the engineer who did the original study, as of the exchange date.
  • Be consistent. The value you use for recapture should match what the exchange documents and any allocation say. A buyer of your old building may want a high personal property value for its own bonus depreciation; that pushes your recapture up. See purchase price allocation.
  • Land improvements such as parking lots and landscaping are 1250 property. Bonus on them is additional depreciation recaptured under IRC 1250(a), with a separate exchange limit in IRC 1250(d)(4) that looks at 1250 property received. Swapping into another building usually covers it, but check.

How to plan the replacement side

Most of this is fixed before closing on the replacement, not at tax time.

  • Order a study or a desktop estimate on the replacement during due diligence, so you know whether it carries enough 1245 property. Retail, hospitality, medical office and multifamily with modern finishes tend to carry more than raw land, warehouses with little build-out or a ground lease.
  • Delaware statutory trust interests as replacement property: ask the sponsor for its cost segregation figures. Many sponsors commission studies, but the 1245 share varies by asset.
  • Do not count on bonus on the replacement to fix it. Bonus on used replacement property applies only to excess basis (Treas. Reg. 1.168(k)-2(g)(5)(iii)(A)); the recapture limit looks at the value of 1245 property received, not at the bonus you can claim. The two questions are separate. See cost segregation after a 1031 with boot for the depreciation side.
  • Trading into land only (farmland, raw land) nearly always produces a full shortfall on any cost-segged components.

When the recapture also hits an installment sale or a carryback

If you skip the exchange and sell with seller financing, the full recapture lands in year one regardless of how little cash you collect: recapture income is recognized in the year of disposition under IRC 453(i), and only the rest of the gain is spread. A cost-segged property sold on a note can leave the seller paying tax out of pocket in the year of sale unless the down payment covers it. Size the cash at closing to the recapture tax first. See recapture in an installment sale.

The same logic applies to a 1031 with a buyer's note as part of the price: the note is boot, and any recapture that 1245(b)(4) does not shelter comes out in the exchange year.

Questions to ask before you sign

  1. Was the property you are selling ever cost-segged, or did you take bonus or Section 179 on any of it? (your CPA)
  2. What is each 5- and 7-year component worth today, in writing? (appraiser or engineer)
  3. How much Section 1245 property does the replacement carry? (engineer, or the sponsor for a Delaware statutory trust)
  4. Does the contract or exchange agreement state an allocation between real and personal property? (attorney)
  5. Which items are personal property, not like-kind real property, under Treas. Reg. 1.1031(a)-3? (qualified intermediary, attorney)

Get the Big Sale Tax Analysis to model the recapture in a 1031, a cash sale and an installment sale side by side.

What to know

The exchange limit is mechanical and easy to miss, because the exchange paperwork shows no boot. The exposure depends on values, not only on depreciation history, so it needs a valuation of the old components and a look at the replacement before closing. A study on the replacement costs money, and a short hold after the exchange can still bring the recapture back later on a cash sale. Holding until death resets basis for heirs (IRC 1014), which is the one path where the recapture never comes due.

Worked example

Assumptions: married couple, $250,000 of other income in 2026. The relinquished building's 5- and 7-year components were fully written off with bonus in 2021 and are worth $250,000 at the exchange. The replacement holds only $50,000 of Section 1245 property, so $200,000 of the components' value comes back as non-1245 property and is recaptured as ordinary income. No cash or debt boot. Same exchange for California residents. California taxes the recapture as ordinary income too; the state amount follows its own depreciation history, simplified here to the same $200,000. Same exchange, but a study on the replacement identifies $200,000 of 5- and 7-year property before closing, leaving a $50,000 shortfall.

Engine runShortfall of $200,000, TexasSame shortfall, CaliforniaReplacement study finds $200,000, Texas
Filing statusMarried, jointMarried, jointMarried, joint
StateTexasCaliforniaTexas
Other income (wages, pension, interest)$250,000$250,000$250,000
Section 1245 recapture triggered by 1245(b)(4)$200,000$200,000$50,000
Federal income tax on the sale$49,140$49,140$12,000
Net investment income tax (3.8%)$7,600$7,600$1,900
State income tax on the sale$0$18,600$0
Total tax caused by the sale$56,740$75,340$13,900
Effective rate on the gain28.4%37.7%27.8%
Gain kept after these taxes$143,260$124,660$36,100

Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) 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 (where a state has not yet published 2026 brackets, its 2025 table is used and labeled projected). "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.

Run your own numbers

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 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. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.

Free PDF sheet

Long-Term vs Short-Term Capital Gains (2026)

The one-year holding rule, the 2026 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.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

Is depreciation recapture deferred in a 1031 exchange?
Mostly, but not automatically. Unrecaptured Section 1250 gain on a building carries over when you exchange into another building. Section 1245 recapture is deferred only to the extent you receive Section 1245 property back; any shortfall is ordinary income in the exchange year under IRC 1245(b)(4), even with no boot.
Does cost segregation affect a 1031 exchange?
Yes, in two ways. The old study created 1245 components whose recapture needs matching 1245 property in the replacement. And the replacement's own depreciation depends on exchanged basis and excess basis, with bonus only on excess basis for used property (Treas. Reg. 1.168(k)-2(g)(5)(iii)(A)).
How is 1245 recapture calculated?
For each component it is the lesser of the depreciation taken or the gain on that component, meaning the amount realized for it minus its adjusted basis (IRC 1245(a)(1)). That is why the value assigned to worn components at sale matters as much as the depreciation history.
Can a 1031 exchange avoid ordinary income?
It can defer it if the replacement carries enough Section 1245 property to match the old components' value, or if the old property had little 1245 depreciation. A study on the replacement before filing documents what it carries. Trading cost-segged property for land or a bare shell usually triggers the recapture.
Do I owe recapture if my 1031 had no boot?
You can. Boot is one trigger; the 1245(b)(4) limit is another. The limit adds the fair market value of non-1245 property you receive, so a no-boot exchange of cost-segged components for a building with few components still produces ordinary income.
Does an installment sale spread depreciation recapture?
No. Recapture income is recognized in the year of the sale even if most of the price is paid later (IRC 453(i)). Only the remaining gain is reported as payments arrive, so the down payment should cover the year-one recapture tax.
How Hans helps: the free Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is free until November 2027. Start with a free scoping call. No checkout, no obligation.

Prefer email? Request the analysis by email.

Book a callCall Hans