Home › Guides › Markets & the economy
Capital gains on the sale of rental property
This page is for United States, federal rules (IRS); state taxes are not covered
When you sell a rental, depreciation changes the math. Each dollar of depreciation lowers your basis, so it raises your gain. The IRS says part of that gain is taxed at a top rate of 25%.
The short answer
This page is about United States federal tax, from the IRS. It does not cover state tax. The rules come from IRS Publication 527 (Residential Rental Property, 2025), Publication 523, Tax Topic 409 and the 2025 Schedule D instructions. Tax rates and thresholds are for tax year 2027 (IRS Rev. Proc. 2026-35).
Gain on a rental is the sale price, minus selling costs, minus your adjusted basis. Adjusted basis is what the property cost you, plus improvements, minus depreciation.
Two things make a rental sale different from a home sale:
- The home sale exclusion usually does not apply, because you did not live there.
- The depreciation you took (or could have taken) creates a slice of gain with its own tax rate.
Try your numbers in the home sale capital gains calculator. It has a box for depreciation.
Adjusted basis for a rental
Pub 527 says, "You must increase the basis of any property by the cost of all items properly added to a capital account." That is how improvements count. It also says, "You must decrease the basis of your property by any items that represent a return of your cost." One item on that list is "depreciation you deducted or could have deducted on your tax returns under the method of depreciation you chose."
"Could have deducted" matters. Pub 527 says, "If you didn't claim all the depreciation you were entitled to deduct, you must still reduce your basis in the property by the full amount of depreciation that you could have deducted." The IRS calls this depreciation allowed or allowable. Skipping it saves no tax at sale.
| Basis item | Effect on adjusted basis |
|---|---|
| Purchase price and closing costs | Start |
| Improvements | Adds |
| Depreciation allowed or allowable | Subtracts |
The gain
Gain is the amount realized minus the adjusted basis. Amount realized is the sale price minus selling costs, like agent fees. Because depreciation lowers basis, a long-held rental can show a big gain even when the price barely moved.
How long you held it
Topic 409 says, "Generally, if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term." Hold it one year or less and the gain is short-term. A rental held more than one year is long-term.
The depreciation slice: a 25% maximum
Topic 409 says, "The portion of any unrecaptured section 1250 gain from selling section 1250 real property is taxed at a maximum 25% rate." The Schedule D instructions describe section 1250 property as "generally, real property that you depreciated."
In plain words, the part of your gain that comes from depreciation allowed or allowable on the building is the slice with the 25% cap. The rest of the gain is taxed at the regular long-term rates of 0%, 15% or 20%. Those thresholds are on the 2027 capital gains brackets page.
"Maximum" means it can be lower. If your ordinary tax rate is 22% or 24%, the depreciation slice is taxed at that lower rate instead. The Schedule D Tax Worksheet does this for you: it stacks the gain on top of your other income and applies 25% only to the part that sits above the top of the 24% band ($208,325 for a single filer in 2027). Line 40 of that worksheet reads "Multiply line 39 by 25% (0.25)."
Hypothetical: one rental, two incomes
This is a made-up example in US dollars for a single filer, tax year 2027. It is our arithmetic using the Schedule D Tax Worksheet, not a forecast. Totals are federal income tax on the sale only: not the tax on your other income, and not the 3.8% tax below.
A rental sells for $500,000. Selling costs are $30,000, so the amount realized is $470,000. The owner paid $250,000 and took $60,000 of depreciation, so adjusted basis is $190,000.
| Step | Amount (United States, federal) |
|---|---|
| Amount realized | $470,000 |
| Adjusted basis ($250,000 − $60,000) | $190,000 |
| Gain | $280,000 |
| Slice from depreciation | $60,000 |
| Rest of the gain | $220,000 |
The gain is long-term. No home exclusion applies, so all $280,000 is taxable.
Case A: $80,000 of other taxable income. The $220,000 slice is above the 0% line ($51,050 for a single filer in 2027), so it is taxed at 15%: $33,000. The $60,000 depreciation slice lands in the 22% and 24% ordinary bands, which are under 25%. That slice costs $13,817.50. Total: $46,817.50.
Case B: $300,000 of other taxable income. The $220,000 slice is still at 15%: $33,000. Total taxable income is $580,000, above the $563,200 line where the 15% rate ends. But the $220,000 still fits under that line once the $60,000 slice is set aside, so it stays at 15%. The depreciation slice sits above the 24% band, so it is taxed at 25%: $15,000. Total: $48,000.
Same sale. Different other income, different slice rates.
If you once lived there
If the property was your main home before it was a rental, the home sale exclusion may still apply, using the 2-of-5-years tests. Pub 523 still says "you cannot exclude the part of your gain equal to any depreciation allowed or allowable." That part of the gain stays taxable. Gain from "nonqualified use" after 2008 is also not excludable. See capital gains tax on the sale of a home.
Other tools on the IRS forms
The Schedule D instructions point to two forms by name:
- Installment sales. "Use Form 6252 to report the sale on the installment method" if you get a payment in a later year.
- Like-kind exchanges. "Use Form 8824 to report like-kind exchanges." The IRS says "A like-kind exchange occurs when you exchange business or investment property for property of a like kind."
Those rules have many conditions. Read the IRS forms and publications for them.
The 3.8% tax
Topic 409 says people "with significant investment income may be subject to the net investment income tax (NIIT)." Pub 527 describes it as "a 3.8% tax on the lesser of net investment income or the excess of modified adjusted gross income (MAGI) over the threshold amount." See the net investment income tax guide.
Where to go next
Work out your own slices in the calculator. If you got the property from someone who died, your basis is different: see capital gains on inherited property.
Questions
How is the gain on a rental property figured in the United States?
Sale price, minus selling costs, minus adjusted basis. Adjusted basis is cost plus improvements, minus depreciation.
What if I never claimed depreciation?
Pub 527 says you must still reduce your basis by the depreciation you could have deducted.
What is the top federal rate on the depreciation part of the gain?
Topic 409 says unrecaptured section 1250 gain is taxed at a maximum 25% rate.
Is rental property gain short-term or long-term?
Long-term if you held it more than one year. Short-term if one year or less.
Does the $250,000 home exclusion apply to a rental?
Not unless you also owned it and lived in it as your main home 24 of the last 60 months. Even then, gain equal to depreciation is not excluded.
Reminder: this page is for United States, federal rules (IRS); state taxes are not covered
Follow along