How the calculator splits your gain
When you sell a rental at a profit, the IRS looks at the gain in two layers. The calculator shows each layer on its own line, then adds them up:
- Depreciation recapture. Every dollar of depreciation you took — or were entitled to take — on the building lowered your basis. When you sell, that part of the gain is unrecaptured Section 1250 gain, taxed at your ordinary income rate but never more than 25%.
- Remaining capital gain. Whatever gain is left over is long-term capital gain if you owned the property for more than a year, taxed at 0%, 15% or 20%. In most cases it equals the sale price minus selling costs minus what you paid.
- Total tax. Lines 1 and 2 together, plus the 3.8% net investment income tax and state income tax if you include them.
The formulas: adjusted basis = purchase price − depreciation · total gain = (sale price − selling costs) − adjusted basis · recapture = the smaller of total gain or depreciation · remaining capital gain = total gain − recapture.
Worked example: a $400,000 rental sold for $520,000 after 6 years
Assumptions: a residential rental bought for $400,000 with $80,000 of land value, placed in service in January 2020 and sold in January 2026 for $520,000. Selling costs are 6% ($31,200). The owner is in the 24% bracket, pays the 15% long-term capital gains rate, and is not subject to the net investment income tax or a state tax. These are the calculator’s default inputs.
- Depreciable basis. $400,000 − $80,000 land = $320,000 building.
- Annual depreciation. $320,000 ÷ 27.5 years = $11,636.36 a year, or $969.70 a month ($320,000 ÷ 330 months).
- Mid-month convention. 2020 counts 11.5 months ($11,151.52). 2021–2025 count 12 months each (5 × $11,636.36 = $58,181.82). The sale month, January 2026, counts half a month ($484.85). Total: 72 months × $969.70 = $69,818 of depreciation.
- Adjusted basis. $400,000 − $69,818 = $330,182.
- Amount realized. $520,000 − $31,200 = $488,800.
- Total gain. $488,800 − $330,182 = $158,618.
- Split the gain. The gain is larger than the depreciation, so all $69,818 is unrecaptured Section 1250 gain. The remaining $88,800 is long-term capital gain — exactly the $488,800 net sale price minus the $400,000 originally paid.
- Tax. $69,818 × 24% = $16,756 recapture tax, plus $88,800 × 15% = $13,320 capital gains tax, for $30,076 of federal tax.
| Scenario | Recapture tax | Capital gains tax | NIIT | Total federal tax |
|---|---|---|---|---|
| 24% bracket | $16,756 (24%) | $13,320 | — | $30,076 |
| 32% bracket or higher | $17,455 (25% cap) | $13,320 | — | $30,775 |
| 24% bracket + 3.8% NIIT | $16,756 | $13,320 | $6,027 | $36,104 |
| 32%+ bracket + 3.8% NIIT | $17,455 | $13,320 | $6,027 | $36,802 |
Why this matters: depreciation deductions offset rental income at your ordinary rate each year, and the recapture comes back at no more than 25%. If you deducted at 32%–37%, you come out ahead; in the 22%–24% brackets the benefit is mostly the years of deferral.
Rental property depreciation under MACRS: 27.5 and 39 years
Rental buildings are depreciated with the straight-line method under the General Depreciation System (GDS) of MACRS, with the mid-month convention:
- Residential rental property — 27.5 years. A building where at least 80% of the gross rental income comes from dwelling units: single-family rentals, duplexes, apartment buildings.
- Nonresidential real property — 39 years. Offices, retail, warehouses and other commercial buildings.
- Land is never depreciated. Only the building and capital improvements are. Appliances, carpet and furniture are 5-year property and are recaptured differently (see the FAQ).
- Improvements such as a new roof start their own 27.5- or 39-year schedule when placed in service. Enter them under Capital improvements with the month the work was finished; if you made several at different times, enter the total and the month of the largest one, or enter your total depreciation claimed instead.
That makes this page a rental property depreciation calculator too: the year-by-year schedule under the results shows the deduction for every calendar year, which is the number that goes on Schedule E (Form 4562 in the first year).
How the mid-month convention rounds
The exact day does not matter. A building is treated as placed in service in the middle of the month it is ready to rent, and as sold in the middle of the month of sale. Closing on March 1 or March 31 gives the same 9.5 months of depreciation in the first year. In the year of sale you get the months before the sale month plus half of it, so a June sale counts 5.5 months.
| Month | Months in first year | 27.5-year: first year | 39-year: first year | Months in year of sale | 27.5-year: year of sale | 39-year: year of sale |
|---|---|---|---|---|---|---|
| January | 11.5 | 3.485% | 2.457% | 0.5 | 0.152% | 0.107% |
| February | 10.5 | 3.182% | 2.244% | 1.5 | 0.455% | 0.321% |
| March | 9.5 | 2.879% | 2.030% | 2.5 | 0.758% | 0.534% |
| April | 8.5 | 2.576% | 1.816% | 3.5 | 1.061% | 0.748% |
| May | 7.5 | 2.273% | 1.603% | 4.5 | 1.364% | 0.962% |
| June | 6.5 | 1.970% | 1.389% | 5.5 | 1.667% | 1.175% |
| July | 5.5 | 1.667% | 1.175% | 6.5 | 1.970% | 1.389% |
| August | 4.5 | 1.364% | 0.962% | 7.5 | 2.273% | 1.603% |
| September | 3.5 | 1.061% | 0.748% | 8.5 | 2.576% | 1.816% |
| October | 2.5 | 0.758% | 0.534% | 9.5 | 2.879% | 2.030% |
| November | 1.5 | 0.455% | 0.321% | 10.5 | 3.182% | 2.244% |
| December | 0.5 | 0.152% | 0.107% | 11.5 | 3.485% | 2.457% |
| Every full year in between | 12 | 3.636% | 2.564% | — | — | — |
The percentages are months ÷ 12 ÷ 27.5 (or 39). The 27.5-year column matches IRS Publication 946, Table A-6. The IRS tables round to three decimals, and the 39-year Table A-7a can differ from the formula by a few thousandths of a percent, so tax software may show a result a few dollars away from this page. Once the full 27.5 or 39 years have run, depreciation stops.
Federal rates that apply when you sell (2026)
| Part of the gain | Federal rate |
|---|---|
| Unrecaptured Section 1250 gain (building depreciation) | Your ordinary rate, maximum 25% |
| Long-term capital gain (held more than 1 year) | 0%, 15% or 20% |
| Short-term gain (held 1 year or less) | Ordinary rates, 10%–37% |
| Net investment income tax | 3.8% above $200,000 MAGI single / $250,000 joint |
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Rate | Single | Married filing jointly |
|---|---|---|
| 10% | up to $12,400 | up to $24,800 |
| 12% | $12,401–$50,400 | $24,801–$100,800 |
| 22% | $50,401–$105,700 | $100,801–$211,400 |
| 24% | $105,701–$201,775 | $211,401–$403,550 |
| 32% | $201,776–$256,225 | $403,551–$512,450 |
| 35% | $256,226–$640,600 | $512,451–$768,700 |
| 37% | over $640,600 | over $768,700 |
The gain itself adds to your taxable income, so a large sale can push part of it into a higher bracket. Brackets are from IRS Revenue Procedure 2025-32 (2026 inflation adjustments); the NIIT thresholds are set by law and are not indexed.
Depreciation recapture FAQ
What is depreciation recapture on a rental property?
When you sell a rental for a gain, the depreciation you deducted — or were entitled to deduct — is “recaptured”. That part of the gain is called unrecaptured Section 1250 gain and is taxed at your ordinary income rate, capped at 25%, instead of the lower capital gains rates. The sale is reported on Form 4797, and the 25% portion is figured on the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions.
How is depreciation recapture different from capital gains tax?
Both come from the same sale. The recapture part equals the depreciation you took and is taxed at up to 25%. The rest of the gain — usually your sale price minus selling costs minus what you paid — is long-term capital gain taxed at 0%, 15% or 20% if you held the property for more than a year. If the 3.8% net investment income tax applies, it is charged on both parts.
Is depreciation recapture always taxed at 25%?
No. 25% is the maximum rate for unrecaptured Section 1250 gain on buildings; if your ordinary bracket is 10%–24%, that part is taxed at your lower rate. Depreciation on personal property — appliances, carpet, or components split out in a cost segregation study — is Section 1245 property and is recaptured as ordinary income at your full rate, with no 25% cap. If you held the property for one year or less, the whole gain is short-term and taxed at ordinary rates.
Do I owe recapture if I never claimed depreciation?
Yes. The IRS reduces your basis by depreciation “allowed or allowable”, so you are taxed as if you had claimed it. Missed depreciation can usually be caught up with Form 3115 (change in accounting method) rather than lost, so talk to a tax professional before you sell. The calculator applies the same rule: if you enter less than the schedule allows, it uses the schedule amount.
How does a 1031 exchange affect depreciation recapture?
A properly structured 1031 exchange defers both the capital gain and the depreciation recapture. The deferred gain carries into the replacement property through its lower carryover basis, so the recapture is still there when you later sell in a taxable sale. If you receive cash or other boot, gain is recognized up to the boot and part of it can be unrecaptured Section 1250 gain. Under current law, heirs who inherit the property generally receive a stepped-up basis, which eliminates the deferred gain. Use the 1031 exchange calculator to compare selling with exchanging.
Do I have to pay state tax on depreciation recapture?
Usually yes, and it is figured separately from the federal tax. Most states tax the entire gain, including the recaptured depreciation, as ordinary income with no special 25% rate. States without a personal income tax, such as Florida, Texas and Nevada, do not tax it. The state where the property is located can tax the gain even if you live elsewhere. Enter your marginal state rate in the calculator to include it.
Does the 3.8% net investment income tax apply when I sell a rental?
Generally yes, if your modified adjusted gross income is above $200,000 (single or head of household) or $250,000 (married filing jointly). The tax is 3.8% of the smaller of your net investment income or the amount your income exceeds the threshold. A qualifying real estate professional whose rentals are a non-passive trade or business may not owe it. The calculator’s checkbox applies 3.8% to the whole gain, which is the upper limit.
Sources
- IRS Publication 946, How to Depreciate Property — MACRS, mid-month convention, Tables A-6 and A-7a.
- IRS Publication 527, Residential Rental Property.
- IRS Publication 544, Sales and Other Dispositions of Assets — Section 1250 and 1245 recapture.
- Instructions for Schedule D — Unrecaptured Section 1250 Gain Worksheet.
- IRS Topic No. 559, Net Investment Income Tax.
- IRS Revenue Procedure 2025-32 — 2026 tax brackets and capital gains thresholds.
Last reviewed November 2026. This page gives general information, not tax advice. Related reading: depreciation recapture guide, 1031 exchange guide, capital gains tax rates.