Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Tax Tools / Cost segregation before a sale
Tax Tool Analysis

Cost Segregation Before a Sale: How It Works, Who It Fits, and the Catch

offset
Short answerA cost segregation study moves parts of a building into 5-, 7- and 15-year property so you can deduct them faster, now with 100% bonus depreciation for property acquired after January 19, 2025. Right before a sale, most of that deduction comes back as ordinary recapture in the sale year. It pays when the deduction lands at a higher rate than the recapture, or when the sale is years away.

How cost segregation works

When you buy a commercial building, the default is to depreciate the whole building over 39 years (27.5 for residential rental). A cost segregation study, usually done by an engineer or a specialist firm, breaks the purchase price into its parts: carpet, cabinetry, dedicated electrical, specialty plumbing and similar items become 5- or 7-year property, and parking lots, landscaping, sidewalks and site utilities become 15-year land improvements.

Those shorter-life components qualify for bonus depreciation because their recovery period is 20 years or less (IRC 168(k)(2)(A)). The One Big Beautiful Bill Act made 100% bonus depreciation permanent for property acquired after January 19, 2025 (with no binding contract before that date). For buildings bought earlier, the old phase-down rates for the year the property was placed in service still apply.

If you have owned the building for years and never did a study, you do not amend old returns. You file Form 3115 for an automatic change in accounting method and take the missed depreciation as a single Section 481(a) adjustment in the year of change.

That catch-up is why late studies get pitched to owners who are getting ready to sell. The automatic change (designated change number 7, Rev. Proc. 2025-23 section 6.01) requires that you own the building at the start of the year of change, so a calendar-year seller can still file it with the sale-year return. See missed depreciation before a sale.

The catch: recapture in the sale year

Depreciation on the 5- and 7-year components is Section 1245 property. When you sell, every dollar of depreciation taken on those components (up to the gain on them) comes back as ordinary income, taxed at rates up to 37%, not at the 20% capital gain rate (IRC 1245(a)).

The 15-year land improvements are Section 1250 property, and depreciation above straight line on them, including bonus, is also recaptured as ordinary income under 1250(a).

Without a study, most depreciation on a building is straight line and becomes "unrecaptured Section 1250 gain," taxed at a maximum of 25%. So a study done shortly before a sale mostly converts tax you would have paid at 25% (or 20%) into tax at ordinary rates, one or two years later. The benefit is a timing and rate difference, not a permanent saving.

Recapture is also immune to installment reporting. Under IRC 453(i), all recapture income is recognized in the year of sale even if you receive only a small down payment. More cost segregation means more tax due in year one of a seller-carried deal.

The per-component cap works in your favor. Recapture on each component is the lesser of the depreciation taken on it or the gain on it (IRC 1245(a)(1)).

Five-year carpet installed eight years ago may be worth little at sale, so a defensible, documented low sale value for worn 5- and 7-year items limits the ordinary income. That value has to be consistent with the contract, which is where the buyer comes in (next section).

The allocation conflict with your buyer

With 100% bonus depreciation back for property acquired after January 19, 2025 (P.L. 119-21 section 70301; IRS Notice 2026-11), buyers of used commercial and rental property want as much of the price as possible assigned to 5-, 7- and 15-year components, because they can write those off in year one.

Every dollar assigned there is a dollar of potential ordinary recapture for the seller who cost-segged or took bonus. The two sides want opposite numbers.

Whatever is signed tends to stick. Under the Danielson rule and IRC 1060, a party to a written allocation is generally bound by it. In Peco Foods, Inc. v. Commissioner, T.C. Memo.

2012-18, aff'd 522 Fed. Appx. 840 (11th Cir.

2013), a buyer that signed purchase price allocation schedules was not allowed to use a later cost segregation study to re-split the assets.

The IRS audit guide tells examiners that a written allocation between personal and real property "is binding on the taxpayer and cannot be changed by a taxpayer's subsequent cost segregation study" (IRS Publication 5653, rev. 2-6-2025), while noting it is unclear whether Peco Foods reaches purchases that are not applicable asset acquisitions under IRC 1060.

For a seller: read the allocation schedule before it is signed, price what a high personal property allocation costs you at ordinary rates, and treat the allocation as part of the price negotiation. See purchase price allocation.

