The rules this calculator uses
- §1245 recapture: gain up to the depreciation on §1245 property (equipment, and building components reclassified in a cost-segregation study) is ordinary income (IRC §1245(a)).
- Unrecaptured §1250 gain: gain up to the straight-line depreciation on the building is taxed at no more than 25% (IRC §1(h)(1)(E), (h)(6)). Post-1986 buildings use straight-line depreciation, so there's normally no "additional depreciation" taxed as ordinary income under §1250(a); the calculator assumes none.
- The rest is §1231 gain, taxed as long-term capital gain (IRC §1231).
- NIIT: 3.8% on the gain for rental or investment property; not for property held in a non-passive trade or business (IRC §1411(c)(1)(A)(iii); Treas. Reg. §1.1411-4).
- Opportunity Zone deferral: only the §1231 gain above the §1245/§1250 ordinary-income amount can be invested in a QOF (Treas. Reg. §1.1400Z2(a)-1(b)(11)(iii)(A)). When it's included, it keeps its character, so the 25% category survives (§1.1400Z2(a)-1(c)(1)(i)). For OZ 2.0 investments the deferred gain is included after 5 years with a 10% basis step-up (30% for a rural fund), and after 10 years the election under IRC §1400Z-2(c) steps basis up to fair market value, including the fund's asset bases for a QOF partnership (Treas. Reg. §1.1400Z2(c)-1(b)(2)(i)).
Section 1245 vs Section 1250 property
- Section 1245 property is depreciable personal property: equipment, furniture, and building components a cost-segregation study reclassifies as 5-, 7- or 15-year property. Gain up to all the depreciation taken is ordinary income (IRC §1245(a); IRS Pub. 544).
- Section 1250 property is depreciable real property: buildings and their structural components. Only "additional depreciation", the amount above straight line, is ordinary income (IRC §1250(a)). Buildings placed in service after 1986 are depreciated straight line, so there's normally none (IRS Pub. 544, Additional Depreciation).
- Unrecaptured Section 1250 gain is the straight-line depreciation on the building, up to the gain. It's long-term capital gain taxed at your ordinary rate but no more than 25% (IRC §1(h)(1)(E) and §1(h)(6)).
How to calculate Section 1250 recapture: a worked example
A rental house bought for $400,000 ($80,000 land, $320,000 building) sells for $600,000 with $30,000 of selling costs. The owner took $150,000 of straight-line depreciation on the building and nothing on §1245 property.
- Adjusted basis: $400,000 cost − $150,000 depreciation = $250,000. Use the depreciation allowed or allowable, even if some wasn't claimed (IRS Pub. 544).
- Gain: $600,000 − $30,000 − $250,000 = $320,000.
- §1250(a) ordinary income: $0, because straight-line depreciation leaves no additional depreciation (IRC §1250(a), (b)(1)).
- Unrecaptured §1250 gain: the lesser of the $150,000 straight-line depreciation and the $320,000 gain, so $150,000, taxed at no more than 25%: at most $37,500 (IRC §1(h)(6)).
- Remaining §1231 gain: $320,000 − $150,000 = $170,000, taxed as long-term capital gain: $34,000 at 20% (IRC §1231; §1(h)).
- NIIT: 3.8% of $320,000 = $12,160 if the house was a rental, not a non-passive trade or business (IRC §1411).
Federal tax at the top rates: $37,500 + $34,000 + $12,160 = $83,660, before state tax. Enter these numbers in the calculator above to check them and to see what an Opportunity Zone fund could defer: here, all $320,000, because there's no §1245 recapture.
Worked example with cost segregation
A rental building bought for $1.2 million sells for $2 million with $100,000 of selling costs, after $300,000 of straight-line depreciation and $100,000 of cost-segregation (§1245) depreciation. The adjusted basis is $800,000 and the gain $1.1 million: $100,000 of §1245 recapture ($37,000 at 37%), $300,000 of unrecaptured §1250 gain ($75,000 at 25%) and $700,000 of §1231 gain ($140,000 at 20%), plus $41,800 of NIIT, for $293,800 before state tax. In a QOF, the $100,000 of §1245 recapture is still taxed now; the other $1 million can be deferred.
Related: the OZ 2.0 tax calculator, the 180-day rule calculator (a §1231 gain's 180 days start on the sale date), the QOZB test checker, and how recapture is treated in a 1031 exchange vs an opportunity zone. Selling a rental? See depreciation recapture for selling landlords. Sources: IRS Publication 544, Sales and Other Dispositions of Assets.