Selling a Rental Property: Capital Gains + Depreciation Recapture Tax (2026)

Most rental-property owners expect to pay long-term capital gains when they sell — and miss the second bill entirely: Section 1250 depreciation recapture. The IRS taxes all those annual depreciation deductions back at up to 25%, whether you claimed them or not. Brian's video walks through the mechanics. This editorial companion adds the IRS primary-source framework: the two-part gain split, the 'allowed or allowable' trap, NIIT, and 1031 like-kind exchanges.

Key takeaways

Tax disclaimer

ClearValue Lending is not a CPA, tax advisor, or registered investment advisor. This article is general tax education about how the IRS taxes rental property sales. It is not personalized tax or investment advice. Tax rules change — verify current rates, thresholds, and requirements at IRS.gov and with a qualified tax professional before acting on any information here.

Selling a rental property triggers two federal taxes: capital gains tax on your profit (up to 23.8% including the Net Investment Income Tax) and depreciation recapture taxed at up to 25% on every depreciation deduction you've claimed (IRS Publication 544). Most owners think long-term capital gains and stop there — what surprises them is that second layer the IRS adds on top. Every year you depreciated the property, you reduced your tax bill by deducting wear-and-tear. When you sell, the IRS claws back those deductions at a flat 25% rate.

How the gain is calculated — the two-part split

The tax math starts with your adjusted basis: purchase price, plus improvements and closing costs you capitalized, minus all depreciation you claimed (or could have claimed) over your holding period. The difference between your net sale proceeds and your adjusted basis is your total gain. That gain splits into two pieces for tax purposes.

The two-part gain split at sale

Gain componentWhat it representsTax rate
Depreciation recapture (Section 1250)Cumulative depreciation claimed (or allowable)Up to 25% maximum rate
Remaining capital gainAppreciation above original cost basis0%, 15%, or 20% long-term capital gains rate

Example: You buy a residential rental for $300,000 (land $50,000, structure $250,000). Over 10 years you depreciate the structure at $250,000 ÷ 27.5 years = $9,091/year × 10 years = $90,909 in cumulative depreciation. Your adjusted basis is now $300,000 − $90,909 = $209,091. You sell for $400,000 net. Total gain: $190,909. Of that, $90,909 is subject to depreciation recapture (up to 25%), and the remaining $100,000 is subject to long-term capital gains rates. This is a simplified illustration — consult a CPA for your specific numbers.

27.5-year depreciation and the 'allowed or allowable' rule (IRS Pub 527)

Section 1250 recapture — the max 25% rate

Section 1250 of the tax code governs depreciation recapture on real property. For residential rental property depreciated under straight-line MACRS (the only method allowed since 1987), the recapture is called 'unrecaptured Section 1250 gain.' The IRS taxes it at a maximum rate of 25% — higher than the standard 15% or 0% long-term capital gains rate, but lower than ordinary income rates. The recapture amount equals the total depreciation allowed or allowable over your holding period.

Section 1250 recapture mechanics and Form 4797 (IRS Pub 544)

The biggest shock at sale isn't capital gains — it's depreciation recapture. The IRS doesn't care whether you actually claimed the deduction. If you could have claimed it, they tax it back. Owners who skipped depreciation for years to 'keep it simple' still owe recapture on every year they held the property.
— Brian's ClearValue Lending Team

Long-term capital gains rates on the remaining appreciation

The gain above your original cost basis — the appreciation portion — is taxed at long-term capital gains rates if you held the property for more than one year. The IRS sets three rate tiers based on taxable income.

Long-term capital gains rates (IRS Topic 409)

The 3.8% Net Investment Income Tax (NIIT)

If your modified adjusted gross income (MAGI) exceeds the NIIT thresholds, an additional 3.8% tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. Rental property gain — including both the capital gain portion and the recaptured depreciation portion — counts as net investment income. This is a separate layer on top of both capital gains tax and depreciation recapture.

NIIT thresholds and scope (IRS Topic 559)

1031 like-kind exchange — deferral, not elimination