Can cost segregation offset capital gains?

Partly, and only in the right order. Extra depreciation is an ordinary deduction. It lowers taxable income, but capital gain is stacked on top of ordinary income when the rate is figured (IRC 1(h)).

So the deduction first wipes out income taxed at ordinary rates, and only reduces taxed gain once ordinary income is used up. Along the way it can pull some gain down into the 0% or 15% bracket.

Three cases come up around a sale:

  • A study on a building you keep, in the year you sell another one. If both are rentals and you are a passive owner, the new depreciation is a passive loss, and gain on selling a rental is passive income, so the loss can be used against it that year (IRC 469; Treas. Reg. 1.469-2T(c)(2)). This is the "sell, then buy with bonus" path compared on our bonus vs 1031 page.
  • A study on the building you are selling. The deduction comes back as ordinary recapture in the sale year (next section), so it mostly trades a 25% or 20% rate for an ordinary rate later. It does not erase gain.
  • Losses you cannot use yet. Passive losses that the study creates but you cannot use are suspended and released when you sell the whole activity in a taxable sale (how a sale releases them).

Where cost segregation sits in IRC 168

"Cost segregation" is not a Code term. It is a study that sorts a building's cost into the recovery classes in IRC 168:

ComponentRecovery period (IRC 168(c))Bonus eligible?Recapture class at sale
Personal property in the building (5- or 7-year)5 or 7 yearsYes, 20 years or less (168(k)(2)(A))Section 1245: all depreciation, up to the gain, is ordinary
Land improvements (15-year)15 yearsYesSection 1250: depreciation above straight line (including bonus) is ordinary
Residential rental building27.5 yearsNoSection 1250: straight-line amount is unrecaptured 1250 gain, max 25%
Nonresidential building39 yearsNoSame as residential

Section 1250 property is depreciable real property that is not Section 1245 property (IRC 1250(c)). The study's job is to prove which dollars belong in the shorter classes.

Who it fits, and who it does not

  • Fits: owners who will hold for several more years, so the deduction compounds before any recapture.
  • Fits: real estate professionals or owners with passive income who can actually use a large deduction this year, at a high marginal rate.
  • Fits: owners planning a 1031 exchange into property with enough Section 1245 property to absorb the recapture (IRC 1245(b)(4)).
  • Fits: heirs, because a basis step-up at death wipes out the recapture exposure.
  • Does not fit: a cash sale or installment sale within a year or two, where the deduction and the recapture land at similar rates.
  • Does not fit: passive investors with no passive income, whose deduction is suspended and then released in the sale year, right next to the recapture.
  • Partly fits: inherited property or property bought from a related party. Bonus depreciation is not allowed on property acquired from a decedent (inherited basis under IRC 1014) or from a related person (IRC 168(k)(2)(E)(ii); IRC 179(d)(2)), though a study can still shorten recovery periods under regular MACRS.
  • Watch the cap: real estate professionals whose rental losses are nonpassive still face the excess business loss limit, $512,000 for joint filers in 2026 (IRC 461(l); Rev. Proc. 2025-32); the excess becomes a net operating loss carryforward, usable against only 80% of taxable income in later years (IRC 172(a)).
  • Does not fit: California filers looking for a state benefit. California does not follow federal bonus depreciation (R&TC 17250(a)(11)).

A different case is a study on the property you are buying, not selling: if you take boot in a 1031 exchange, a study on the replacement can create a deduction in the same year the boot is taxed. See cost segregation after a 1031 with boot.

Worked example

Assumptions (engine, 2026 federal rules, married filing jointly, Texas, no state income tax): a rental building held since 2015 sells in 2026. Without a study, the sale produces $1,000,000 of capital gain plus $500,000 of unrecaptured Section 1250 gain, on top of $150,000 of other income.

A study filed the year before the sale adds $400,000 of extra depreciation through a 481(a) catch-up, and that deduction offsets $400,000 of non-passive ordinary income in a $900,000 income year.

StepFederal tax effect
Year before sale: $400,000 deduction (income tax only)About $140,643 less tax
Sale year without study: tax on the sale$391,353 (including $53,200 NIIT)
Sale year with study: $400,000 more gain, all ordinary recapture$522,375 (including $68,400 NIIT)
Extra tax in the sale yearAbout $131,022

