Free calculator, 2026 rates

Capital Gains Tax Calculator 2026

In the US, a gain on something you held more than a year is taxed at 0%, 15% or 20%, and one held a year or less is taxed like salary, at 10% to 37%. A single filer pays 0% on long-term gains while taxable income stays at or below $49,450. Put in your sale below and you get the federal tax, the 3.8% surtax and your state's share.

Rates checked 22 October 2026
2026 IRS brackets 3.8% NIIT and state tax 12 countries

Your sale

Federal plus provincial, on your next dollar of income.
Purchase price plus fees
Sale price minus fees
How long you held it
Before deductions. We take off the 2026 standard deduction. Salary and other taxable income, before the personal allowance.
Optional. Leave at 0 for federal only.
Estimated tax on this sale
$3,000

    2026 federal capital gains tax rates

    Long-term rates depend on your taxable income, and short-term gains go through the ordinary brackets. Both stack the gain on top of your other income.

    Held more than a year

    The rate that applies to each slice of taxable income, gain included.

    RateSingle, up toMarried jointly, up toHead of household, up to
    0%$49,450$98,900$66,200
    15%$545,500$613,700$579,600
    20%aboveaboveabove

    Held a year or less

    Short-term gains are taxed as ordinary income, bracket by bracket.

    RateSingle, up toMarried jointly, up toHead of household, up to
    10%$12,400$24,800$17,700
    12%$50,400$100,800$67,450
    22%$105,700$211,400$105,700
    24%$201,775$403,550$201,750
    32%$256,225$512,450$256,200
    35%$640,600$768,700$640,600
    37%aboveaboveabove

    Net Investment Income Tax: 3.8%

    An extra 3.8% applies to investment income, gains included, once your modified AGI passes $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It's charged on whichever is smaller: your investment income or the amount over the threshold.

    Standard deduction 2026

    $16,100 for single filers, $32,200 for married couples filing jointly and $24,150 for heads of household. Taxable income is what's left after it, and that's the number the brackets above read.

    Two sales, worked through

    The same arithmetic the calculator runs, with 2026 figures.

    Single filer

    $20,000 gain on shares, $70,000 salary

    • Taxable income before the sale $53,900
    • Gain $20,000
    • Tax if held more than a year $3,000
    • Tax if held a year or less $4,400

    After the $16,100 standard deduction, this filer's income already sits past the 0% band, so the whole gain is taxed at 15% if it's long-term. Sold inside a year, it lands in the 22% bracket instead. Waiting past the one-year mark is worth $1,400.

    Married filing jointly

    $40,000 gain on an ETF, $80,000 household income

    • Taxable income before the sale $47,800
    • Gain $40,000
    • Tax if held more than a year $0
    • Tax if held a year or less $4,800

    Taxable income plus the gain stays under the $98,900 ceiling of the 0% band, so this couple owes no federal tax on a long-term sale. The same gain taken short-term costs $4,800.

    Capital gains tax on shares in 12 countries

    Headline rates for a private investor selling listed shares in 2026, with the yearly amount you can make before any tax is due.

    CountryRate on the gainTax-free each yearGo deeper
    United States0% to 20% long-term, 10% to 37% short-term0% band up to $49,450 (single)US filing pack
    United Kingdom18% basic rate, 24% higher rate£3,000UK share CGT calculator
    CanadaHalf the gain, at your marginal rateNoneAdjusted cost base calculator
    AustraliaYour marginal rate, half the gain after 12 monthsNoneAustralian CGT calculator
    Germany26.375% (plus church tax if you pay it)€1,000 (€2,000 for couples)German CGT guide
    France31.4% flat taxNoneFrance filing pack
    Spain19% to 30%, in bandsNoneSpanish CGT guide
    Italy26% flatNoneItaly filing pack
    Ireland31% on shares sold from 7 October 2026, 33% before (ETFs pay exit tax instead)€1,270Deemed disposal calculator
    Sweden30% outside an ISK accountNoneMulti-broker tax report
    Denmark27%, then 42% above DKK 79,400NoneMulti-broker tax report
    Switzerland0% for private investorsNot neededMulti-broker tax report

    Legal ways to owe less

    Most of the saving comes from when you sell and which lots you sell, not from anything exotic.

    Hold past one year

    In the US and Australia the rate drops once you've held for more than a year. If you're a few weeks short, the calculator shows what waiting is worth.

    Sell losers to offset winners

    A $5,000 gain and a $3,000 loss leave $2,000 to tax. Watch the 30-day wash sale window if you buy back in. Tax-loss harvesting guide

    Use the 0% band

    In a year with low income (a gap year, early retirement), long-term gains up to the 0% ceiling cost nothing federally. Some investors sell and rebuy to reset their basis higher.

    Keep trades in tax-advantaged accounts

    Gains inside a 401(k), IRA, Roth IRA or a UK ISA aren't taxed when you sell, so that's the place for the positions you trade most.

    Choose which lots you sell

    If you bought the same stock at different prices, selling the expensive lots first shrinks the gain. FIFO is the default, and specific identification lets you pick. FIFO vs LIFO guide

    Give shares, not cash

    Donating shares you've held more than a year to a charity avoids the tax on the gain, and the charity gets the full value of the shares.

    Your real number comes from every lot you sold

    A calculator prices one sale. Your return adds up every sale of the year, across every broker, and that's where AllInvestView does the work.

    United States

    Form 8949 rows and Schedule D totals, ready to check

    AllInvestView keeps your cost basis lot by lot across every account you connect or import, so each sale gets the right purchase price and the right holding period. The US filing pack turns your stock sales into Form 8949 columns (a) to (h), sorts them into boxes A to F and totals Schedule D lines 7, 15 and 16. Wash sales are matched across all your accounts, not only inside one broker, and an IRA purchase is treated as a permanent disallowance.

    See the US filing pack
    AllInvestView US filing pack showing Form 8949 box A and box D disposal rows, the box totals and Schedule D lines 7, 15 and 16 US filing pack showing Form 8949 box A and box D disposal rows, the box totals and Schedule D lines 7, 15 and 16
    Box D totalling 17,564.50 USD, Schedule D line 7 at 698.00 USD, line 15 at 17,564.50 USD and line 16 at 18,262.50 USD. Fixture filer, invented figures.View full-size View full-size
    Before you sell

    See the tax on every position before you sell it

    The capital gains report lists what you've realized this year and what each open position would owe if you sold it today. For each position it compares FIFO, LIFO, HIFO and average cost and marks the one that costs least, under your country's rules. Export it to PDF, Excel or CSV for your accountant, or open the filing pack for your country when it's time to file.

    See the multi-broker tax report
    AllInvestView AllInvestView capital gains tax report with realized and unrealized gains, estimated tax and an If sold column per position AllInvestView capital gains tax report with realized and unrealized gains, estimated tax and an If sold column per position
    The tax report on a demo portfolio: unrealized and realized gains, estimated tax, dividends and an If sold figure per position. Seeded demo data.View full-size View full-size
    Track the gains before tax time

    All your brokers in one place, with the tax worked out

    Connect your brokers or import your history, and AllInvestView keeps the cost basis, the holding periods and the gains for stocks, ETFs, bonds, options and crypto in one view.

    Cost basis lot by lot Filing packs by country Wash sales across accounts

    Capital gains tax questions

    How is capital gains tax calculated?

    Take the sale price, subtract what you paid including fees, and the difference is your gain. In the US a gain on something you held more than a year is taxed at 0%, 15% or 20%, depending on your taxable income, and a gain on something held a year or less is taxed like salary, at 10% to 37%. The gain sits on top of your other income, so part of it can fall in one band and the rest in the next.

    What are the 2026 long-term capital gains tax brackets?

    For 2026, single filers pay 0% on long-term gains while taxable income stays at or under $49,450, 15% up to $545,500 and 20% above that. Married couples filing jointly get 0% up to $98,900 and 15% up to $613,700. Heads of household get 0% up to $66,200 and 15% up to $579,600.

    How long do I have to hold an investment for the long-term rate?

    More than one year. The count starts the day after you buy, so a sale on the first anniversary of the purchase is still short-term and a sale the day after it is long-term.

    Do I pay capital gains tax if I don't sell?

    No. A share that has doubled but is still in your account owes nothing until you sell it. Funds are the exception: capital gain distributions from a fund are taxed in the year you receive them even if you keep your shares, and Ireland taxes most funds every eight years under deemed disposal.

    Can losses reduce my capital gains tax?

    Yes. Losses offset gains first. If losses are bigger than gains, up to $3,000 of the difference ($1,500 if married filing separately) comes off your other income and the rest carries forward to later years. A loss doesn't count if you buy the same or a substantially identical security within 30 days before or after the sale, which is the wash sale rule.

    Do I owe state tax on capital gains as well?

    Usually. Most states tax capital gains as ordinary income at their own rates, and a few states have no income tax at all. Put your state rate in the calculator and it adds that amount to the federal figure.

    Is cryptocurrency taxed as a capital gain?

    In the US, UK and most of Europe, yes. Selling crypto, swapping one coin for another or spending it counts as a disposal. Germany is the well-known exception: crypto held for more than a year is tax-free there.

    Which countries have no capital gains tax on shares?

    Switzerland does not tax private investors on gains from shares they hold privately, and Singapore and Hong Kong have no general capital gains tax. Someone who trades so often that the tax office treats it as a business can be taxed on the profits as income in any of them.

    Sources and how the estimate works

    The US figure assumes the standard deduction, treats the gain as your only investment income for the 3.8% surtax, and applies your state rate to the whole gain. Collectibles, depreciation on rental property and qualified small business stock follow different rules. This is an estimate for planning, not tax advice.