A Section 1031 like-kind exchange allows you to sell a rental property and defer both the capital gains tax and the depreciation recapture — but only if you reinvest the proceeds in a qualifying replacement property under strict IRS timelines. The taxes are deferred to a future sale, not forgiven. If you hold the replacement property until death, your heirs receive a stepped-up basis — effectively eliminating the deferred gain — but this depends on estate tax law as it exists at that time.

1031 exchange rules — timelines and post-TCJA scope (IRS Pub 544)

Section 121 home-sale exclusion — a narrow exception

If the property was your primary residence for at least two of the five years immediately before the sale, you may be eligible for the Section 121 exclusion ($250,000 for single filers, $500,000 for married filing jointly). The exclusion applies to the capital gain portion only — depreciation recapture is never excluded under Section 121. And if the property has been used as a rental during the five-year lookback period, the exclusion may be partially limited. The rules here are narrow and fact-specific; a CPA is essential.

The recordkeeping imperative

Accurate gain calculation at sale depends entirely on records you create from day one. Missing records don't reduce your tax obligation — the IRS will apply the most unfavorable interpretation. Keep all of the following for the life of the investment and at least three years after sale.

SMB owners with rental holdings — the back-end tax surprise

Many small business owners hold rental properties as part of their retirement or wealth-building strategy. When it's time to exit — whether to fund a business expansion, transition the business, or retire — the tax consequences on that rental sale can significantly reduce expected net proceeds. If you're looking to capitalize on real-estate equity or fund your next business move, ClearValue Lending can help match you to financing options that fit your situation.

Related resources

Frequently asked questions

What is depreciation recapture on a rental property sale?

When you own rental property, the IRS allows you to deduct a portion of the building's cost each year as depreciation (27.5-year straight-line for residential rental under MACRS). Those annual deductions reduce your taxable income while you own the property. When you sell, the IRS taxes back that cumulative benefit. The 'recaptured' depreciation — called unrecaptured Section 1250 gain for real property — is taxed at a maximum rate of 25%, separately from the capital gain on appreciation. Source: IRS Publication 544.

Do I owe depreciation recapture if I never claimed depreciation?

Yes. The IRS 'allowed or allowable' rule means your cost basis is reduced by depreciation you could have claimed, even if you didn't. An owner who never filed a depreciation deduction still has an adjusted basis as if they had — and therefore still owes recapture at sale based on all the years depreciation was available. Skipping depreciation deductions doesn't avoid recapture; it just means you paid higher taxes while you owned the property AND owe recapture at sale. Source: IRS Publication 527.

How does a 1031 exchange defer depreciation recapture?

In a Section 1031 like-kind exchange, you reinvest the proceeds from the sale of one investment property into a qualifying replacement property, following strict IRS timelines (45-day identification / 180-day close). The gain — including both the capital gain portion and the accumulated depreciation recapture — is not recognized at the time of the exchange. Your basis in the replacement property carries over from the relinquished property, meaning the deferred taxes will come due when you eventually sell the replacement property (unless you exchange again or hold until death). The taxes are deferred, not forgiven. Source: IRS Publication 544.

What is the difference between Section 1250 and Section 1245 recapture?

Section 1245 applies to depreciable personal property — equipment, vehicles, machinery, and appliances. Section 1245 recapture is taxed as ordinary income at your full marginal rate. Section 1250 applies to real property (buildings, structures). For real property depreciated under straight-line MACRS (the only method allowed since 1987), the recapture is 'unrecaptured Section 1250 gain' and is capped at a 25% maximum rate — softer than ordinary income rates. If you sold a rental property that includes appliances, fixtures, or equipment that were separately depreciated, both sections may apply to different components of the sale. Source: IRS Publication 544.

Can I avoid both capital gains and recapture by gifting the property?

Gifting the property to another person defers the tax but doesn't eliminate it — the recipient takes your adjusted (depreciated) basis, so the gain and recapture carry to them and come due when they sell. If you gift appreciated property to a qualifying charity, you may receive a charitable deduction for the fair market value and avoid recognizing the gain yourself, subject to AGI limitations and IRS rules on charitable contributions of real property. If you hold the property until death, your heirs receive a stepped-up basis to fair market value, which can effectively eliminate the embedded gain — but this depends on estate tax law as it stands at the time. These strategies are tax-planning-level decisions that require a CPA or estate attorney.

