Rental Property Capital Gains Calculator
Estimate adjusted basis, depreciation recapture tax, long-term capital gains tax, NIIT, state tax, and your estimated net cash from sale.
Tax and Proceeds Breakdown
How to Calculate Capital Gains on a Rental Property Sale: A Complete Expert Guide
Selling a rental property can create a meaningful financial win, but it can also trigger one of the most complex tax calculations most investors face. A typical transaction includes multiple moving pieces: adjusted basis, prior depreciation deductions, depreciation recapture, long-term capital gains brackets, possible net investment income tax, state taxes, and your final net proceeds after the mortgage is paid off. If you skip even one variable, your estimate can be off by thousands of dollars.
This guide walks through the full framework in plain language. You can use the calculator above for a practical estimate, then compare the output with your CPA or enrolled agent before closing. While every taxpayer situation is unique, the process below gives you a professional structure for getting close to your likely federal and state tax outcome.
Step 1: Start with Amount Realized, Not Just Sale Price
Investors often begin with the gross contract price, but tax calculations usually start with amount realized. In most simplified scenarios:
- Amount Realized = Sale Price – Selling Expenses
- Selling expenses can include commissions, escrow fees, transfer taxes, legal fees, and eligible closing costs.
- This figure is used to measure gain against your adjusted basis.
If your property sells for $650,000 and you pay $39,000 in selling costs, your amount realized is $611,000. That number, not the gross list price, is your starting point.
Step 2: Calculate Adjusted Basis Accurately
Your adjusted basis is not simply what you paid at purchase. It usually changes over time. A common simplified formula is:
- Start with original purchase price.
- Add eligible closing costs and capital improvements.
- Subtract total depreciation claimed (or allowable depreciation).
Example: Purchase at $350,000, plus $8,000 in basis-eligible closing costs, plus $42,000 in improvements, minus $70,000 depreciation gives an adjusted basis of $330,000.
Important: Land is not depreciable, and not all repairs are capital improvements. The IRS distinguishes repairs from improvements, and that distinction directly affects your basis and taxable gain.
Step 3: Compute Total Gain
After you have amount realized and adjusted basis:
- Total Gain = Amount Realized – Adjusted Basis
Continuing the example, $611,000 amount realized minus $330,000 adjusted basis equals a total gain of $281,000.
If this number is negative, you may have a loss. Rental property losses can involve passive activity and other limitations, so professional review is highly recommended.
Step 4: Separate Depreciation Recapture from Remaining Capital Gain
One of the most misunderstood steps in rental property sales is depreciation recapture. Federal tax law generally taxes the depreciation-related portion of gain at a special rate (often up to 25% for unrecaptured Section 1250 gain), while remaining long-term gain is taxed under standard capital gains brackets.
- Recapture Portion = Lesser of Total Gain or Total Depreciation Taken
- Remaining Long-Term Gain = Total Gain – Recapture Portion
In the example, depreciation is $70,000 and total gain is $281,000, so up to $70,000 may be taxed at the recapture rate. The remaining $211,000 flows into long-term capital gains treatment.
Step 5: Apply Federal Long-Term Capital Gains Brackets
Long-term gain rates are commonly 0%, 15%, or 20%, depending on filing status and taxable income. The gain generally “stacks” on top of your other taxable income. That means part of your gain may be taxed at 15% and part at 20% if your income crosses a threshold.
| Filing Status | 0% LTCG Rate Up To | 15% LTCG Rate Up To | 20% Rate Above |
|---|---|---|---|
| Single | $47,025 | $518,900 | $518,900+ |
| Married Filing Jointly | $94,050 | $583,750 | $583,750+ |
| Married Filing Separately | $47,025 | $291,850 | $291,850+ |
| Head of Household | $63,000 | $551,350 | $551,350+ |
These bracket levels are commonly used for estimating and planning. Because tax thresholds can change, verify current-year limits before filing.
Step 6: Check Net Investment Income Tax (NIIT)
Many higher-income investors also pay the 3.8% Net Investment Income Tax. NIIT generally applies when modified adjusted gross income exceeds threshold levels (for example, $200,000 for many single filers and $250,000 for many joint filers). For planning, investors often estimate NIIT on the lesser of:
- Net investment income from the transaction, or
- Income above the NIIT threshold.
This can materially increase the total federal burden, especially in large gain years.
Step 7: Add State Taxes and Estimate Net Cash
Many sellers under-budget taxes because they focus only on federal amounts. State tax treatment varies dramatically. Some states have no state income tax, while others tax gains at ordinary income rates. To estimate net cash, subtract the following from amount realized:
- Federal recapture tax
- Federal long-term capital gains tax
- NIIT (if applicable)
- State tax estimate
- Mortgage payoff and any remaining debt
The result is your working estimate of what actually lands in your account after closing.
Why Accurate Basis and Depreciation Records Matter So Much
Documentation quality can determine whether you overpay or underpay. Understating basis (for example, forgetting major improvements) can artificially inflate gain. Overstating basis can produce filing risk and potential penalties. Likewise, depreciation history is critical because the IRS generally expects recapture treatment even when depreciation was allowable but not fully claimed. Good records should include:
- Settlement statements from purchase and sale
- Detailed improvement invoices with dates and scope
- Annual depreciation schedules from prior returns
- Loan payoff figures and final closing disclosures
Housing and Inflation Data That Influence Investor Outcomes
Capital gains exposure has increased over time partly because home values rose quickly in several recent years. At the same time, higher inflation raised nominal selling prices, which can increase taxable gains when basis adjustments have not kept pace.
| Year | FHFA U.S. Home Price Growth (Approx, Annual) | BLS CPI-U Inflation (Annual Avg) | Investor Planning Insight |
|---|---|---|---|
| 2020 | About 10% | 1.2% | Asset values rose faster than inflation, accelerating potential taxable gains. |
| 2021 | About 18% | 4.7% | Sharp appreciation created larger embedded gains for many landlords. |
| 2022 | About 8% | 8.0% | Inflation pressure and price gains complicated real versus nominal return analysis. |
| 2023 | About 6% to 7% | 4.1% | Continued appreciation kept tax planning essential before disposition. |
Data context helps explain why so many long-hold rental owners now face high gain and recapture amounts at sale.
Common Mistakes When Calculating Capital Gains on Rental Sales
- Ignoring depreciation recapture: This can materially understate federal tax.
- Using gross sale price only: Failing to subtract selling costs overstates amount realized.
- Missing improvements: Major remodels and additions may increase basis and reduce gain.
- Assuming one flat capital gains rate: Rates can be blended across bracket thresholds.
- Forgetting NIIT: High earners may owe additional 3.8% federal tax.
- Skipping state impact: State liability can be substantial depending on location.
How to Use This Calculator for Practical Decision-Making
The calculator is best used as a scenario tool. Try multiple cases before you list the property:
- Enter your likely sale price range (conservative, expected, optimistic).
- Run low and high selling cost assumptions.
- Test updated depreciation and improvement numbers from your records.
- Compare outcomes with and without NIIT.
- Add expected state tax rate to avoid underestimating cash required at closing.
This process helps with pricing, debt payoff planning, reserve management, and reinvestment strategy.
Authoritative Government Sources for Deeper Tax Guidance
For official details and updates, review these resources:
- IRS Publication 527 (Residential Rental Property)
- IRS Publication 544 (Sales and Other Dispositions of Assets)
- Federal Housing Finance Agency House Price Index Data
Final Takeaway
Calculating capital gains on a rental property sale is not just one equation. It is a layered tax workflow: amount realized, adjusted basis, depreciation recapture, bracket-aware long-term gain tax, NIIT review, state taxes, and final cash proceeds after debt payoff. The better your records and assumptions, the better your decisions before signing a listing agreement or accepting an offer.
Use the calculator above as your planning foundation, then validate the final numbers with a qualified tax professional, especially if you have prior passive losses, mixed-use periods, installment sale terms, or complex entity structures.