Magnifying glass on a calculator with documents

Guides · Depreciated property

Selling a Fully Depreciated Rental: Sale Math When Recapture Is Bigger Than the Gain

When depreciation taken exceeds the gain, the whole gain is unrecaptured section 1250 gain taxed up to 25%. A worked 1989 sale and what an exchange changes.

By Breakwater Exchange · Reviewed by our 1031 advisory team · Last reviewed

The short answer

When the depreciation you have taken is larger than your gain, the whole gain is unrecaptured section 1250 gain, taxed at your ordinary rate up to a 25% ceiling, and none of it reaches the 15% or 20% capital gains rates. In the hypothetical 1989 building below, a $1,040,000 gain costs $260,000 at 25% plus $39,520 of net investment income tax, about $60,000 more than the same gain would cost at capital gains rates, even though the sale price is below what the owner paid. A 1031 exchange defers all of it, but the replacement inherits the near-zero basis.

At a glance

Unrecaptured section 1250 gainGain that would be recapture if all depreciation counted, capped at the gain itself
Rate on that layerYour ordinary rate, never above 25% under section 1(h)
Residential recovery period27.5 years, so a rental placed in service before mid-1998 is fully depreciated in 2026
Nonresidential recovery period39 years; 31.5 years if placed in service before May 13, 1993
Basis after full depreciationLand cost plus any undepreciated improvements
NIIT3.8% on the lesser of net investment income or MAGI over $250,000 joint, $200,000 single
2026 20% bracket startsAbove $613,700 of taxable income joint, $545,500 single

Once the building is fully depreciated, your basis is the land, and the gain can be smaller than the depreciation you took

Residential rental property is depreciated over 27.5 years and nonresidential property over 39 years, or 31.5 years if it was placed in service before May 13, 1993, according to Publication 946. A duplex placed in service in 1990 or an office building bought in 1989 has written its entire building cost off. What is left in your adjusted basis is the land, plus any improvements still on a schedule.

That is why owners of these properties are surprised by the size of the gain. The amount realized is measured against land cost alone, and the depreciation you claimed over three decades sits inside the gain. Publication 544 states that basis is reduced by depreciation allowed or allowable, so years you skipped still count.

The gain is smaller than the depreciation whenever the sale price, after costs, is below what you originally paid for land and building together. That happens in soft markets and with older commercial buildings, and when it does, the gain is entirely the depreciation layer.

The 25% layer covers the whole gain because unrecaptured section 1250 gain is capped at the gain, not at the depreciation

Section 1(h)(6) defines unrecaptured section 1250 gain as the long-term gain that would be ordinary income if all depreciation were treated as recapture. Because it can only be carved out of gain you actually have, it equals the smaller of depreciation taken or the gain. Section 1(h)(1)(E) taxes that layer at your ordinary rate with a 25% ceiling.

When depreciation exceeds the gain, the 15% and 20% rates never apply. Every dollar falls in the 25% slot, and if your ordinary bracket is 32% or higher, the full 25% applies. A seller in the 22% or 24% bracket pays those rates on the part of the layer that fits in them.

Ordinary-income recapture is a separate question. Publication 544 explains that for section 1250 property held more than a year, only depreciation above straight line is recaptured as ordinary income, and buildings placed in service after 1986 are depreciated straight line. Appliances, carpets and other section 1245 items are different: their depreciation is recaptured as ordinary income, which section 1245 recapture on real estate covers.

Worked model: a 1989 building sold below its cost still produces a $351,520 tax bill

Hypothetical: a couple filing jointly bought a small office building in 1989 for $1,500,000, $300,000 for the land and $1,200,000 for the building. On a 31.5-year schedule it was fully depreciated by about 2020. In 2026 they sell for $1,400,000 and pay $60,000 of selling costs, so the amount realized is $1,340,000. Their other taxable income is $450,000, and for simplicity their MAGI equals taxable income.

Adjusted basis is $300,000, so the gain is $1,040,000. Depreciation of $1,200,000 is larger than the gain, so all $1,040,000 is unrecaptured section 1250 gain. At 25%, that is $260,000. Net investment income tax adds 3.8% of $1,040,000, or $39,520. A hypothetical 5% state tax adds $52,000, for $351,520 in total.

If the same $1,040,000 had been ordinary long-term gain, the 2026 breakpoints in Rev. Proc. 2025-32 would put $163,700 of it at 15% and the rest at 20%, or $199,815 of federal capital gains tax. The depreciation layer costs these sellers $60,185 more, on a sale for $100,000 less than they paid. Run your own numbers with your CPA.

  • Amount realized: $1,400,000 price less $60,000 costs = $1,340,000.
  • Adjusted basis: $1,500,000 cost less $1,200,000 depreciation = $300,000.
  • Gain $1,040,000, all of it in the 25% layer: $260,000.
  • NIIT at 3.8%: $39,520. Hypothetical 5% state: $52,000.
  • Total $351,520, which is 26.2% of the amount realized and 33.8% of the gain.

