Selling a Rental: How Depreciation Recapture Works, featured graphic from Evolution Business Advisors

Selling a Rental: How Depreciation Recapture Works

December 02, 2026•8 min read

How does depreciation recapture work when I sell a rental property?

When you sell a rental at a gain, depreciation taken, or allowable, on the building is taxed at up to 25% as unrecaptured Section 1250 gain. Depreciation on shorter-lived components from a cost segregation study is generally taxed at ordinary income rates. Any remaining gain is a long-term capital gain, and higher earners may owe the 3.8% investment income tax. A 1031 exchange can defer it.

Why recapture exists

Depreciation reduces your taxable income each year you own a rental. When you sell, the IRS takes some of that benefit back. Recapture applies to depreciation allowed or allowable, so skipping depreciation does not avoid it; you simply lose the deduction and still owe the recapture.

The three layers of gain

  1. Ordinary income: depreciation on personal property and land improvements, such as appliances, flooring and site work identified in a cost segregation study, is generally recaptured at ordinary income rates.

  2. Unrecaptured Section 1250 gain: depreciation on the building itself, taxed at a maximum 25% federal rate.

  3. Capital gain: the rest of the gain, taxed at long-term capital gain rates of 0%, 15% or 20%.

The 3.8% net investment income tax may apply on top for higher-income sellers who are not real estate professionals. Maine taxes the gain as ordinary income at its regular rates.

A worked example

Consider an illustrative investor who bought a duplex for $400,000, with $320,000 allocated to the building, and sells it ten years later for $560,000 after $10,000 of selling costs. Depreciation taken was about $116,000. Adjusted basis is about $284,000, so the total gain is about $266,000. Of that, $116,000 is unrecaptured Section 1250 gain taxed at up to 25%, about $29,000, and $150,000 is capital gain, about $22,500 at 15%. Add the 3.8% tax if it applies and Maine tax, and the total bill can reach $70,000 or more. Our rental sale tax calculator estimates your own numbers.

Ways to reduce or defer it

  • 1031 exchange: reinvest in like-kind real estate to defer all gain, including recapture, following strict timing rules.

  • Installment sale: spreads capital gain over the years payments are received, though recapture of ordinary income items is generally taxed in the year of sale.

  • Hold until death: heirs generally receive a stepped-up basis, eliminating built-in gain and recapture.

  • Timing: selling in a lower-income year can reduce the rate on capital gain.

Cost segregation and recapture

Cost segregation accelerates deductions, but the short-life items it creates are recaptured at ordinary rates if you sell. That does not make cost segregation a bad idea, especially if you plan to hold or exchange, but it should be part of the decision. See our post on when a cost segregation study pays off.

A worked sale example

Consider an illustrative investor who bought a rental for $300,000, with $60,000 allocated to land, and took $70,000 of depreciation over ten years. She sells for $450,000, with $27,000 of selling costs. Adjusted basis is $300,000 minus $70,000, or $230,000. Total gain is $450,000 minus $27,000 minus $230,000, or $193,000. Of that, $70,000 is unrecaptured Section 1250 gain, taxed at up to 25%, and $123,000 is long-term capital gain, taxed at 15% or 20% for most investors.

Federal tax could be roughly $36,000 to $42,000 before the 3.8% net investment income tax, if it applies, and Maine tax at regular rates on the full gain. Seeing those numbers before listing lets her compare an outright sale with a 1031 exchange.

Calculating your adjusted basis

Recapture and gain both start with adjusted basis. Begin with the purchase price plus closing costs that were added to basis, add the cost of capital improvements made over the years, and subtract all depreciation taken or allowable. The result is your adjusted basis. Gain is the sale price, minus selling costs, minus adjusted basis.

Missing improvement records are the most common reason owners overpay tax on a sale, because every improvement left out of basis increases the gain. Keep invoices for roofs, kitchens, heating systems and other improvements for as long as you own the property.

Allowed or allowable: depreciation you never took

Recapture applies to depreciation allowed or allowable, which means the IRS calculates it as if you took the depreciation you were entitled to, even if you never claimed it. Owners who skipped depreciation to keep things simple still face recapture at sale, without having had the deduction.

If you discover missed depreciation before selling, you can usually catch it up through a change in accounting method in the current year, rather than amending old returns. Talk to your tax preparer before listing.

Installment sales and recapture

