Capital Gains Tax Calculator 2026

Sold a stock, crypto, or a home for a profit? Estimate the federal and state tax on your gain for 2026, and see how much holding for more than a year could save you.

Your details

Your result

Enter your details and click “Calculate taxes owed” to estimate your capital gains tax.

Total capital gains tax
$----

File your taxes with Keeper, investments included

  • File with stock sales, investments, rental income, and K-1s
  • Every return is reviewed and signed by a tax pro
  • Self-employed? Keeper finds your write-offs too

Capital gains tax in 2026: rates and how it works

Maya Kosoff
Written by
Krislyn Chan
Edited by
Updated October 20, 2026

Key takeaways

How the capital gains tax calculator works

Enter what you paid and what you sold for. The calculator finds your gain, decides whether it’s short or long-term, and adds it on top of your other taxable income to find the federal and state tax on it.

InputWhat to enter
What did you sell?Stocks, funds, or crypto; your main home; or other property. If you choose your main home and owned and lived in it for 2 of the last 5 years, the calculator subtracts the home sale exclusion.
Value at time of purchaseWhat you paid, plus fees and commissions. This is your cost basis.
Value at time of saleWhat you sold it for, minus selling fees.
Length of ownershipOne year or less makes it a short-term gain; more than a year makes it long-term.
State and filing statusWhere you lived when you sold, and how you file your return.
Annual taxable incomeYour taxable income for the year, not counting this sale.

Let’s see an example

A single filer has $60,000 of taxable income and sells stock for a $20,000 gain in 2026. Here’s the federal tax on that gain, depending on how long they held it:

Held forRateFederal tax on the gain
1 year or less (short-term)Ordinary income rates$4,400
More than 1 year (long-term)15%$3,000

Waiting until they’d held the stock for more than a year would save them $1,400.

2026 long-term capital gains tax rates

Your long-term rate depends on your total taxable income, including the gain. Part of a gain can fall in one rate and the rest in the next.

2026 filing status0% rate15% rate20% rate
SingleUp to $49,450$49,451 to $545,500Over $545,500
Married filing jointlyUp to $98,900$98,901 to $613,700Over $613,700
Head of householdUp to $66,200$66,201 to $579,600Over $579,600
Married filing separatelyUp to $49,450$49,451 to $306,850Over $306,850

For gains from 2025, which you report on your 2025 return, the thresholds were:

2025 filing status0% rate15% rate20% rate
SingleUp to $48,350$48,351 to $533,400Over $533,400
Married filing jointlyUp to $96,700$96,701 to $600,050Over $600,050
Head of householdUp to $64,750$64,751 to $566,700Over $566,700
Married filing separatelyUp to $48,350$48,351 to $300,000Over $300,000

Short-term gains don’t get these rates. They’re taxed with your wages and other income at 10% to 37%. See our tax bracket calculator for the 2026 brackets.

Assets with higher long-term rates

  • Collectibles, like art, coins, and precious metals, are taxed at up to 28%.
  • Real estate depreciation you claimed on a rental or business property (unrecaptured section 1250 gain) is taxed at up to 25% when you sell.

The 3.8% net investment income tax

If your modified adjusted gross income is over $200,000 (single or head of household), $250,000 (married filing jointly), or $125,000 (married filing separately), you pay an extra 3.8% on the smaller of your investment income or the amount you’re over. These thresholds aren’t adjusted for inflation, so more people pay it each year. The calculator includes it.

What counts as a capital asset

The IRS says almost everything you own and use for personal or investment purposes is a capital asset. That includes:

  • Stocks, bonds, and mutual funds
  • Cryptocurrency and NFTs (see our crypto tax calculator)
  • Your home and other real estate
  • Collectibles like art, coins, and memorabilia

You only owe tax when you sell. Gains on assets you still own are unrealized and aren’t taxed. Losses on personal-use property, like your car, aren’t deductible.

Track and claim every eligible deduction with Keeper

Keeper scans your accounts for write-offs and files your return — with tax pros reviewing every one.

Try it free

