b2KIT

Capital Gains Tax Calculator

Estimate short-term and long-term capital gains tax on investments, real estate, and asset sales with holding period analysis.

Tested tool guide Tested browser tools Checked August 16, 2026

What Capital Gains Tax Calculator does and how it behaves

Enter an asset's purchase basis, expected sale value, holding period, and relevant tax information to estimate the tax associated with its gain. The calculator distinguishes short-term from long-term treatment and shows how that classification affects the estimate. The common mistake is treating the entire sale price as taxable income. Capital gains are generally measured from proceeds minus adjusted basis, although transaction costs, improvements, depreciation, prior losses, and asset-specific rules can change the taxable amount.

How the result is produced

1

Gain and holding period

The calculation first determines the difference between the entered sale amount and cost basis. It then uses the holding-period information to classify the result as short-term or long-term. This distinction matters because the two categories can receive different federal tax treatment. A negative difference represents a loss rather than a taxable gain.

2

Estimated tax

The estimated tax depends on the gain, its holding-period classification, and the tax information requested by the calculator. The result is a planning figure for the proposed transaction, not a completed tax return. Actual liability can change when the sale is combined with other income, gains, losses, deductions, carryovers, and asset-specific adjustments.

Good uses

  • Comparing the estimated tax from selling appreciated shares now with selling after their holding-period classification changes.
  • Setting aside money for a possible tax payment before completing the sale of investment real estate.
  • Estimating how much of an asset sale's proceeds may remain after capital gains tax.

Limits and checks

  • Confirm the adjusted basis rather than entering the purchase price automatically. Acquisition costs, eligible improvements, depreciation, return-of-capital distributions, and other adjustments may change basis.
  • Do not read the estimate as the tax on an isolated gain if you also have capital losses or carryovers. Netting rules and the rest of the year's transactions can materially change the final result.
  • Do not assume a general estimate covers every special rule. A principal residence, depreciated real estate, collectibles, qualified small business stock, inherited property, and installment sales can require treatment beyond a basic capital gains calculation.

Common questions

Can I use this calculator for the sale of my home?

It can provide a rough estimate based on the gain and holding period, but it may not determine the taxable gain from a home sale by itself. Eligibility for a principal-residence exclusion, ownership and use circumstances, selling expenses, improvements, and depreciation can alter the result. Use the estimate only after establishing the appropriate adjusted basis and taxable portion.

Why can the long-term estimate be lower than the short-term estimate?

For US federal tax purposes, short-term capital gains are generally taxed using ordinary income rates, while many long-term gains use separate preferential rate schedules. The actual difference depends on taxable income, filing status, and the kind of asset sold. Some gains, including certain collectibles and depreciation-related gains, can be subject to different treatment.

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