StockAvg

Long-Term Capital Gains Tax Calculator

Type the sale, how long you held it, your filing status and your state. This page is the two layers a single-rate calculator leaves out: the holding period picks the rate table, and the state comes on top. It answers the taxable gain, the bracket that gain actually falls in, the federal tax, the state tax, the effective rate and what is left after both. A long-term capital gains tax calculator and a short-term capital gains tax calculator are the same tool here — long and short are two routes through one page, not two pages.

The sale

Shares sold The whole position is sold at one price — there is no field for selling part of it.
Buy price per share
Sell price per share No price feed anywhere on this page. Both prices are yours to type.
Buy commission or fee — optional
Given as a percent, the buy fee is taken on the money you paid in. Empty counts as zero.
Sell commission or fee — optional
Given as a percent, the sell fee is taken on the gross proceeds of the sale.

The holding period — this is what picks the table

How long you held the shares — in months More than 12 months is a long-term gain and takes the 0%, 15% and 20% ladder. 12 months or fewer is a short-term gain and takes the ordinary brackets. This one field is the difference between the two tables below.
Filing status The thresholds in both federal tables depend on this. Nothing is assumed for you.
Taxable income for the year — not counting this sale Your ordinary income fills the bands first, which is what decides how much of the gain lands in each one. Leave it empty and it counts as zero.

The state layer

State
Your state rate — as a percent This page keeps no state table and does not guess one. Nine states tax no personal income — Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington and Wyoming — and picking one turns this box off at zero. Everywhere else the rate is the one you type, applied once to the whole gain.
Taxable gain —
Holding period —
Bracket the gain reaches — federal —
Federal tax —
State tax —
Effective rate — total tax ÷ gain —
After-tax net — proceeds less both taxes —

This page works out capital gains tax on one sale, split into federal and state. Nothing is calculated yet.

The federal tables this page uses

Both tables below are the 2026 figures, transcribed from IRS Rev. Proc. 2025-32 (taxable years beginning in 2026). They are printed here so you can check the arithmetic against the same numbers the page used, and so the year is not something you have to take on trust.

Maximum capital gains rate — §1(j)(5)(B). A gain is taxed at 0% up to the first amount, 15% up to the second, and 20% above it.

Filing status0% up to15% up toabove that
Single49,450545,50020%
Married filing jointly98,900613,70020%
Married filing separately49,450306,85020%
Head of household66,200579,60020%

Ordinary brackets — §1(j)(2). Used only for a short-term gain, which is taxed at these rates rather than the preferential ones.

RateSingleMarried filing jointlyHead of household
10%up to 12,400up to 24,800up to 17,700
12%up to 50,400up to 100,800up to 67,450
22%up to 105,700up to 211,400up to 105,700
24%up to 201,775up to 403,550up to 201,750
32%up to 256,225up to 512,450up to 256,200
35%up to 640,600up to 768,700up to 640,600
37%above thatabove thatabove that

Married filing separately uses the single brackets for ordinary income as well, but its own 15% capital gains ceiling of 306,850.

How the two layers work

The sale part is the same four steps as anywhere on this site: the cost is the shares times the buy price plus the buy fee, the net proceeds are the shares times the sell price less the sell fee, the taxable gain is the difference, and a fee on either side sits inside the gain rather than beside it.

What this page adds is what happens after the gain is known.

The holding period decides which table applies. More than one year — which is what the month box tests, twelve months or fewer being short term — and the gain takes the preferential ladder: nothing on the part that fits under the 0% amount for your filing status, fifteen per cent on the next band, twenty above that. Twelve months or fewer and the gain is ordinary income instead, so it is stacked on top of the rest of your taxable income and taxed at whichever ordinary brackets it reaches.

Your other income decides how much of the gain lands in each band. Ordinary income fills the low bands first, so the gain starts wherever your income already ended. That is why the same gain is taxed differently at two different income levels, and why the page asks for income and prints the bracket the gain actually reached rather than a flat headline rate.

The state layer sits on top and is never guessed. Nine states levy no personal income tax at all — Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington and Wyoming — and for those the state layer is zero. Everywhere else the page applies the rate you type, once, to the whole gain. It keeps no state table, picks no state bracket and does not spread the gain across a state's own bands, because state treatment of capital gains is not one number: some states use their own progressive brackets, some exclude a share of the gain, and some give long-term gains a different rate from short-term ones.

What this page does not do

Named here so the figure above is read for what it is:

If you want the arithmetic without the two layers — one gain and one rate you already know, no holding period, no state — that is the stock capital gains tax calculator, which returns the gain, the tax at your rate and the after-tax net and keeps no table at all. This page is the one to use when the question is which table applies and what the state adds.

Rounding, and which way the last digit goes

Every figure on this page is rounded down, never up — the same rule as the rest of the site. Share counts and per-share prices are shown to four decimals, amounts and percentages to two. The tax is floored to the cent, so what you read is at most a cent under the exact multiplication, and the totals are floored again after the addition. Each step is printed with its own numbers, so you can redo any of them if the place you are putting the figure expects a different rule.

Frequently asked questions

How much tax do I pay on a long-term capital gain? It depends on the band the gain reaches, and the band depends on your other taxable income. Ordinary income fills the low bands first, so the gain starts where your income ended: the part under the 0% amount for your filing status is untaxed, the next band is 15%, and anything above the 15% ceiling is 20%. Type the sale, the holding period, your filing status and your income, and the page prints which bands the gain fell into and the tax on each.

What counts as long term? More than one year. The page takes the holding period in months: more than twelve is long term, twelve or fewer is short term. Holding for the extra day matters, because a short-term gain is taxed at ordinary rates, which reach higher than the capital gains ladder does.

Does my state tax the gain separately? In most states, yes, and this page lets you put that rate in. Nine states tax no personal income at all, so for those the state layer is zero. This page deliberately holds no state table: pick your state, type the rate you know applies, and the page applies it once and shows the working.

Why does the page ask for my other income? Because the capital gains bands are drawn on taxable income, and the gain is only the top slice of it. At a low income a large gain can still land mostly in the 0% band; at a high one the same gain can reach the 20% band. Without the income figure the page would have to assume a band, and it will not.

This page is a calculator, not investment advice. Contact: contact@stockavg.com