US Capital gains tax calculator
Short and long-term capital gains tax estimates by region.
Your gain
Estimates only
Capital gains tax depends on your full tax picture, allowable losses, deferrals, and local rules not modelled here. Consult a tax professional before filing.
How US capital gains tax is calculated
A capital gain is profit from selling an asset for more than its cost basis:
Capital gain = sale price − cost basis − selling expenses
In the US, how long you held the asset is everything — it's a hard one-year cliff.
Worked example (long-term)
Buy 100 shares at $50 ($5,000 basis). Sell after 2 years at $90 ($9,000), $20 commission.
- Gain: $9,000 − $5,000 − $20 = $3,980
- Held > 1 year → long-term; $90,000 income (single) → 15% LTCG bracket
- Tax: $3,980 × 15% = $597
Sold at 6 months instead, the whole gain is taxed at your ordinary rate (22%) = $876 — nearly 50% more for selling early.
Short-term vs long-term
- Short-term (≤ 1 year): ordinary income rates, up to 37%.
- Long-term (> 1 year): 0% / 15% / 20% by income.
- NIIT: extra 3.8% on net investment income above $200k (single) / $250k (MFJ).
Wash-sale rule and basis
You can't claim a loss if you buy a substantially identical security within 30 days before or after the sale — the loss is disallowed and added to the new basis. Track cost basis carefully, including reinvested dividends, or you'll overpay tax on phantom gains.
Common mistakes
- Selling at 11 months. Wait the extra month for long-term rates.
- Triggering a wash sale while tax-loss harvesting.
- Forgetting the $250k/$500k home-sale exclusion.
What this doesn't cover
- State capital gains tax (most states tax as ordinary income)
- Section 1031 like-kind exchanges
- Section 1250 unrecaptured depreciation
Related calculators
Related guides
Key terms
Frequently asked questions
What's the difference between short-term and long-term capital gains?
How is capital gains tax calculated?
Do I owe capital gains tax on my primary residence?
Can I offset capital gains with losses?
Embed this calculator
Free to embed on your website, blog, or resource page — no signup, no fees, no API key. The calculator runs entirely in the visitor's browser.
<iframe src="https://financecalcapp.com/embed/capital-gains/us/" width="100%" height="680" frameborder="0" title="Capital Gains Tax Calculator" loading="lazy" ></iframe> <p>Free <a href="https://financecalcapp.com/calculators/capital-gains/us/">Capital Gains Tax Calculator</a> by <a href="https://financecalcapp.com">Finance Calc App</a></p>