Capital Gains Tax Calculator
Estimate realized gain or loss, short-term and long-term taxable gain, capital-gains tax, and after-tax proceeds from a proposed sale.
Result
Estimate
Tax-year basis
How to interpret this result
Applicability and limits
Calculation basis
Formula
Calculation logicFormula definitions and substituted values.
Realized gain or loss
Sale proceeds ($) - (Adjusted cost basis ($) + Selling expenses ($))
Sale proceeds ($) - (Adjusted cost basis ($) + Selling expenses ($))Taxable gain after carryover
max(Realized gain or loss - Capital loss carryover applied ($), 0)
max(Realized gain or loss - Capital loss carryover applied ($), 0)Long Term Indicator
min(max(Holding period (days) - 365, 0), 1)
min(max(Holding period (days) - 365, 0), 1)Long-term taxable gain
Taxable gain after carryover * Long Term Indicator
Taxable gain after carryover * Long Term IndicatorShort-term taxable gain
Taxable gain after carryover - Long-term taxable gain
Taxable gain after carryover - Long-term taxable gainShort Term Tax
Short-term taxable gain * Short-term tax rate assumption (%) / 100
Short-term taxable gain * Short-term tax rate assumption (%) / 100Long Term Tax
Long-term taxable gain * Long-term capital-gains rate assumption (%) / 100
Long-term taxable gain * Long-term capital-gains rate assumption (%) / 100Estimated capital-gains tax
Short Term Tax + Long Term Tax
Short Term Tax + Long Term TaxNet proceeds after estimated tax
Sale proceeds ($) - Estimated capital-gains tax
Sale proceeds ($) - Estimated capital-gains taxTax-year basis
The selected tax year identifies the sale and rate assumptions. The one-year holding-period threshold is modeled as a planning indicator, not a substitute for date-level review.
The selected tax year identifies the sale and rate assumptions. The one-year holding-period threshold is modeled as a planning indicator, not a substitute for date-level review.How to interpret this result
The calculator first computes gain or loss from proceeds, basis, and selling expenses, then applies the entered carryover. A holding period over one year routes the taxable gain to the long-term rate; otherwise it routes to the short-term rate.
The calculator first computes gain or loss from proceeds, basis, and selling expenses, then applies the entered carryover. A holding period over one year routes the taxable gain to the long-term rate; otherwise it routes to the short-term rate.Applicability and limits
This is a planning estimate for a single proposed sale. It does not determine tax lots, wash sales, qualified dividends, NIIT, state tax, collectibles or depreciation recapture, home-sale exclusions, employee equity rules, or the final treatment of a net loss.
This is a planning estimate for a single proposed sale. It does not determine tax lots, wash sales, qualified dividends, NIIT, state tax, collectibles or depreciation recapture, home-sale exclusions, employee equity rules, or the final treatment of a net loss.Calculation basis
Gain or loss = proceeds − adjusted basis − selling expenses. Taxable gain after carryover = max(gain or loss − carryover, 0). The holding-period indicator is 1 when days exceed 365 and 0 otherwise. Estimated tax = short-term gain × short-term rate + long-term gain × long-term rate. Net proceeds after tax = proceeds − estimated tax.
Gain or loss = proceeds − adjusted basis − selling expenses. Taxable gain after carryover = max(gain or loss − carryover, 0). The holding-period indicator is 1 when days exceed 365 and 0 otherwise. Estimated tax = short-term gain × short-term rate + long-term gain × long-term rate. Net proceeds after tax = proceeds − estimated tax.What to check
- An investor enters basis, proceeds, holding-period, lot, and tax-rate assumptions to estimate a transaction outcome before selling or exercising.
- Use it before a sale, exercise, rebalance, tax-loss harvest, or crypto disposal.
- This is a planning estimate for a single proposed sale. It does not determine tax lots, wash sales, qualified dividends, NIIT, state tax, collectibles or depreciation recapture, home-sale exclusions, employee equity rules, or the final treatment of a net loss.
Related calculators
Capital Loss Carryover Calculator
Estimate current-year capital-loss use, the ordinary-income offset, remaining capital-loss carryover, and illustrative tax savings.
Open calculatorCost Basis and Gain/Loss Calculator
Estimate per-share basis, allocated basis, sale proceeds, gain or loss, and illustrative tax from one documented investment lot.
Open calculatorCrypto Tax Calculator
Estimate crypto capital gain or loss, short-term or long-term capital-gains tax, staking or mining ordinary-income tax, and total illustrative tax.
Open calculatorInterest and Dividend Income Tax Calculator
Interest and Dividend Income Tax Calculator. An investor separates ordinary interest, ordinary dividends, qualified dividends, and tax-exempt interest and applies entered ordinary and qualified...
Open calculator