Calculate Taxes On Sale Of Rental Property

Calculate Taxes on Sale of Rental Property

Estimate depreciation recapture tax, federal long-term capital gains tax, NIIT, and state tax in one place.

Estimates only. This calculator is educational and not tax advice.

Expert Guide: How to Calculate Taxes on Sale of Rental Property

Selling a rental property can create a significant tax bill, and many investors are surprised when the final number is much higher than expected. The reason is simple: the IRS does not treat all gain the same way. When you sell, part of your gain can be taxed as depreciation recapture (up to 25%), part as long-term capital gain (0%, 15%, or 20% federally), and potentially part can also trigger the Net Investment Income Tax (NIIT) at 3.8%. If you live in a state with income tax, you may also owe state tax on the gain. To calculate taxes on sale of rental property correctly, you need a structured method and accurate records.

The most important concept is that your tax is based on gain, and gain is based on adjusted basis, not just what you paid originally. Adjusted basis starts with purchase price, then adds qualifying acquisition costs and capital improvements, and then subtracts depreciation taken (or allowable). This means that even if your property value did not explode upward, years of depreciation can still create taxable recapture at sale.

Step 1: Determine your amount realized

Amount realized is your sales price minus selling expenses. Common selling expenses include broker commissions, legal fees, title fees, transfer taxes, and certain closing costs paid by the seller. If you sell for $620,000 and pay $42,000 in total selling costs, your amount realized is $578,000. This is your gross economic exit value before tax calculations.

  • Start with contract sales price.
  • Subtract commissions and qualifying closing costs.
  • Use settlement statement figures when possible.

Step 2: Compute adjusted basis

Your adjusted basis is usually:

  1. Original purchase price
  2. Plus purchase closing costs added to basis
  3. Plus capital improvements (new roof, major renovation, additions)
  4. Minus total depreciation claimed or claimable

Routine repairs are generally not capital improvements. A new HVAC as part of a broader value-extending upgrade may qualify as an improvement, while normal maintenance may not. The distinction matters because basis adjustments directly reduce or increase taxable gain.

Step 3: Calculate total gain

Total gain = amount realized – adjusted basis. If this number is negative, you may have a capital loss (subject to tax rules and passive activity limitations). If the number is positive, split it into tax character buckets:

  • Depreciation recapture (unrecaptured Section 1250 gain): generally taxed at up to 25% federally.
  • Remaining long-term capital gain: taxed at 0%, 15%, or 20% depending on taxable income and filing status.

Step 4: Identify depreciation recapture

For most residential rental properties, depreciation is taken over 27.5 years on the building value (not land). At sale, the lesser of total gain or total depreciation can be treated as unrecaptured Section 1250 gain. Investors often underestimate this component. Even when your top capital gains rate is 15%, the recapture portion may still be taxed up to 25%, creating a blended effective rate that feels much higher than expected.

Step 5: Calculate long-term capital gains tax using stacking rules

Long-term capital gains are taxed by income tier and filing status. Your ordinary taxable income fills the lower tiers first, then your capital gain “stacks” on top. That is why two investors with the same property gain can pay different taxes. A higher-income household may push more of the gain into the 20% bracket, while a lower-income household may keep some gain at 0% or 15%.

2024 Filing Status 0% LTCG up to 15% LTCG up to 20% LTCG above
Single $47,025 $518,900 $518,900
Married Filing Jointly $94,050 $583,750 $583,750
Head of Household $63,000 $551,350 $551,350
Married Filing Separately $47,025 $291,850 $291,850

These thresholds are widely used for federal planning and should always be checked for updates before filing. IRS rate schedules can change annually due to inflation adjustments.

Step 6: Consider NIIT (3.8%)

The Net Investment Income Tax may apply when modified adjusted gross income exceeds threshold levels. For many rental property sales, the gain is treated as investment income for NIIT purposes unless a specific exception applies. NIIT is 3.8% on the lesser of net investment income or the amount your income exceeds the threshold.

  • Single and Head of Household: $200,000
  • Married Filing Jointly: $250,000
  • Married Filing Separately: $125,000