Net: about $140,643 of tax avoided one year, about $131,022 paid back the next. The roughly $9,600 difference plus one year of use of the money is the benefit, before the study fee. It exists here only because the deduction hit a higher bracket than the recapture.

If the deduction had been suspended under the passive loss rules and released in the sale year, the two would largely cancel. Numbers are illustrative engine output, not a forecast.

IRS stance and audit risk

Cost segregation itself is legitimate and well settled. The Tax Court accepted component-based classification in Hospital Corporation of America v. Commissioner, 109 T.C. 21 (1997), and the IRS publishes a Cost Segregation Audit Techniques Guide (Publication 5653) that tells examiners what a quality study looks like: an engineering-based approach, documentation tied to construction records or site inspection, and a reconciliation to total cost.

The guide lists 13 principal elements of a quality study (IRS Publication 5653, rev.

2-6-2025): preparation by someone with expertise and experience; a detailed description of the methodology; appropriate documentation; interviews with appropriate parties; a common nomenclature; a standard numbering system; an explanation of the legal analysis; unit costs and engineering take-offs; organization of assets into lists or groups; reconciliation of allocated costs to actual costs; treatment of indirect costs; identification and listing of Section 1245 property; and consideration of related issues such as IRC 263A, accounting method changes and sampling.

Ask any provider to show how its report covers each one. The guide treats the residual estimation approach, which prices only short-lived assets and assigns the rest to the building, as less reliable.

Audit risk comes from weak studies: aggressive classification of structural items (walls, roofs, HVAC serving the building) as personal property, residual estimation without support, or ignoring land. The other common error is at sale: failing to report recapture, or allocating almost nothing of the price to the reclassified components when the contract or appraisal says otherwise. This is not a listed transaction or a transaction of interest.

Costs and fees

  • Study fee, which varies with building size and complexity; desktop studies cost less than engineering site visits.
  • Return preparation for Form 3115 and the 481(a) adjustment.
  • Ongoing tracking of component basis so the right amount is recaptured when you sell or dispose of parts.
  • The hidden cost: higher year-one tax at sale, which reduces the cash a seller-carried deal leaves you after closing.

How it compares with a Section 453 installment sale

The two tools work on different parts of the gain. An installment sale spreads capital gain and unrecaptured 1250 gain across the years you collect the note, which can keep more of it in lower brackets and under the NIIT threshold.

It cannot spread recapture. Cost segregation adds recapture, so it shrinks the part of the gain an installment sale can spread and raises the tax owed out of the down payment.

If you already did a study, an installment sale still helps with the rest of the gain, but all the recapture is taxed in the year of sale (IRC 453(i)).

Size the down payment, or the cash at closing, to cover that year-one recapture tax first, so the note does not leave you paying tax out of pocket.

The same check applies before a 1031: a cost-segged property needs enough Section 1245 property in the replacement, or the shortfall is ordinary income in the exchange year (IRC 1245(b)(4)); see Section 1245 recapture in a 1031.

If you have not, and a sale or seller-carried deal is a year or two away, a study is usually a small timing play at best. If a 1031 exchange is the plan, recapture can be deferred when the replacement property carries enough Section 1245 property, which makes a study more attractive.

How Hans helps

The $5,000 Big Sale Tax Analysis models the deduction years and the sale year together, at your actual brackets and state, and compares a cash sale, an installment sale, a 1031 and the other paths side by side. You see whether a study adds anything after recapture and fees before you pay for one. Start with the one-year vs spread estimate or see the analysis.

What to know

Cost segregation shifts tax in time; it does not remove it. Close to a sale, Section 1245 and 1250(a) recapture bring the deduction back as ordinary income in the sale year, and Section 453(i) puts that recapture in year one even in an installment sale.

The math works when the deduction lands at a higher rate than the recapture, when the hold is long, or when a 1031 or a step-up at death is the exit. A signed purchase price allocation binds both sides, so the buyer's bonus and the seller's recapture are negotiated together.

State conformity varies, and a study is only as good as its documentation.

Free PDF sheet

Your Big Sale Options

