Property Sale Capital Gains Tax Calculator
Estimate only. Tax law is complex (depreciation recapture, passive losses, state rules, and special exclusions are not fully modeled). Consult a CPA or tax attorney for filing decisions.
How this calculator works
This capital gains tax calculator on sale of property estimates your potential tax bill when you sell real estate. It combines your cost basis, selling costs, ownership period, filing status, and income to approximate federal long-term or short-term capital gains tax, optional NIIT, and a state tax estimate.
It is designed to be practical and fast. Enter your numbers, click calculate, and you get a clear breakdown of gain, exclusions, taxable gain, and estimated taxes.
Core formula used for real estate capital gains
Step 1: Calculate adjusted basis
Adjusted Basis = Purchase Price + Purchase Costs + Capital Improvements - Depreciation Claimed
Your adjusted basis is your “tax cost” in the property. Improvements increase basis. Depreciation lowers basis and can increase taxable gain.
Step 2: Calculate amount realized
Amount Realized = Selling Price - Selling Costs
Selling costs can include brokerage commission, escrow fees, legal fees, and transfer charges tied to the sale.
Step 3: Calculate gain
Gain = Amount Realized - Adjusted Basis
- If gain is positive, tax may apply.
- If gain is zero or negative, no capital gains tax is usually due.
Primary residence exclusion
If the property is your primary residence and you meet the ownership/use requirements (commonly the 2-out-of-5-year rule), some gain may be excluded:
- $250,000 exclusion for single filers
- $500,000 exclusion for married filing jointly
This calculator applies that exclusion when you choose primary residence and enter at least 24 months owned. Real-world eligibility details can be more nuanced.
Short-term vs long-term capital gains
- Short-term gain: property held 12 months or less. Taxed at ordinary income rates.
- Long-term gain: held for more than 12 months. Taxed at preferential capital gains rates (generally 0%, 15%, or 20% federally, depending on income).
For long-term gains, this calculator uses a tiered federal estimate based on your taxable income plus gain. For short-term gains, it uses your marginal tax rate input.
What inputs matter most
1) Improvements and selling costs
People often undercount these. Tracking receipts and closing statements can materially lower taxable gain.
2) Depreciation
If the property was rented, depreciation typically reduces basis and can increase gain at sale. This calculator includes a simple depreciation input to improve estimates.
3) Income level
Your tax bracket can shift your long-term rate and may trigger NIIT. Entering accurate taxable income gives you a better estimate.
Ways to reduce tax legally before selling property
- Document all eligible capital improvements.
- Include allowable selling costs in your calculations.
- If possible, qualify for primary residence exclusion rules.
- Plan timing of sale across tax years when income is lower.
- For investment property, discuss 1031 exchange strategies with a qualified professional.
Example scenario
Suppose you bought a property for $300,000, paid $6,000 in buying costs, added $25,000 in improvements, sold for $500,000, and paid $30,000 in selling costs.
- Adjusted basis = $300,000 + $6,000 + $25,000 = $331,000
- Amount realized = $500,000 - $30,000 = $470,000
- Total gain = $470,000 - $331,000 = $139,000
If this is a qualifying primary residence, much or all of that gain may be excluded. If it is investment property, the taxable gain is typically the full amount (subject to specific tax rules).
Important limitations
This is an educational estimate tool, not tax advice. It does not fully model:
- Depreciation recapture rates and character
- State-specific deductions/exemptions
- Installment sales
- Partial exclusion edge cases
- Complex ownership structures and trust taxation
For exact numbers, always run your final figures with a CPA or enrolled agent before filing.