How To Calculate Capital Gains Tax On Rental Property Sale

Rental Property Capital Gains Tax Calculator

Estimate federal and state taxes when selling a rental property, including depreciation recapture, long-term capital gains, and potential NIIT.

Educational estimator only. Tax law is complex. Confirm final numbers with a CPA or tax attorney.

How to Calculate Capital Gains Tax on Rental Property Sale

Calculating capital gains tax on a rental property is one of the most important planning steps before you list the home. Many investors estimate tax with a simple formula like sale price minus purchase price, then discover at closing that their tax bill is much higher. The reason is that rental property tax involves several layers: adjusted basis, depreciation recapture, long-term or short-term capital gains treatment, net investment income tax, and state tax. If you want a clean estimate that you can use for pricing and strategy, you need to run each layer separately and in the right order.

The practical formula starts with amount realized and adjusted basis. Amount realized is usually your contract sale price minus direct selling costs such as commissions, escrow fees, and legal fees. Adjusted basis is your original basis plus capital improvements, minus depreciation that you claimed or were allowed to claim. When amount realized is higher than adjusted basis, the difference is your taxable gain. From there, the gain is split into depreciation recapture and remaining capital gain. This split matters because the tax rates are different.

Step 1: Determine your adjusted basis correctly

Adjusted basis is where many mistakes happen. Investors often forget eligible basis additions, or they forget that depreciation lowers basis over time. If you understate basis, you overstate tax. If you overstate basis, your return may be incorrect and could trigger penalties.

  • Start with acquisition basis: purchase price plus qualifying closing costs.
  • Add capital improvements: roof replacement, full HVAC replacement, room additions, major structural work, and other items that extend useful life or add value.
  • Subtract accumulated depreciation: for residential rentals, the standard federal schedule is usually 27.5 years for the building portion.
  • Do not add routine repairs: painting, minor fixes, and maintenance are usually expenses, not basis additions.

A common issue is land value allocation. Land is not depreciable, but improvements to the structure are. Your depreciation history should align with prior filed returns. Even if depreciation was missed, IRS rules can still treat it as depreciation allowed or allowable, which means basis may still need to be reduced. That is why old tax returns and depreciation schedules are essential records before sale.

Step 2: Compute amount realized and total gain

After basis, compute your amount realized from the sale. Include the gross sales price and subtract selling expenses that directly relate to disposing of the property. Then compare with adjusted basis.

  1. Amount realized = sale price minus selling costs.
  2. Total gain = amount realized minus adjusted basis.
  3. If result is negative, you may have a loss, subject to passive activity and other limitations.

At this stage you have the economic gain for tax reporting purposes. But your tax estimate is still incomplete because rental property gain is not taxed at one uniform rate.

Step 3: Separate depreciation recapture from remaining gain

Depreciation recapture on real estate is typically referred to as unrecaptured Section 1250 gain, taxed at a maximum federal rate of 25%. In plain language, the IRS may tax the depreciation portion at a higher rate than your long-term capital gains portion. For many landlords this is the single biggest surprise in the closing statement year.

  • Recapture amount is generally the lower of total gain or accumulated depreciation.
  • Remaining gain after recapture is treated as long-term capital gain if the property was held over one year.
  • If held one year or less, gain is generally taxed at ordinary income rates.

Example framework: assume a $200,000 total gain with $90,000 depreciation. Up to $90,000 can be exposed to recapture rates (up to 25%), while the remaining $110,000 may be taxed at 0%, 15%, or 20% federal long-term rates depending on taxable income and filing status.

Step 4: Apply federal capital gains brackets and NIIT

Long-term capital gains rates depend on filing status and taxable income. For higher-income households, the 3.8% Net Investment Income Tax (NIIT) may apply to some or all of the gain. This is why a clean estimate needs your expected annual taxable income, not just property numbers.

2024 Filing Status 0% LTCG up to 15% LTCG up to 20% LTCG over NIIT MAGI threshold
Single $47,025 $518,900 $518,900 $200,000
Married filing jointly $94,050 $583,750 $583,750 $250,000
Head of household $63,000 $551,350 $551,350 $200,000