If your regular income is already near these limits, the property sale can quickly trigger NIIT on a meaningful part of the gain.

Step 7: Add state tax impact

Many investors plan only for federal taxes and then get a second surprise from state taxation. Some states apply ordinary income tax rates to capital gains, while others have no state income tax. A rough state estimate can still be useful for pre-sale planning, especially when deciding whether to spread transactions across tax years, perform a 1031 exchange, or adjust installment strategy.

State (Example) General Treatment of Capital Gain Top Rate or Notable Rule (Recent)
California Taxed as ordinary income Top marginal 13.3%
New York Taxed as ordinary income Top marginal about 10.9% state level
Texas No state income tax 0% state capital gains tax
Florida No state income tax 0% state capital gains tax
Washington State capital gains excise on certain gains 7% above exemption thresholds

A practical formula you can use every time

Use this framework for a disciplined estimate:

  1. Amount realized = sale price – selling expenses
  2. Adjusted basis = purchase price + basis closing costs + improvements – depreciation
  3. Total gain = amount realized – adjusted basis
  4. Recapture gain = lesser of depreciation or total gain
  5. Remaining LTCG = total gain – recapture gain
  6. Federal tax estimate = recapture tax + LTCG tax + NIIT
  7. Total estimated tax = federal tax + state tax

This process is exactly what robust calculators and many professional planning worksheets follow before a CPA finalizes return-level details.

Where sellers make expensive mistakes

  • Ignoring depreciation recapture: Owners who forgot to model recapture often under-budget by tens of thousands of dollars.
  • Missing basis documents: Lost invoices for renovations reduce basis and raise gain unnecessarily.
  • Confusing repairs with improvements: Repairs are usually current deductions, not basis increases.
  • Using headline capital gains rate only: Federal 15% is not the whole story if recapture and NIIT apply.
  • Skipping state analysis: State taxes can materially change true net proceeds.

How to reduce taxes legally before the sale

Tax reduction is usually about timing, structure, and documentation:

  • 1031 exchange: Defers gain and recapture when rules are met and replacement property deadlines are satisfied.
  • Installment sale planning: May spread gain recognition across years, potentially reducing bracket pressure.
  • Loss harvesting: Capital losses from other investments may offset some taxable gains.
  • Coordinate sale year income: If possible, avoid stacking an unusually high salary year and a large property gain.
  • Basis optimization: Ensure all capitalizable costs and improvements are documented and included.

Primary residence exclusion and former rentals

Some owners convert rentals into primary residences and assume full exclusion applies. In practice, exclusion rules under Section 121 can be limited by use history, nonqualified use periods, and depreciation recapture. Depreciation after May 6, 1997 is generally not excludable under Section 121 and remains taxable. This is an area where professional review is essential.

Recordkeeping checklist before listing the property

  1. Original closing disclosure and settlement statement
  2. Depreciation schedules from prior returns
  3. Improvement invoices, permits, and proof of payment
  4. Refinance and title records (if basis-related items exist)
  5. Projected seller closing statement from listing agent
  6. State-specific tax guidance for your filing residence

Good records are often the difference between an accurate, defendable return and overpaying tax because support documents were missing.

Authoritative resources you should review

For technical accuracy, use primary references and then apply them to your specific facts:

Bottom line

To calculate taxes on sale of rental property with confidence, break the problem into components: adjusted basis, total gain, recapture, long-term capital gains tiering, NIIT, and state tax. A clear model lets you estimate net proceeds, compare sale timing options, and avoid costly surprises at closing. Use the calculator above for a high-quality estimate, then confirm final numbers with a CPA or enrolled agent who can evaluate your full tax return context, passive loss carryforwards, and state-specific rules.

Leave a Reply

Your email address will not be published. Required fields are marked *