CalcSeed

Capital Gains Tax Calculator

Enter a capital gain, how long you held the asset, and your other taxable income to estimate the tax.

=
Quick answer: with the default inputs ($50,000, long, $60,000), the capital gains tax is $7,500.00. At these inputs: effective rate on gain = 15. Change any input to update the result.
Capital gains tax
—

Next steps

What this calculator returns

Enter a realized gain, how long you held the asset and your other taxable income. The calculator returns the federal tax on the gain in dollars and the effective rate as a percentage of the gain. At the defaults — a $50,000 gain held long-term on top of $60,000 of other income — it returns $7,500 of tax, an effective rate of 15.00%.

The formula taxes the stack, not the gain

tax=f(I+G)−f(I)tax=f(I+G)-f(I)

Read f as “tax owed on a taxable income of”. The gain is never multiplied by one flat rate. The calculator taxes your income with the gain included, taxes your income without it, and keeps the difference. That difference is the tax the gain itself caused.

The subtraction is what makes the answer exact at band edges. A gain that crosses a threshold is not taxed at the higher rate on the entire amount — only the slice above the threshold is. Taking f(income + gain) minus f(income) charges each slice at its own rate and leaves the lower bands untouched.

Two ladders, one subtraction

For a long-term gain, f is the 0/15/20 ladder, so the whole stack is taxed at capital-gains rates. For a short-term gain, f is the ordinary schedule, which runs from 10% to 37% across seven brackets. The holding-period selector picks the ladder; the size of the gain does not.

Worked example at the defaults

Long-term, $50,000 gain, $60,000 of other income. Total taxable income is $110,000. The 0% band ends at $44,625, so $65,375 of that total is taxed at 15% and the first $44,625 at 0%, giving $9,806.25. Run the same ladder on $60,000 alone: $15,375 sits above the threshold, or $2,306.25. Subtract the two and the gain costs $7,500.00, exactly 15.00% of $50,000.

That $7,500 is not 15% of $110,000, and it is not 15% of the amount by which the gain exceeds a threshold. It is the tax on the slice the gain occupies, which is why the shortcut of multiplying gain by a rate goes wrong as soon as other income is in play.

The same gain at four income levels

Other taxable incomeTotal incomeTax on $50,000 long-term gainEffective rate
$0$50,000$8061.61%
$60,000$110,000$7,50015.00%
$450,000$500,000$7,88515.77%
$600,000$650,000$10,00020.00%

The first row is the one people misread. With no other income a $50,000 gain is not tax-free, because $5,375 of it lands above the $44,625 line and pays $806. The last row shows the opposite mistake: at high income the entire gain is taxed at 20%, not just the part above $492,300, because other income has already filled the lower bands.

Short-term versus long-term on identical gains

Gain (no other income)Long-term taxShort-term taxExtra cost of selling early
$50,000$806$5,752$4,946
$100,000$8,306$16,712$8,406
$250,000$30,806$56,456$25,650

The gap widens with the gain because ordinary brackets climb faster than capital-gains brackets. On the $250,000 line the short-term sale costs 22.58% of the gain against 12.32% long-term. Waiting out the one-year mark is worth more than most tax-loss harvesting a typical investor can find.

What moves the number

Five inputs account for almost all of the variation between two returns with the same headline gain.

  • Holding period. Crossing into long-term moves the gain from ordinary rates to the 0/15/20 ladder; on a $100,000 gain with no other income that is $8,406.
  • Other income. The gain stacks on top of it, so $600,000 of other income turns a $50,000 long-term gain from a 15% item into a 20% item.
  • Gain size. Every dollar above the top threshold is taxed at 20%; a $600,000 gain alone carries $88,691 of tax.
  • Realized losses. Each $1,000 of loss removes $150 of 15% tax, or $200 when the gain sits in the 20% band.
  • State treatment. States that tax gains as ordinary income can add up to about 13 points, more than the federal gap between the 15% and 20% bands.

Mistakes that show up in real returns

Two errors account for most surprises on a capital-gains line.

Selling a day early

The long-term clock starts the day after purchase, and the gain is long-term once you have held the position 366 days or more. Selling at exactly twelve months is short-term. At the defaults that single day costs $3,586 — $11,086 instead of $7,500 — which is usually far more than the price risk of holding one more day.

Applying 15% to everything

The 15% band is wide, which makes the flat-rate shortcut look right in the middle of the income range. It fails at both ends: below $44,625 of total income part of the gain is free, and above $492,300 part of it is taxed at 20%. The four-row table above spans the range with the same $50,000 gain.

  • Assuming 15% applies to the whole gain regardless of other income
  • Forgetting that a mutual fund capital-gains distribution can realize a gain you did not choose to take
  • Ignoring the 3.8% surtax that applies above $200,000 of modified adjusted gross income

