Capital Gains Tax on Property Calculator
How to use this capital gains tax on property calculator
When you sell real estate, your tax bill depends on much more than the difference between purchase price and sale price. This calculator helps you estimate tax by considering adjusted cost basis, selling expenses, depreciation recapture, home sale exclusion, federal rates, state tax rate, and optional NIIT.
The goal is simple: help you estimate your potential after-tax proceeds before you list, negotiate, or close. It is useful for homeowners, landlords, and investors planning a sale.
The core capital gains formula for property
Step 1: Calculate adjusted basis
Adjusted basis is usually your original purchase price plus qualified acquisition costs and capital improvements, minus depreciation taken (for rental/investment property).
- Adjusted basis = Purchase price + Purchase costs + Improvements − Depreciation
Step 2: Calculate net sale proceeds
Your sale price is reduced by transaction costs, such as agent commissions, legal fees, transfer taxes, and certain closing costs.
- Net proceeds = Sale price − Selling costs
Step 3: Find total gain
- Total gain = Net proceeds − Adjusted basis
If this number is negative, you generally have a capital loss (subject to tax rules and limits). If positive, parts of the gain may be taxed differently.
What can change your property tax outcome
1) Primary residence exclusion
If the property was your principal residence and you meet the ownership/use test, you may exclude up to $250,000 of gain (single) or $500,000 (married filing jointly). This can dramatically reduce or even eliminate taxable gain.
2) Short-term vs long-term gains
Property held less than one year is generally taxed as short-term gain at ordinary income rates. Long-term gain (more than one year) is usually taxed at preferential rates (0%, 15%, or 20% federally).
3) Depreciation recapture for rentals
If you claimed depreciation while the property was rented, that portion of gain can be taxed at a special recapture rate (often up to 25% federally). This is separate from standard long-term capital gain treatment.
4) State taxes and NIIT
Many states tax capital gains as regular income or through their own capital gain rules. Higher-income sellers may also owe the 3.8% Net Investment Income Tax (NIIT).
Example scenario
Suppose you bought a property for $300,000, spent $40,000 on major improvements, and sold it for $520,000. After commissions and closing costs, your net proceeds are lower. Your adjusted basis and filing status determine how much of that gain is taxable, and your tax depends on whether it qualifies for exclusion or rental recapture.
With this calculator, you can quickly test different assumptions (sale price, taxable income, state rate, or exclusion eligibility) and see how each one changes your final estimate.
Ways to potentially reduce capital gains tax legally
- Track and document all eligible capital improvements.
- Include allowable acquisition and selling costs in your basis/proceeds math.
- Time the sale to qualify for long-term treatment instead of short-term rates.
- If eligible, use the principal residence exclusion correctly.
- For investment property, explore 1031 exchange rules with a qualified professional.
- Coordinate sale timing with your broader annual income to manage bracket impact.
Frequently asked questions
Does this calculator file my taxes?
No. It provides an estimate for planning purposes only.
Can I use this for inherited property?
Inherited property often gets a stepped-up basis, which changes gain calculations. You can still use this tool, but you should enter the correct basis and confirm details with a tax advisor.
Are property taxes included here?
No. This tool estimates tax on capital gain from sale, not annual property tax.
Is every state handled exactly?
State tax is simplified as a flat percentage input for planning convenience. Actual state treatment can include deductions, exemptions, surtaxes, or different classifications.
Final note
A property sale can involve large dollar amounts, so even small planning changes can have meaningful tax impact. Use this calculator early in your decision process, compare scenarios, and then validate your numbers with a CPA or tax attorney before closing.