Capital Gains Tax Calculator

By Forrest Baumhover, CFP®, EA · Last verified November 25, 2026 · Updated November 26, 2026

Federal law taxes long-term capital gains at 0%, 15% or 20% in 2026, depending on where the gain lands on top of your other taxable income. A single filer pays 0% on gains that fit under $49,450 of taxable income and 15% up to $545,500; married couples filing jointly pay 0% up to $98,900 and 15% up to $613,700.

A long-term capital gain is a profit on a capital asset that you generally held for more than one year before you sold it. Gifts and inherited property have their own holding period rules. Taxable income is your income after your deductions, and it includes the gain.

Figure the tax on a long-term gain

What you enter stays in your browser. This page does not send it anywhere or save it.

Start with your long-term gains. Subtract your long-term losses, including long-term losses you carried over. Then subtract any net short-term loss. If the result is below zero, use $0. Leave out collectibles gain, section 1202 gain and unrecaptured section 1250 gain. Then add your qualified dividends, because section 1(h)(11) of the Internal Revenue Code taxes them at the same rates.

Optional: the 3.8% net investment income tax

Fill in both boxes to add this tax, or leave both blank. Include your long-term gain in both amounts below. Net investment income generally includes interest, dividends, annuities, royalties, rents, passive business income and capital gains, minus the deductions that belong to them. Distributions from 401(k) and other §401(a) plans, §403(a), §403(b) and §457(b) plans, IRAs and Roth IRAs do not count as net investment income (IRC §1411(c)(5)). Taxable ones still raise your modified adjusted gross income. Adjusted gross income is your total income after certain adjustments. Modified adjusted gross income is that figure plus certain foreign earned income you excluded.

This calculator figures federal tax on a long-term gain only. It does not figure tax on your other income, short-term gains, collectibles, section 1202 gain, unrecaptured section 1250 gain, the kiddie tax, the alternative minimum tax, state tax or credits.

2026 capital gains brackets by filing status

Each amount is a limit on taxable income, including the gain.

Filing status0% up to15% up to20% over
Single$49,450$545,500$545,500
Married filing jointly or qualifying surviving spouse$98,900$613,700$613,700
Married filing separately$49,450$306,850$306,850
Head of household$66,200$579,600$579,600
Estates and trusts$3,300$16,250$16,250

Source: Rev. Proc. 2025-32, section 4.03.

2027 capital gains brackets by filing status

Each amount is a limit on taxable income, including the gain.

Filing status0% up to15% up to20% over
Single$51,050$563,200$563,200
Married filing jointly or qualifying surviving spouse$102,100$633,600$633,600
Married filing separately$51,050$316,800$316,800
Head of household$68,350$598,400$598,400
Estates and trusts$3,400$16,750$16,750

Source: Rev. Proc. 2026-35, section 3.03 (Internal Revenue Bulletin 2026-48).

How are long-term capital gains taxed in 2026?

Your gain sits on top of your other taxable income. The part of the gain under the 0% limit pays 0%. The part between the two limits pays 15%, and the part over the higher limit pays 20%. One gain can fall into two or three rates.

Example: you file single, and your 2026 taxable income is $30,000, including a $10,000 long-term capital gain. The gain sits on top of $20,000 of other income. All of it stays under the $49,450 limit, so the federal tax on the gain is $0. The other $20,000 still pays tax at the ordinary rates, the rates on wages.

A gain taxed at 0% still counts in your adjusted gross income. That can change other items on your return, so the $0 covers only the tax on the gain itself.

One rule helps just past the 0% limit. In 2026 the 12% bracket runs $950 past that limit for a single filer and $1,900 past it on a joint return. Section 1(h)(1) compares two totals for the whole gain: the tax at 0%, 15% and 20%, and the extra tax at the ordinary rates. You pay the smaller total. This can matter for a small gain just past the 0% limit.

A separate 3.8% net investment income tax can apply on top. It reaches the smaller of two amounts: your net investment income, or the amount by which your modified adjusted gross income exceeds a threshold. The threshold is $200,000 for single and head of household filers, $250,000 for a joint return or qualifying surviving spouse, and $125,000 for married filing separately. Estates and trusts follow a different rule. This tax does not apply to a nonresident alien.

A large gain can also require estimated tax payments during the year.

What is the 0% capital gains bracket for 2026?

For 2026, the 0% rate reaches taxable income of $49,450 for single and married filing separately, $66,200 for head of household, and $98,900 for a joint return or qualifying surviving spouse. For estates and trusts it reaches $3,300.

The limit counts all your taxable income, not the gain alone. A single filer with $49,450 or more of other taxable income has no room left at 0%.

Watch this trap: each added dollar of other income can push a dollar of gain from 0% to 15%.

What are the 2027 capital gains brackets?

For tax years that begin in 2027, a single filer has a 0% rate up to $51,050 of taxable income and a 15% rate up to $563,200. On a joint return, those limits are $102,100 and $633,600. The 2027 table on this page lists every filing status. The source is Rev. Proc. 2026-35, in Internal Revenue Bulletin 2026-48.

Which gains does this calculator leave out?

Some gains follow other rules, and some taxes sit outside this page:

  • Collectibles, such as coins or art: a maximum 28% rate.
  • The taxable part of a gain on section 1202 qualified small business stock (certain stock in a small C corporation): a maximum 28% rate.
  • Unrecaptured section 1250 gain (the part of a real property gain that comes from depreciation): a maximum 25% rate.
  • A child subject to the kiddie tax: the parent’s rates can apply (section 1(g)).
  • Alternative minimum tax.
  • Estates and trusts: the tables list their amounts, but the calculator does not figure their tax.
  • State income tax.

A gain on an asset you held one year or less is usually short-term. The ordinary rates apply to a net short-term capital gain; see the 2026 and 2027 federal tax brackets.

Report most sales on Form 8949, then summarize them on Schedule D (Form 1040).

Cite this page

Baumhover, Forrest. "Capital Gains Tax Calculator." The Federal Tax Desk, updated November 26, 2026. https://tools.federaltaxdesk.com/capital-gains-tax-calculator/

More from the Desk

More practitioner writing from Forrest Baumhover, CFP®, EA at The Federal Tax Desk on Substack.

This page provides general information about IRS procedures. It is not personalized tax advice, and reading it does not create a practitioner-client relationship with Forrest Baumhover, Fbaum Enterprises LLC, or The Federal Tax Desk. Every situation is different — if real money or a real deadline is on the line, consider having a licensed CPA, EA, or tax attorney review your specific facts before you act.

Subscribe to The Federal Tax Desk

Weekly IRS updates and new free tax tools — written for tax pros, readable by anyone.

Subscribe free →