Finance Calculators

Capital Gains Tax Calculator

Enter what you paid, what you sold for, how long you held, and your taxable income and filing status. The calculator stacks the gain on top of your income the way the IRS does — across the 0%, 15%, and 20% long-term brackets, or ordinary rates for short-term sales — and shows the estimated tax, the effective rate on the gain, and your after-tax profit.

Estimates only — not tax advice. Uses approximate 2026 federal brackets; long-term gains stack on top of ordinary income across the 0/15/20% brackets. Ignores state tax, the 3.8% NIIT (kicks in above $200k single / $250k married MAGI), wash-sale rules, and deductions. Consult a tax professional.

Short-term vs long-term: the one-year line

Hold an asset one year or less and the gain is short-term, taxed as ordinary income at rates up to 37%. Hold it more than one year and it becomes long-term, taxed at 0%, 15%, or 20% depending on income. Example: an $8,000 gain with $85,000 of other taxable income (single) costs about $1,200 long-term (15%) versus $1,760 short-term (22% bracket) — a $560 reward for holding past the anniversary. Near the one-year mark, waiting a few extra days is often the highest-return decision available.

Gains stack on top of your income

Long-term rates aren't a flat lookup — the gain sits on top of your ordinary income and can straddle brackets. For 2026 (approximate figures), the 0% rate covers taxable income up to about $49,450 single / $98,900 married filing jointly, and 15% runs to roughly $545,500 / $613,700. A retiree with $30,000 of income and a $25,000 long-term gain pays 0% on the slice up to the threshold and 15% only on the remainder — which is the basis of "tax-gain harvesting" in low-income years.

What this estimate leaves out

State taxes (0% in some states, over 13% in California), the 3.8% net investment income tax above $200,000 single / $250,000 married MAGI, depreciation recapture on rental property, the collectibles rate (28%), and the home-sale exclusion of $250,000/$500,000 on a primary residence. Losses matter too: capital losses offset gains dollar-for-dollar, then up to $3,000 of ordinary income per year, with the rest carried forward — watch the wash-sale rule if you rebuy within 30 days.

How to use this calculator

Enter your purchase price (cost basis), the sale price, how long you held the asset, and your other taxable income and filing status. The calculator stacks the gain on top of your income the way the IRS does, applies short-term ordinary rates or the 0/15/20% long-term brackets accordingly, and reports the tax, the effective rate on the gain, and your after-tax profit. Its best use is scenario comparison: run a sale as short-term versus long-term to see the reward for crossing the one-year mark, or model harvesting gains in a low-income year to capture the 0% bracket. Remember it's a federal estimate — add your state's rate, and watch for the 3.8% net investment income tax at higher incomes and the wash-sale rule when realizing losses.

Go deeper on the blog

FAQ

How is the holding period counted?

Start counting the day after you buy; the sale date counts. "More than one year" means at least a year and a day. For inherited assets the holding period is automatically long-term, and the cost basis steps up to the value at death.

Can I really pay 0% on long-term gains?

Yes - if your taxable income including the gain stays under the 0% threshold (about $49,450 single / $98,900 married for 2026), the gain in that zone is federally tax-free. Low-income years like early retirement or a sabbatical are prime windows to harvest gains free.

What about my losing investments?

Realized losses offset realized gains first, then up to $3,000 per year of ordinary income, and any excess carries forward indefinitely. Just avoid rebuying the same or a substantially identical asset within 30 days, or the wash-sale rule suspends the loss.

Do these rates apply to crypto?

Yes - the IRS treats cryptocurrency as property, so the same short/long-term rules and rates apply to every sale, swap, or purchase made with crypto. Each transaction is a taxable event with its own holding period.

Is this calculator exact?

No - it uses approximate 2026 federal brackets and ignores state tax, the 3.8% NIIT, deductions, and special asset rules. Use it to compare scenarios, and tax software or a professional for the real filing.

More free tools