Estimate capital gains tax on investments (short vs long-term rates).
📈 US capital gains: held more than 1 year = long-term (0/15/20% by 2026 taxable income). Held 1 year or less = short-term (ordinary income rate). Gains stack on top of ordinary income for bracket purposes (long-term brackets and the short-term marginal rate are based on income plus gain). Simplified — excludes NIIT and state tax.
The Capital Gains Tax Estimator is based on the following formula:
Gain = sale − basis Tax = Σ (bracket share of gain × bracket rate) Net = gain − tax
Variables: Gain = Capital gain ($) sale = Sale price ($) basis = Purchase price plus buying and selling costs ($) bracket share = Slice of the gain falling inside each long-term bracket ($) bracket rate = Rate for that slice (0%, 15%, or 20% for long-term gains) Net = After-tax gain ($)
Basis is usually the purchase price plus costs. Long-term gains (held more than 1 year) stack on top of your ordinary income and each 0%/15%/20% bracket is applied to the slice of the gain falling inside it, so the rate shown is a blended effective rate; short-term gains are added to ordinary income and taxed at those brackets.
Worked example: Step 1: basis = $50,000, sale = $70,000 → gain = $20,000, held more than 1 year so it is long-term. Step 2: single filer with $40,000 of taxable ordinary income; the 0% bracket reaches $49,450 (2026 thresholds), leaving $9,450 of headroom. Step 3: first $9,450 of the gain is taxed at 0% → $0 tax. Step 4: remaining $10,550 of the gain is taxed at 15% → 10,550 × 0.15 = $1,582.50. Result: tax is about $1,583 (a blended effective rate of about 7.9%), leaving a net gain of about $18,417.
Disclaimer: This calculator is for informational and educational purposes only and does not constitute financial, investment, or legal advice. Calculated results are estimates based on the inputs you provide; actual figures may vary. Always consult a qualified professional before making financial decisions.
When you sell an investment for more than you paid, the profit is a capital gain and is taxed. How long you held the asset dramatically changes the rate. This estimator applies US federal rules.
The difference is huge. A $10,000 gain in the 24% bracket: short-term costs $2,400 in tax; long-term costs $1,500 (a 37.5% tax saving). For high earners near the top bracket, holding over 1 year can save thousands.
You bought 100 shares at $50 ($5,000 total) and sell them at $80 ($8,000) after 14 months. Your gain is $3,000, and because you held over a year it qualifies as long-term. If your taxable income puts you in the 15% long-term bracket, you owe $450 in federal tax. Had you sold just a few weeks earlier, before the one-year mark (short-term), while in the 24% ordinary bracket, the same gain would cost $720 — holding past the one-year mark saved $270.
More tools you might find useful
Total ownership cost: fuel, insurance, maintenance, depreciation, financing.
Work out the lease payment, APR equivalent, and total lease cost.
Calculate true value of cash back rewards after annual fees.
CD maturity value plus early-withdrawal penalty simulation.