An exchange defers the full bill, but the replacement starts with the same thin basis

Under section 1031, buying replacement real estate of at least $1,340,000 with all the cash defers the $1,040,000 gain. Section 1031(d) gives the replacement the old $300,000 basis, increased by any cash you add or debt you take on.

That carried-over basis has a quirk worth modelling. Reg. section 1.168(i)-6 depreciates exchanged basis over the old building's remaining schedule, but it limits exchanged basis to the old building's adjusted depreciable basis, which here is zero. Whatever basis is allocated to the new building is excess basis, treated as placed in service in the year of replacement on a fresh 27.5- or 39-year schedule. Depreciating the replacement works that split through.

A fully depreciated building shelters none of its rent, so its income is fully taxable each year. Adding new debt in the exchange raises basis and restarts deductions, which is one reason owners of these properties trade up rather than out.

Choosing among selling, exchanging and holding when the basis is the land

Selling makes sense when the cash need is real and the bill is acceptable, or when an older owner's other income is low enough that part of the layer falls in the 22% or 24% brackets. Exchanging makes sense when you want to keep the capital invested and can use the reset in depreciation.

Holding until death is the third path. Section 1014 gives heirs a basis equal to value at death, so the deferred layers are never taxed to them; exchanging versus holding for the step-up compares the two. Owners who want to stop managing property but keep the deferral often exchange into fractional interests such as a Delaware statutory trust, which Rev. Rul. 2004-86 allows as like-kind replacement property.

If the property carries a large mortgage, check that sale proceeds will cover both the payoff and the tax before you list; 1031 strategies for highly leveraged owners covers that case. State treatment varies, so check your state on the state rules pages.

Related questions

Is the 25% rate on depreciation a flat rate?

No. Section 1(h)(1)(E) sets 25% as a maximum. The layer is taxed at your ordinary brackets, so a seller whose income stacks in the 22% or 24% bracket pays those rates on that portion.

Do I owe recapture on depreciation I never claimed?

Yes. Publication 544 reduces basis by depreciation allowed or allowable, so unclaimed years still shrink basis and still feed the 25% layer. A Form 3115 change in accounting method can catch the missed deductions up before a sale; ask your CPA.

My building was placed in service before 1987. Does the same math apply?

The 25% layer applies the same way, but pre-1987 buildings were depreciated under ACRS rules that can treat some depreciation differently. Have your CPA pull the original depreciation schedule before relying on any estimate.

Does net investment income tax apply to the depreciation layer?

Yes, if your modified AGI is over $250,000 joint or $200,000 single. The Form 8960 instructions confirm that gain deferred under section 1031 is not included in net investment income.

Can a partial exchange avoid the 25% layer?

No. Cash you keep is taxed first as unrecaptured section 1250 gain, so boot from a fully depreciated property is taxed at up to 25%. The tax on $150,000 of boot shows the ordering.

Sources

Checked against these publications on September 30, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.

  1. 26 U.S.C. section 1, including 1(h) capital gains rates
  2. IRS, Rev. Proc. 2025-32 (2026 inflation-adjusted amounts)
  3. IRS Publication 946, How To Depreciate Property
  4. IRS Publication 544, Sales and Other Dispositions of Assets
  5. 26 U.S.C. section 1031, like-kind exchanges
  6. Reg. section 1.168(i)-6, like-kind exchanges and involuntary conversions
  7. 26 U.S.C. section 1411, net investment income tax
  8. IRS, Instructions for Form 8960, Net Investment Income Tax
  9. 26 U.S.C. section 1014, basis of property acquired from a decedent
  10. IRS, Rev. Rul. 2004-86 (Delaware statutory trusts and section 1031)

Price the 25% layer before you list

Send us the purchase year, original cost split and expected sale price through the form, and we will lay out what a full exchange, including DST replacement property, would keep invested.

Free 1031 proposal

Access Investment Offerings Other Brokers Can’t Provide

Breakwater Exchange’s expert guidance helps you maximize returns while minimizing tax exposure, so you can invest with clarity and confidence.

years of experience
20+
in DST transactions
$1B+
states licensed
50
vetted national sponsors
8

Tell us about your exchange

Share the basics and an advisor will reach out with next steps.

Are you an accredited investor?

Generally, net worth over $1 million excluding your primary residence, or income over $200,000 ($300,000 with a spouse) in each of the last two years.

No obligation. A Breakwater Exchange advisor reviews every request personally.

Get My Free ProposalFree ProposalBook a Free ConsultationFree Consultation