Income Tax on Property Sale Calculator
Estimate capital gains tax, depreciation recapture, NIIT, and state tax when you sell real estate.
How to Calculate Income Tax on Property Sale: Complete Expert Guide
If you are selling real estate, one of the most important financial questions is: how much tax will I owe on the sale? The answer depends on several moving parts, including your adjusted basis, selling costs, whether the gain is short-term or long-term, your filing status, whether you qualify for the home sale exclusion, depreciation recapture, and state taxes. The good news is that once you understand the formula, the process is very manageable.
This guide walks you through the exact framework tax professionals use for a first-pass estimate. It is designed for homeowners, landlords, and investors who want to plan ahead before closing. It also helps you spot common mistakes that often cause overpayment or underpayment.
Step 1: Start With the Core Formula
The tax calculation begins with three numbers:
- Amount realized = Sale price – Selling expenses
- Adjusted basis = Purchase price + Certain acquisition costs + Capital improvements – Depreciation claimed
- Total gain = Amount realized – Adjusted basis
Selling expenses may include agent commissions, transfer taxes, title fees, staging, and legal fees connected to the sale. Capital improvements generally include upgrades that add value or extend useful life, such as a roof replacement, full kitchen renovation, room addition, HVAC replacement, and structural work. Routine repairs are usually not basis additions.
Step 2: Determine Whether the Gain Is Short-Term or Long-Term
Holding period drives federal tax rate treatment. In general, if you held the property for more than one year, gain is long-term. If one year or less, gain is short-term and typically taxed at ordinary income rates.
- Short-term gain: taxed like wages at your marginal bracket.
- Long-term gain: taxed at preferential rates (0%, 15%, or 20%) depending on taxable income and filing status.
Step 3: Apply Section 121 Home Sale Exclusion (If Eligible)
If the property sold is your main home, federal law may allow a significant exclusion. Under Internal Revenue Code Section 121, many taxpayers can exclude up to:
- $250,000 of gain for Single filers
- $500,000 of gain for Married Filing Jointly (if qualifying conditions are met)
The common standard is the 2-out-of-5 test: you generally must have owned and used the property as your principal residence for at least two years during the five-year period before sale. There are partial exclusions in some hardship cases, but those require deeper analysis.
Important: depreciation taken after May 6, 1997 on a home used for business or rental use is not excluded under Section 121 and may be taxed through recapture rules.
Step 4: Compute Depreciation Recapture
If the property was rented or used for business and you claimed depreciation deductions, that portion may be subject to unrecaptured Section 1250 gain, often taxed up to 25% federally. This can apply even when part of the remaining gain is excluded or taxed at lower long-term capital gains rates.
In practical terms, your gain is often split into:
- Depreciation recapture portion (commonly taxed up to 25%)
- Remaining capital gain portion (taxed at short-term ordinary or long-term capital gains rates)
Step 5: Check Whether NIIT Applies
Higher-income taxpayers may owe the Net Investment Income Tax (NIIT) of 3.8%. NIIT can apply to taxable gain from property sales if your modified adjusted gross income exceeds threshold levels. In basic planning models, NIIT is estimated by applying 3.8% to the lesser of net investment income or the amount by which income exceeds threshold.
NIIT thresholds are commonly:
- $200,000 for Single
- $250,000 for Married Filing Jointly
Step 6: Add State Tax Impact
State treatment varies widely. Some states tax capital gains as ordinary income, some use flat rates, and some have no state income tax. Because this can materially change your net proceeds, always run both federal and state estimates before listing.
2024 Federal Long-Term Capital Gains Data (Reference Table)
| Filing Status | 0% Rate Ceiling | 15% Rate Ceiling | 20% Rate Above |
|---|---|---|---|
| Single | $47,025 | $518,900 | Over $518,900 |
| Married Filing Jointly | $94,050 | $583,750 | Over $583,750 |
Key Exclusion and NIIT Threshold Comparison
| Tax Rule | Single | Married Filing Jointly | Why It Matters |
|---|---|---|---|
| Section 121 Home Sale Exclusion | Up to $250,000 | Up to $500,000 | Directly reduces taxable gain on qualifying primary residence sales. |
| NIIT Income Threshold | $200,000 | $250,000 | 3.8% surtax may apply to taxable investment income once threshold is exceeded. |
| Top Long-Term Capital Gains Threshold | Over $518,900 | Over $583,750 | Portions of gain above this range may be taxed at 20% federally. |
Worked Example: Primary Residence Sale
Suppose you sell your home for $800,000 and pay $48,000 in selling expenses. You bought it for $420,000, paid $9,000 in eligible closing costs, and made $71,000 in capital improvements. You did not claim depreciation. Your amount realized is $752,000 ($800,000 – $48,000). Your adjusted basis is $500,000 ($420,000 + $9,000 + $71,000). Your total gain is $252,000.
If you are a Single filer who meets the ownership and use test, you may exclude up to $250,000. That leaves roughly $2,000 taxable federally, before any additional surtaxes or state rules. In many real-world cases, this exclusion dramatically reduces tax liability, which is why eligibility analysis is the first planning checkpoint in owner-occupied sales.
Worked Example: Rental Property Sale
Assume sale price of $650,000 with $39,000 selling costs. Purchase price was $350,000, acquisition costs $8,000, improvements $42,000, depreciation claimed $20,000. Amount realized is $611,000. Adjusted basis is $380,000 ($350,000 + $8,000 + $42,000 – $20,000). Total gain is $231,000.
With rental property, Section 121 usually does not apply unless the property qualifies under mixed-use history rules. The $20,000 depreciation may be taxed at recapture rates up to 25%, and remaining gain is taxed by short-term or long-term rules depending on holding period. If your income is high enough, NIIT may also apply. This is why rental dispositions can create a larger-than-expected tax bill unless planned carefully.
Common Errors That Increase Tax Bills
- Forgetting to include eligible selling expenses in the amount realized calculation.
- Omitting documented capital improvements from basis.
- Confusing repairs with capital improvements.
- Ignoring depreciation recapture from prior returns.
- Assuming all gain qualifies for home sale exclusion.
- Using only federal rates and forgetting state taxes.
- Not accounting for NIIT at higher income levels.
Documents You Should Gather Before You Calculate
- Closing statement from your original purchase
- Settlement statement from the sale
- Capital improvement invoices and payment records
- Depreciation schedules from prior tax returns (if rental/business use)
- Records confirming occupancy and ownership periods
- State-specific tax guidance and prior-year return details
Planning Strategies Before You Sell
Tax planning is most effective when done before the property goes under contract. If you are close to a one-year holding period, waiting can shift gain from ordinary rates to long-term rates. If you are near Section 121 residency thresholds, adjusting sale timing may preserve exclusion eligibility. For rental owners, installment sale structures or 1031 exchange planning might defer or alter tax outcomes where legally appropriate.
You should also estimate your total taxable income for the sale year, not just the property gain in isolation. Capital gains brackets and NIIT exposure are sensitive to your full-year earnings, bonuses, business income, and other realized gains.
Where to Verify Rules and Forms
For official references, review IRS and legal resources directly:
- IRS Publication 523 (Selling Your Home)
- IRS Topic No. 409 (Capital Gains and Losses)
- Cornell Law School: 26 U.S. Code Section 121
Final Takeaway
To calculate income tax on a property sale correctly, do it in layers: compute amount realized and adjusted basis, identify total gain, separate recapture, apply exclusion rules, then apply federal capital gains treatment, NIIT, and state taxes. A strong estimate helps you set realistic net proceeds expectations and avoid tax surprises at filing time.
The calculator above gives you a practical estimate using widely recognized tax logic. For transactions with mixed-use occupancy, inherited basis issues, installment sales, 1031 exchange history, or entity ownership, use a qualified CPA or tax attorney for a return-level projection.