Selling with seller financing lets you spread the capital gain over the years you receive payments, but depreciation recapture is generally recognized in the year of sale, regardless of when payments arrive. An owner who sells with a small down payment can owe more tax in year one than the cash received. Model the tax by year before agreeing to an installment sale.

1031 exchanges: deferral, not forgiveness

A like-kind exchange under Section 1031 defers both capital gain and depreciation recapture by rolling them into replacement property. The deferred gain carries over into the new property's lower basis. If you exchange again and again, and the property passes to heirs at death with a basis step-up under current law, the deferred tax may never be paid.

Exchanges have strict deadlines: 45 days to identify replacement property and 180 days to close, using a qualified intermediary. Our 1031 exchange guide explains the rules.

Maine taxes on a rental sale

Maine taxes capital gains as ordinary income at regular rates, so a Maine resident selling a rental pays state tax on the full gain, including recapture, at up to 7.15%. Nonresidents selling Maine property may face withholding at closing unless an exemption or reduced withholding applies. Plan the state side before closing, especially for large gains.

Our rental property sale tax calculator estimates federal and state tax on a sale.

A planning checklist before listing

  1. Gather purchase records, improvement invoices and every year's depreciation schedule.

  2. Calculate adjusted basis and estimated gain.

  3. Estimate recapture, capital gain, net investment income tax and state tax.

  4. Consider timing: selling in a lower-income year can reduce the rate on capital gains.

  5. Decide whether a 1031 exchange, installment sale or outright sale fits your goals.

  6. Line up a qualified intermediary before closing if exchanging.

Our real estate investor services include sale planning.

Plan before you list

The time to plan a sale is before you sign a listing agreement, when exchange, timing and installment options are all still open. Our guide to depreciation and cost segregation covers the rules, and we work with real estate investors on sale planning.

Key takeaways

  • Depreciation on the building is taxed at up to 25% when you sell.

  • Recapture applies to depreciation allowed, even if you did not take it.

  • Improvement records reduce gain, so keep them.

  • A 1031 exchange can defer both gain and recapture.

Where should you go from here?

Frequently asked questions

What is the depreciation recapture tax rate on rental property?

Up to 25% federally on building depreciation, and ordinary income rates on personal property components.

Do I owe recapture if I never took depreciation?

Yes. Recapture applies to depreciation allowed or allowable, so skipping it does not avoid the tax.

Can a 1031 exchange avoid depreciation recapture?

It defers it, along with the rest of the gain, as long as you follow the exchange rules.

Does Maine tax depreciation recapture?

Maine taxes the gain on a sale as income at its regular rates.

Does the 3.8% tax apply to rental sales?

It may for higher-income sellers, unless they qualify as real estate professionals for the activity.

Does recapture apply to a 1031 exchange?

It is deferred along with the capital gain if the exchange meets the rules.

Is recapture affected by my income level?

The 25% rate is a maximum. Lower-income sellers may pay less on that portion.

Can I avoid depreciation recapture by not depreciating my rental?

No. Recapture applies to depreciation you were allowed to take, whether or not you took it.

Is recapture taxed at 25%?

Unrecaptured Section 1250 gain on buildings is taxed at a maximum of 25%. Shorter-lived components can be taxed at ordinary rates.

Does a primary residence have recapture?

Only for depreciation taken on business or rental use of the home, such as a home office or a rented unit.

Planning to sell a rental?

We estimate the tax and compare exchange and timing options before you list. Book a free 15-minute consultation.

General education, not tax, legal or financial advice for your situation. Figures are current as of the date of this post; confirm current rules before acting.

Harrison Smith

Harrison Smith

Harrison Smith is the founder of Evolution Business Advisors. He has spent more than 23 years in corporate finance, including serving as CFO of a distribution company that grew to $100M and leading the finance side of a major Southern Maine real estate development. He later ran a $1.5B, 108-warehouse distribution operation for a Fortune 500 company. He has worked on about 18 acquisitions and sales, taught accounting and corporate finance at St. Joseph's College, and owns and operates several Maine businesses.

LinkedIn logo icon
Instagram logo icon
Youtube logo icon
Back to Blog
Harrison Smith, founder of Evolution Business Advisors

Written by

Harrison Smith, Founder

Harrison has spent more than 23 years in corporate finance, including CFO roles and running a $1.5B, 108-warehouse distribution operation for a Fortune 500 company. He has worked on about 18 acquisitions and sales and has taught accounting and corporate finance at the college level.

Keep learning: GuidesFree ToolsTemplates