Selling your home: the $250,000 exclusion

If you sell your main home at a profit, you can usually exclude up to $250,000 of the gain from your income, or $500,000 if you’re married filing jointly. To qualify, you need to have:

  • Owned the home for at least 2 of the 5 years before the sale
  • Lived in it as your main home for at least 2 of those 5 years
  • Not used the exclusion on another home in the 2 years before the sale

Gain above the exclusion is taxed as a long-term capital gain, and the excluded part isn’t subject to the net investment income tax. Choose “My main home” under “What did you sell?” in the calculator to apply it.

How to lower your capital gains tax

  • Hold for more than a year. Long-term rates are usually much lower than ordinary rates.
  • Time sales for low-income years. If your taxable income stays under the 0% threshold, your long-term gains are tax-free.
  • Offset gains with losses. Losses cancel out gains, and up to $3,000 of extra loss ($1,500 if married filing separately) comes off your other income. The rest carries forward.
  • Use the home sale exclusion if you qualify.
  • Invest in retirement accounts. Gains inside a 401(k) or IRA aren’t taxed each year. If you’re self-employed, see solo 401(k) vs. SEP IRA.

State taxes on capital gains

Most states tax capital gains as regular income. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming don’t tax them. Washington has no income tax but taxes long-term gains over a large standard deduction ($278,000 for 2025) at 7%, and 9.9% above $1 million, with real estate exempt.

Plan for the tax on a big gain

No tax is withheld when you sell an investment, whether you’re self-employed or have a W-2 job. If a large gain will leave you owing $1,000 or more when you file, you may need to make an estimated tax payment for the quarter you sold. If you have a job, you can raise your paycheck withholding instead. Our quarterly tax calculator can help you figure out a payment.

How to report capital gains

Your brokerage sends Form 1099-B with your sales for the year. You list each sale on Form 8949, and the totals go on Schedule D, which attaches to your Form 1040.

9 sources
  1. Topic no. 409, Capital gains and losses · irs.gov
  2. Rev. Proc. 2025-32: 2026 inflation adjustments (capital gains rate thresholds) · irs.gov
  3. Topic no. 701, Sale of your home · irs.gov
  4. Publication 523, Selling your home · irs.gov
  5. Questions and answers on the net investment income tax · irs.gov
  6. Publication 550, Investment income and expenses · irs.gov
  7. Digital assets · irs.gov
  8. About Form 8949, Sales and other dispositions of capital assets · irs.gov
  9. Washington Department of Revenue: capital gains tax · dor.wa.gov

This article is for informational purposes only and isn’t tax, legal, or financial advice. Tax rules change and depend on your situation, so talk to a tax professional about yours.

Pay less in self-employed taxes

Keeper connects your income, expenses, and taxes to help you capture more tax savings and keep more of what you earn.

Try Keeper free

Form an LLC

File your LLC with the state, get your EIN, and keep every formation document in one place.

Learn more

Track income

See income across your linked financial accounts, clients, and jobs.

Learn more

Track expenses

Put expense tracking on autopilot. Keeper scans your transactions for tax deductible expenses automatically.

Learn more

Track mileage

Automatically log business drives, and claim your mileage deduction when you file.

Learn more

Pay quarterly taxes

Keeper calculates your safe-harbor payments and schedules them, so you never miss a payment.

Learn more

Talk to a tax pro

Get instant answers from our AI tax assistant in the app or book a one-on-one call with a tax pro.

Learn more

Uncover tax strategies

Get personalized recommendations that could lower your tax bill.

Learn more

File taxes

File federal and state returns with your income, expenses, and write-offs already organized in Keeper.

Learn more

Loved by thousands of contractors and solo businesses

FAQ

Maya Kosoff
About the author

Maya Kosoff

Maya Kosoff is a writer, editor and content strategist based in Brooklyn, New York. She previously worked at Vanity Fair and the New York Times. In her spare time she enjoys cooking, traveling, securing a win for her recreational skeeball team, and hanging out with her cat, Carmichael.

View full bio