One page, eleven paths: cash, installment sale, 1031, Delaware statutory trust, Opportunity Zone, charitable remainder trust, Section 121, QSBS, loss harvesting, bracket timing and moving states. What each does, who it fits, the trade-off, liquidity and the 2026 rule, plus four questions for your CPA.

Hans Goldstein
Enrolled Agent, admitted to practice before the IRS

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

Installment sale + 1031 + ILIT: when is it a slam dunk?

For a large estate, a 1031 exchange, an installment sale and a trust-owned life insurance policy (an ILIT) can work together. It tends to win when most of these are true (2026 figures: the federal estate tax exemption is $15,000,000 per person, $30,000,000 for a married couple):

  1. Your estate is clearly over the line: a projected estate tax bill of $10,000,000 or more.
  2. You are married, age 50 to 60, in preferred health or better. At 75 or older, single, or in a rated health class it usually does not win.
  3. One separate property has stuck (suspended) passive losses at least as big as its gain.
  4. That property earns little: low cap rate, slow growth.
  5. You would sell or borrow anyway, or you do not have the cash on hand to pay the premiums.

Four or five true? Run the numbers. Enter your own estate and ages below, or open the full calculator. Estimates from published rates, not a quote or advice; your CPA and attorney decide.

Open the calculator on this page

Frequently asked questions

Is cost segregation worth it if I am selling next year?
Usually not by much. The extra depreciation comes back as ordinary recapture in the sale year. It can still help if this year's deduction offsets income taxed at a higher bracket than the recapture will be, and the study fee is small relative to that difference.
Can I do a cost segregation study on a building I have owned for years?
Yes. You file Form 3115 for an automatic accounting method change and take the missed depreciation as a single Section 481(a) adjustment in the year of change, without amending prior returns.
Does 100% bonus depreciation apply to my building?
Bonus applies only to components with a recovery period of 20 years or less, not to the 39-year or 27.5-year building shell. The 100% rate applies to property acquired after January 19, 2025; earlier acquisitions use the phase-down rate for their placed-in-service year.
Does an installment sale defer depreciation recapture?
No. Under IRC 453(i), all Section 1245 and 1250 recapture income is recognized in the year of sale, regardless of when the payments arrive. Only the remaining gain is spread.
Is cost segregation an audit red flag?
A well-documented engineering-based study is routine and supported by case law and the IRS audit guide. Problems arise from aggressive classification of structural parts, unsupported estimates, and failing to report recapture at sale.
Does California allow bonus depreciation?
No. California does not follow federal bonus depreciation, so the state deduction is slower and California gain on sale is smaller than federal gain because state basis stays higher.
Can a buyer's cost segregation study override the purchase price allocation?
Generally not if both sides signed a written allocation. In Peco Foods (T.C. Memo. 2012-18, aff'd 11th Cir. 2013) the buyer was bound by its signed allocation schedules, and the IRS audit guide says a written allocation between personal and real property cannot be changed by a later cost segregation study.
Can I take bonus depreciation on an inherited building?
No. Property with a basis determined under IRC 1014 (inherited) or bought from a related person does not qualify for bonus (IRC 168(k)(2)(E)(ii); IRC 179(d)(2)). A study can still move components to 5-, 7- and 15-year lives under regular MACRS.
Can cost segregation offset capital gains?
Only indirectly. The extra depreciation is an ordinary deduction, which reduces ordinary income first and taxed gain only after that (IRC 1(h)). A passive owner can use new rental depreciation against passive gain from selling another rental in the same year. A study on the property you are selling mostly comes back as ordinary recapture in the sale year.
What happens when I sell a property after cost segregation?
Depreciation on the 5- and 7-year components is Section 1245 recapture, taxed as ordinary income up to the gain on those components. Bonus or accelerated depreciation on 15-year land improvements is Section 1250 recapture, also ordinary. Straight-line depreciation on the building is unrecaptured Section 1250 gain, taxed at up to 25%. All recapture is due in the year of sale, even on an installment sale (IRC 453(i)).
How Hans helps: the Big Sale Tax Analysis models this path side by side with every other option for your sale and ends with a written recommendation. See the analysis.
Next step

Know 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.

Call Hans: 213-340-2018Book a time