Capital Gains Tax Calculator
Estimate federal tax on a short- or long-term investment gain.
🔒 Runs entirely in your browser — nothing here is ever uploaded
About the Capital Gains Tax Calculator
Estimates federal tax owed on an investment gain, based on whether you held the asset short-term (taxed as ordinary income) or long-term (taxed at the lower 0%/15%/20% capital gains rates), stacked on top of your other taxable income for the year.
- Enter the Sale price and Cost basis (what you originally paid, plus any improvements).
- Enter your Other taxable income for the year — this determines which bracket the gain stacks into.
- Choose whether you held the asset Long-term (over 1 year) or Short-term (1 year or less).
- Read the estimated tax, effective rate, and net proceeds in the result panel.
A $20,000 long-term gain on top of $85,000 of other income falls entirely in the 15% bracket for a single filer in 2026, since $85,000 is already above the $49,450 threshold and $105,000 total stays under $545,500 — so the estimated tax is $3,000.
Single-filer federal figures only — married-filing-jointly thresholds are higher, and state capital gains taxes (where they apply) aren't included. High earners may also owe the 3.8% Net Investment Income Tax on top of this estimate; see the FAQ.
- • Holding an asset past the one-year mark before selling, if you can, moves the gain from ordinary rates (up to 37%) to the much lower long-term rates — often the single biggest lever you control.
- • Cost basis includes more than the purchase price — reinvested dividends and capital improvements (for property) increase your basis and reduce your taxable gain, so keep records.
- • A capital loss on another investment sold the same year can offset a gain (tax-loss harvesting) — not modeled here, but worth exploring with a tax professional if you're carrying losses.
- Kiplinger — IRS updates capital gains tax thresholds for 2026 — accessed 2026-08-25
Illustrative estimate only, not financial or tax advice. Verify figures with a licensed adviser or your local tax authority.