b2KIT

Capital Gains Tax Calculator

Estimate capital gains taxes on investments with short-term vs long-term rates, cost basis methods, and tax bracket analysis.

Tested tool guide Tested browser tools Checked August 16, 2026

What Capital Gains Tax Calculator does and how it behaves

An investment sale can create a taxable gain even when the cash received is not all profit. This calculator compares sale proceeds with the selected cost basis, classifies the result as short-term or long-term, and applies tax-bracket information to estimate the tax impact. The common source of confusion is basis: it may depend on the purchase lot or permitted basis method, not merely the first price remembered. The result is for planning and may differ from the amount reported on a tax return.

How the result is produced

1

Gain and basis

The calculation first compares sale proceeds with the cost basis assigned to the units sold. When multiple purchase lots are involved, the selected basis method can change which acquisition costs are matched to the sale and therefore change the realized gain or loss. Holding dates are then used to distinguish short-term from long-term treatment.

2

Holding period and rates

The estimated gain is evaluated against the applicable short-term or long-term rate treatment and the tax-bracket information supplied to the calculator. Short-term gains are generally taxed through ordinary-income brackets, while long-term gains use separate federal rate rules. The output estimates tax impact; it does not reconstruct Form 8949 or Schedule D.

Good uses

  • Compare the estimated tax effect of selling now with selling after an investment has been held for more than one year.
  • Compare supported cost-basis methods when a sale draws from shares purchased in several lots at different prices.
  • Estimate how much of an investment-sale profit may need to be reserved for taxes before spending the proceeds.

Limits and checks

  • Other income, capital losses, loss carryovers, and additional transactions can change the final tax after gains and losses are netted.
  • A favorable basis-method result does not establish that the method is permitted for the security or supported by the taxpayer's records.
  • Confirm whether separate state taxes, the net investment income tax, and special treatment for assets such as collectibles are included before relying on the total.

Common questions

Why is the estimate not simply the gain multiplied by a published long-term rate?

The relevant treatment depends on the holding period and the rest of the taxpayer's taxable income. A long-term gain can interact with more than one rate band, while a short-term gain generally joins ordinary income. Special asset categories can follow different rules, so one headline percentage may not reproduce the calculator's estimate.

Can I use average cost for any investment?

No. Average basis is generally available for eligible mutual fund shares and certain shares acquired through dividend reinvestment plans, subject to tax rules and elections. It is not a universal alternative for individual stocks. The calculator can compare basis outcomes, but the method reported must be permitted and supported by adequate records.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools