Selling a Rental Property: Capital Gains, Depreciation Recapture, and the 3.8% Tax Explained
Real estate investors spend years deducting depreciation on their rentals. When they sell, the bill for that depreciation arrives. The gain on a rental property is taxed in layers, at different rates, and the total is often higher than owners expect from a simple capital gains calculation. Knowing the layers before you list the property gives you time to plan the timing, the structure, or a deferral.
Step 1: Calculate Your Adjusted Basis
Your gain is the sale price minus selling costs, minus your adjusted basis. Adjusted basis starts with what you paid for the property plus closing costs and the cost of improvements, then subtracts all depreciation.
The rule that surprises people is that basis is reduced by depreciation allowed or allowable. If you were entitled to depreciation but never claimed it, your basis is reduced anyway, and you are taxed as if you had taken it. If you discover missed depreciation before you sell, it can usually be caught up with an accounting method change on Form 3115, which is far better than losing it.
Step 2: Break the Gain Into Layers
| Layer | What it is | 2026 federal rate |
|---|---|---|
| Unrecaptured Section 1250 gain | Gain up to the straight-line depreciation taken on the building | Taxed at your ordinary rate, capped at 25% |
| Section 1245 recapture | Gain on personal property components, such as those identified in a cost segregation study | Ordinary income rates, up to 37% |
| Long-term capital gain | The remaining gain above your original cost | 0%, 15%, or 20%, depending on taxable income |
| Net investment income tax | Applies on top of the above when modified AGI exceeds $200,000 single or $250,000 joint | 3.8% |
2026 Capital Gains Brackets
For 2026, the 0% long-term capital gains rate applies to taxable income up to $49,450 for single filers and $98,900 for married couples filing jointly. The 20% rate begins above $545,500 single and $613,700 joint. Everything in between is taxed at 15%. A large gain from a property sale can push part of your gain into the 20% bracket in the year you sell.
A married couple bought a rental in 2016 for $400,000, with $320,000 allocated to the building. They have taken about $120,000 of depreciation. In 2027 they sell for $700,000 and pay $42,000 in selling costs. Their adjusted basis is $280,000, so their gain is $378,000. Of that, $120,000 is unrecaptured Section 1250 gain taxed at up to 25%, and $258,000 is long-term capital gain taxed at 15% or 20%. With their other income, most of the gain is also subject to the 3.8% net investment income tax.
Suspended Passive Losses Are Released
Many landlords have rental losses that were suspended for years under the passive activity rules. When you sell your entire interest in the property to an unrelated buyer in a fully taxable sale, those suspended losses become deductible in the year of sale. They offset the gain first and then other income. This can reduce the tax on a sale significantly, and it is often overlooked.
Ways to Defer or Reduce the Tax
- 1031 exchange: reinvest the proceeds in other real property held for investment or business use. You must identify replacement property within 45 days and close within 180 days, and a qualified intermediary must hold the funds. The gain, including depreciation, is deferred, not eliminated.
- Installment sale: if you finance part of the price for the buyer, gain can be spread over the years you receive payments. Section 1245 recapture is taxed in the year of sale regardless.
- Timing: selling early in a year when your other income is lower, or splitting closings across tax years in a multi-property sale, can keep more of the gain in lower brackets.
- Holding until death: heirs generally receive a stepped-up basis to fair market value, which eliminates both the capital gain and the depreciation recapture. This is a real planning factor for older investors.
Converting a Rental to Your Home
Moving into a former rental to use the home sale exclusion of up to $250,000 ($500,000 joint) is far less effective than it once was. The exclusion is reduced for periods of nonqualified use after 2008, and depreciation taken after May 6, 1997 is never excluded. It is still taxed when you sell.
Florida and Foreign Sellers
Florida residents pay no state income tax on the gain. Florida does impose documentary stamp tax on the deed, customarily paid by the seller, at $0.70 per $100 of the sale price in most counties, with a different rate structure in Miami-Dade.
If the seller is a foreign person, the buyer is generally required to withhold 15% of the gross sale price under FIRPTA, even if the actual tax owed is much lower. A withholding certificate can be requested from the IRS before closing to reduce it.
When This Does Not Apply
This article covers long-term residential rentals held by individuals. Property held as inventory by a developer or flipper is taxed as ordinary income, not capital gain. Real estate professionals who materially participate in their rental activities may avoid the net investment income tax on the gain. Properties held in partnerships or S corporations follow the same principles, but the gain passes through on a K-1, and the entity's basis records matter.
References

Daniel is a Florida CPA and the principal of MDR Consulting CPA PLLC in Miami. He works with small businesses, self-employed professionals, and high earners on tax compliance and planning, in English and Spanish. Before starting the firm he led accounting and finance teams as VP of Finance at Alivi and Director of Accounting at Assurant.
More about Daniel →
Want the full picture? Take Tax University, free.
A 48-page guide to the five stages of tax maturity, from setting up your business correctly to turning tax savings into wealth. Instant download.
Get Free Access →Planning to Sell a Property?
Before you list, I can calculate your adjusted basis, estimate the tax on each layer of the gain, and compare a straight sale with a 1031 exchange or an installment sale, so the decision is made with real numbers.
Schedule a Free ConsultationThis article is general information based on federal and Florida tax law. Figures are for the 2026 tax year unless noted. It is not tax or legal advice for your situation. Tax rules change, and the right answer depends on your facts, so talk with a qualified professional before acting on it.