Capital Gains Tax Calculator
Capital gains tax is a levy assessed on the profit realized from the sale of a non-inventory asset, such as stocks, bonds, or real estate. A capital gains tax calculator estimates the tax liability owed on investment profits by applying federal and state tax rates. It distinguishes between short-term capital gains, which are taxed at ordinary income rates, and long-term capital gains, which benefit from lower preferential rates. Investors and financial planners use this tool to estimate tax obligations and optimize the timing of asset sales.
Enter purchase price, sale price, holding period, filing status, your other taxable income, and an optional state rate. The calculator returns the gain, its classification, the estimated federal capital gains tax, optional state tax, and after-tax proceeds.
Quick Answer
Estimate federal and state taxes owed on your investment profits. Enter your purchase price, selling price, holding period, and filing status.
e.g. 10,000
e.g. 18,000
Used to find your bracket; capital gain stacks on top. · e.g. 80,000
Many states tax capital gains at ordinary rates. Set to 0 for no state estimate. · e.g. 0
About this estimate
Long-term capital gains use 2025 federal LTCG brackets (0/15/20%). Short-term gains are taxed as ordinary income using 2025 federal income tax brackets. The gain is stacked on top of your other taxable income to find the marginal bracket. The Net Investment Income Tax (3.8% NIIT) is not modeled.
Tax estimate only. Not tax, legal, or financial advice. Real returns include carryover losses, AMT, basis adjustments, and state-specific treatment.
Total estimated tax
$1,200.00
Gain $8,000.00 (long-term)
Short-term gains stack on top of ordinary income at marginal brackets. Long-term gains use the preferential 0/15/20% bracket system. Many states tax capital gains the same as ordinary income; a few (Washington, Nevada, et cetera) do not tax them at all.
Examples
$10k → $18k · long-term · single · $80k income · 0% state
Gain $8k · fed tax ≈ $1,200
$10k → $18k · short-term · single · $80k income · 0% state
Gain $8k · fed tax ≈ $1,920 (24%)
$50k → $100k · long-term · married jointly · $200k income · 5% state
Gain $50k · total tax ≈ $10,000
$10k → $9k · long-term
Capital loss; no tax (loss may offset other gains)
How it works
The basic math is gain = sale − basis. The tax depends on whether the gain is long-term or short-term and where it falls in the federal bracket structure once stacked on top of other income.
Gain · sale_price − purchase_price
Long-term · stack gain on income; apply 0/15/20% LTCG brackets
Short-term · stack gain on income; apply ordinary 10-37% brackets
Net Investment Income Tax (3.8% NIIT) above the income threshold and state-specific treatment are not modeled.
Related money calculators
- Tax bracket calculator for the marginal-vs-effective rate breakdown.
- Future value calculator for projecting what a position might be worth.
- CAGR calculator for annualized return over a holding period.
- Paycheck calculator for the broader take-home pay context.
- All money calculators.
Disclaimer. Tax estimate only. Does not model basis adjustments, wash-sale rules, AMT, NIIT, carryover losses, or state-specific treatment. Not tax, legal, or financial advice. Consult a tax professional before acting on the output.
Related Calculators
More tools from Money



