Capital Gains Tax Calculator

Calculate tax on investment gains based on holding period and income level.

Scratchpad (not saved)

$

Original cost of the investment

$

Price at which you sold (or plan to sell)

How long you held the asset

$

Your other taxable income (for determining tax rate)

What This Calculator Does

Estimate tax impact from asset sales by modeling gain amount and holding period classification.

It combines Purchase Price (Cost Basis), Sale Price, Holding Period, Other Taxable Income to estimate Capital Loss, Gain/Loss, Tax Type.

Formula & Method

Core equations: Capital gain or loss: G = S - B where S is the sale price and B is the cost basis. Long-term gains (held > 1 year) are taxed at 0%, 15%, or 20% depending on income, plus a 3.8% NIIT surcharge above threshold. Short-term gains are taxed as ordinary income. Effective rate: r_{eff} = \frac{T}{G} \times 100 Inputs are applied in base units, then derived metrics are computed from the same equations and rounded for display.

Notation used in the formulas: R = Capital Loss; x_{1} = Purchase Price (Cost Basis); x_{2} = Sale Price; x_{3} = Holding Period; x_{4} = Other Taxable Income; x_{5} = Filing Status.

Method summary: inputs are normalized to consistent units, core equations are evaluated, then secondary values are derived and rounded for display.

Use this before selling investments to compare after-tax proceeds across timing scenarios.

Inputs Used

  • Purchase Price (Cost Basis): Original cost of the investment
  • Sale Price: Price at which you sold (or plan to sell)
  • Holding Period: How long you held the asset
  • Other Taxable Income: Your other taxable income (for determining tax rate)
  • Filing Status: Used directly in the calculation.

Related Calculators