What the estimate leaves out

Three items sit outside the model. The 3.8% net investment income tax applies to the smaller of net investment income or the excess of modified adjusted gross income over $200,000 for a single filer, and it would add $1,900 to the tax on the default gain for someone above that line. State income tax is excluded entirely. And the model assumes the gain is realized in one tax year, so it cannot spread a large sale across two calendar years.

The brackets themselves are also fixed in the code: 0% to $44,625, 15% to $492,300, 20% above, with ordinary rates topping out at 37% over $640,600. The IRS re-indexes those thresholds each year, so confirm the published table for the year you sell before you rely on a boundary case.

Frequently asked questions

How much tax do I owe on a $50,000 long-term gain?

It depends on your other income. With $60,000 of other taxable income the calculator returns $7,500, or 15.00%. With no other income the same gain costs $806, because only $5,375 of it sits above the 0% threshold. With $600,000 of other income it costs $10,000, or 20.00%.

Is a short-term gain always taxed more than a long-term gain?

At every income level this model covers, yes. At the defaults a $50,000 gain costs $11,086 short-term against $7,500 long-term. On a $250,000 gain with no other income the split is $56,456 versus $30,806. The gap exists because short-term gains stack into ordinary brackets that reach 37%, while long-term rates top out at 20%.

Do I pay 0% capital gains tax if my income is low?

Only on the portion of the gain that fits under the 0% threshold, which the model sets at $44,625 of total taxable income for a single filer. A $30,000 gain with no other income is entirely tax-free; a $50,000 gain pays $806 on the $5,375 above the line.

What holding period counts as long-term?

More than one year. The clock starts the day after you buy, and the gain is long-term once you have held the asset 366 days or more. Selling at exactly twelve months is short-term, and at the defaults that mistake costs $3,586 on a $50,000 gain.

Does the calculator include state capital gains tax?

No, it models federal tax only. Most states tax capital gains as ordinary income, with top rates running from 0% in states such as Florida and Texas to above 13% in California, so a $50,000 gain taxed at 15% federally can face a combined rate near 28% in a high-tax state.

What is the 3.8% net investment income tax?

An additional surtax on net investment income above $200,000 of modified adjusted gross income for single filers, or $250,000 for married couples filing jointly. It is not in this calculator. On the default $50,000 gain it would add $1,900 for a filer over the threshold.

Can I use losses to reduce the tax?

Yes. A realized capital loss offsets a gain dollar for dollar, so a $10,000 loss paired with the default $50,000 gain cuts the taxable gain to $40,000 and the tax from $7,500 to $6,000 at the 15% rate. Losses beyond the gain can offset up to $3,000 of ordinary income a year, with the remainder carried forward.

Why does other income change the tax on a gain that did not change?

Because the gain stacks on top of that income. Adding $450,000 of other income to the default $50,000 gain pushes part of the gain into the 20% band, so the tax rises from $7,500 to $7,885 and the effective rate from 15.00% to 15.77% without the gain moving at all.

Are these the 2026 brackets?

The model uses fixed thresholds: 0% to $44,625, 15% to $492,300 and 20% above, with ordinary brackets topping out at 37% over $640,600. The IRS indexes these figures annually, so check the published table for the tax year you sell in before relying on a boundary case.

Does this work for married filing jointly?

No, the brackets are single-filer. Joint thresholds are roughly double for the 0% and 15% bands, which lowers the tax on the default gain: a joint filer with $60,000 of other income would pay 0% on part of the $50,000 gain rather than 15% on all of it.

Method and sources

Calculation basis

Calculations follow standard financial mathematics (amortization, compound interest and time-value formulas) and reference 2026 U.S. federal parameters, such as IRS mileage and contribution rates, where applicable.

Last updated: November 17, 2026
Formula & data sources
  • 2026 long-term capital gains brackets (single): 0% up to $44,625, 15% up to $492,300, 20% above. Short-term gains taxed at ordinary brackets.

For educational purposes only — not financial, tax, or legal advice. Verify figures with a qualified professional before acting.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Capital Gains Tax Calculator. https://calcseed.com/c/finance/capital-gains-tax-calculator/
MLA 9"Capital Gains Tax Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/finance/capital-gains-tax-calculator/.
ChicagoCalcSeed. "Capital Gains Tax Calculator." Last modified November 17, 2026. https://calcseed.com/c/finance/capital-gains-tax-calculator/

Related calculators