How do I calculate depreciation recapture step-by-step before I sell?

Four steps: (1) Find your original cost basis — purchase price plus capitalized improvements and closing costs, less any depreciation you claimed (or could have claimed) on Form 4562 each year. (2) Calculate your adjusted basis: original cost minus cumulative depreciation 'allowed or allowable.' (3) Subtract adjusted basis from net sale proceeds (after selling costs) to get total gain. (4) Split the gain: the portion equal to total depreciation claimed is the unrecaptured Section 1250 gain (taxed at up to 25%); any remaining gain above the original cost basis is the capital gain portion (taxed at 0%, 15%, or 20%). You report this on Form 4797 (Sales of Business Property) and carry the amounts to Schedule D and Form 1040. Example: $90,909 cumulative depreciation on a property sold for a $190,909 total gain — the first $90,909 goes on Line 26/32 of Form 4797 as unrecaptured Section 1250 gain; the remaining $100,000 flows to Schedule D as long-term capital gain. Source: IRS Publication 544 (Form 4797 instructions).

Does an installment sale let me spread out depreciation recapture over multiple years?

No. This is one of the most costly installment-sale surprises: depreciation recapture under Section 1245 and Section 1250 must be recognized in full in the year of sale, regardless of how the payments are structured. You cannot defer recapture income across the installment period — only the capital gain portion above original basis can be spread proportionally over the years you receive payments. If you sell a rental property for $500,000 and receive a $100,000 down payment in Year 1, you still report the entire depreciation recapture amount on your Year 1 return even though you haven't yet received most of the proceeds. This can create a significant tax liability in Year 1 without the cash to cover it. Source: IRS Publication 537 (Installment Sales).

Can capital losses from stocks or other investments offset my depreciation recapture?

Partially. Capital losses from other investments (stocks, other property) can offset the capital gain portion of your rental property sale — the appreciation above your original cost basis. However, capital losses cannot directly offset the unrecaptured Section 1250 gain (the 25%-rate recapture piece). The IRS tax-rate worksheet in the Schedule D instructions applies capital losses to gains in a specific order that preserves the 25% rate on the recapture amount. In practice, a large capital loss in the same year can reduce your total taxable gain on the sale, but the ordering rules mean the recapture component is the last to benefit. Work through Schedule D's 'Unrecaptured Section 1250 Gain Worksheet' (in the Schedule D instructions) or with a CPA to see the exact tax impact. Source: IRS Schedule D Instructions (Unrecaptured Section 1250 Gain Worksheet).

What happens to accumulated depreciation recapture when a rental property is inherited?

When rental property is inherited, the heir receives a stepped-up basis equal to the fair market value of the property on the date of the owner's death (IRC §1014). This effectively eliminates the accumulated depreciation recapture built up during the prior owner's holding period — the heir's new basis starts at FMV, wiping out the deferred recapture liability. The heir then begins depreciating the inherited property from the new stepped-up basis over the standard recovery period (27.5 years for residential rental). This is one of the few ways depreciation recapture can be permanently eliminated rather than merely deferred via a 1031 exchange. Note: Congress periodically revisits step-up-in-basis rules — consult a CPA or estate attorney for the current law at the time of inheritance. Source: IRS Publication 559 — Survivors, Executors, and Administrators (irs.gov/publications/p559).

Does the Section 121 home-sale exclusion eliminate depreciation recapture on a rental property?

No. The Section 121 home-sale exclusion ($250,000 for single filers / $500,000 for married filing jointly) applies only to the capital gain portion of the sale — it never excludes depreciation recapture. Even if the property qualifies for the full exclusion because it was your primary residence for at least 2 of the 5 years before sale, the IRS taxes the accumulated depreciation back at the Section 1250 recapture rate (up to 25%) as a separate item. Additionally, if the property was used as a rental during any portion of the 5-year lookback period, the 'nonqualified use' rules under IRC §121(b)(5) may reduce the exclusion amount proportionally. Properties that served as both a primary residence and a rental require careful Form 4797 and Schedule D treatment — a CPA is essential. Source: IRS Publication 523 — Selling Your Home (irs.gov/publications/p523).

IRS primary sources for this article