Estimate Your Capital Gains Tax
Enter your purchase and sale details below to estimate federal capital gains tax, optional NIIT, and state tax.
This calculator provides an estimate for planning only. It does not include exclusions (like primary residence rules), depreciation recapture, wash sale adjustments, or professional tax advice.
What Is Capital Gains Tax?
Capital gains tax is the tax you owe when you sell an investment or asset for more than your adjusted cost basis. Common assets include stocks, ETFs, real estate, business interests, and collectibles. In simple terms, if your net sale proceeds are higher than what you paid (plus qualifying costs), the difference is a capital gain.
The tax rate depends heavily on how long you held the asset. Short-term gains are usually taxed at ordinary income tax rates, while long-term gains generally qualify for lower federal rates.
How This Capital Gains Tax Calculator Works
This tool estimates gain and tax in four steps:
- Adjusted cost basis: purchase price + purchase costs + capital improvements
- Net sale proceeds: sale price - selling costs
- Capital gain (or loss): net sale proceeds - adjusted cost basis
- Estimated tax: based on holding period, filing status, income, optional NIIT, and state rate
If your calculation produces a loss, the calculator shows no gain tax due. Real-world tax handling of losses can involve annual deduction limits and carryforwards.
Key Inputs Explained
Purchase Price and Purchase Costs
Your purchase price is what you originally paid. Purchase-related closing costs that are capitalized may increase basis and reduce your eventual taxable gain.
Capital Improvements
Improvements are major upgrades that add value or extend useful life (for example, a new roof or full remodel). Repairs and maintenance generally are not added to basis.
Selling Costs
These are costs directly tied to sale, such as commissions and transfer fees. Higher selling costs reduce net proceeds and lower taxable gain.
Holding Period
A holding period of at least 12 months generally means long-term capital gains treatment. Less than 12 months usually means short-term treatment at ordinary tax rates.
Taxable Income and Filing Status
Your taxable income determines where your gain lands in federal tax brackets. Filing status changes bracket thresholds for both ordinary and long-term rates.
Short-Term vs. Long-Term Capital Gains
- Short-term: held less than 12 months; taxed like ordinary income.
- Long-term: held 12 months or longer; usually taxed at 0%, 15%, or 20% federal rates, depending on total taxable income.
For higher-income households, the Net Investment Income Tax (NIIT) may add 3.8% on some or all of the gain.
Simple Example
Suppose you bought an asset for $250,000, paid $5,000 in acquisition costs, made $30,000 in improvements, then sold it for $400,000 with $24,000 in selling expenses:
- Adjusted basis: $250,000 + $5,000 + $30,000 = $285,000
- Net proceeds: $400,000 - $24,000 = $376,000
- Gain: $376,000 - $285,000 = $91,000
The actual tax on that $91,000 depends on whether the gain is short-term or long-term, your income level, and your filing status.
Ways to Potentially Reduce Capital Gains Tax
- Hold appreciated assets for at least one year to qualify for long-term rates.
- Use tax-loss harvesting to offset gains with losses.
- Review basis carefully and keep records of improvements and costs.
- Spread gains across tax years when possible to manage bracket impact.
- Consider charitable gifting of appreciated assets in some cases.
Common Mistakes to Avoid
- Forgetting to include eligible basis adjustments.
- Ignoring selling costs when estimating net proceeds.
- Assuming all gains are taxed at a flat percentage.
- Not accounting for state taxes or NIIT.
- Confusing gross sale price with taxable gain.
Important Disclaimer
This capital gains tax calculator is educational and provides estimates only. Tax laws change, and individual facts matter. Rules around primary residence exclusions, depreciation recapture, collectibles rates, and pass-through entities can materially change your real tax result. For filing decisions, consult a qualified CPA, EA, or tax attorney.