These values are widely used for planning but can change annually with inflation updates and legislation. Always verify current-year thresholds before filing.

Step 5: Include state tax and local impact

Many investors focus on federal tax and underbudget state exposure. States can materially change net proceeds. Some states have no state income tax, while others tax gains at ordinary rates. If you sold in a high-tax state, your combined effective burden can increase significantly. Your estimate should include state rate assumptions and any local filing requirements.

If your property is in one state and you live in another, consult a multistate preparer. You may have nonresident return obligations and credits for taxes paid to another state.

Step 6: Account for sale proceeds versus taxable gain

Taxable gain and cash received are not the same number. Investors often ask, “Why do I owe tax if most of my check paid off the mortgage?” The answer is that tax is based on gain, not equity distribution mechanics. Mortgage payoff affects your final cash, but it does not reduce taxable gain directly.

A complete plan should estimate:

  • Gross proceeds after selling costs
  • Mortgage payoff
  • Total estimated federal and state taxes
  • Net cash retained after debt and tax

Federal rules and planning benchmarks at a glance

Tax Component Typical Rule Planning Impact
Depreciation recapture Up to 25% federal rate on unrecaptured Section 1250 gain Can be the largest part of the federal bill for long-held rentals
Long-term capital gain 0%, 15%, or 20% based on taxable income and filing status Income timing can shift rate tiers
Short-term gain Taxed at ordinary federal income rates Selling before one year can increase tax sharply
NIIT 3.8% on applicable net investment income above threshold High earners should model this separately
Residential rental depreciation Typically 27.5-year life for building portion Lower annual taxes while holding, but increases future recapture exposure

Most common errors when estimating rental sale tax

  1. Ignoring depreciation recapture. This can lead to a major underestimation.
  2. Using purchase price as basis forever. Basis changes over time with improvements and depreciation.
  3. Treating all gain at 15%. Real outcomes can include recapture at up to 25%, NIIT, and state tax.
  4. Forgetting selling costs. They reduce amount realized and therefore can reduce taxable gain.
  5. Not checking holding period. Crossing the one-year mark can materially improve tax treatment.
  6. Mixing cash flow and tax logic. Mortgage payoff affects cash retained, not tax basis.

How this calculator helps you model the sale

The calculator above follows a practical investor workflow. You enter acquisition data, improvement and depreciation data, sale price and costs, income context, filing status, and an estimated state rate. On calculation, it breaks the gain into recapture and remaining gain, applies rate logic, estimates NIIT exposure, and summarizes total tax plus estimated cash after mortgage payoff. The chart visualizes where your tax is concentrated, which helps with strategic decisions such as timing the sale, cost segregation review, income smoothing, or installment sale exploration.

Important: This is an educational estimator, not legal or tax advice. Final filing outcomes depend on your full return, passive activity rules, prior losses, suspended losses, property use changes, and current IRS guidance.

Authoritative resources for verification

Use primary government sources for final rule confirmation:

Advanced planning ideas before you sell

If the projected tax burden is large, plan early. Investors sometimes evaluate installment sales to spread gains across tax years, like-kind exchange eligibility for investment property transitions, charitable strategies, or coordination with retirement income timing. Not every strategy fits every investor, and some involve strict deadlines and documentation. The key is that you run the estimate before listing, not after signing closing documents. Early planning creates options.

Also review records quality. Reconstructing basis documentation after escrow opens is stressful and often incomplete. Assemble closing statements, invoices for capital improvements, depreciation schedules, and prior returns in one file. Good records can lower risk and improve accuracy, especially when your holding period spans many years with multiple upgrades.

Bottom line

To calculate capital gains tax on a rental property sale, do not rely on a one-line formula. Build the estimate in layers: adjusted basis, amount realized, total gain, depreciation recapture, long-term or short-term treatment, NIIT, and state tax. Then translate tax into real-world net cash after mortgage payoff. That full picture is what supports smart pricing, negotiation, and reinvestment decisions. Use the calculator for a fast estimate, then validate with a licensed tax professional before filing.

Leave a Reply

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