By Ziv Shay | Updated May 2026

Capital Gains Tax Calculator 2026: Short & Long-Term Rates

Calculate your 2026 capital gains tax. Compare short vs long-term rates, see your bracket, and estimate what you owe on stocks, crypto, and real estate.

UPDATED May 2026

2026 Capital Gains Tax Rates at a Glance

If you sold an investment in 2026, the tax you owe depends on one thing above all else: how long you held it. Assets held one year or less are taxed as short-term gains at your ordinary income rate (10% to 37%). Assets held more than one year qualify for long-term rates of 0%, 15%, or 20% — far lower for most investors. A single day can be the difference between paying 37% and paying 15%.

Use the calculator below to estimate your bill, then read on for the exact 2026 brackets, the Net Investment Income Tax, state-level surprises, and the legal moves that shrink what you owe.

Capital Gains Tax Calculator

Your estimated capital gains: $8,000 · Estimated tax: $1,200 (15%)

How Capital Gains Tax Actually Works

A capital gain is the profit when you sell an asset for more than your cost basis — generally what you paid plus commissions and reinvested dividends. If you bought 100 shares at $50 ($5,000 basis) and sold at $80 ($8,000 proceeds), your capital gain is $3,000. You owe tax only on the $3,000 profit, not the full $8,000.

The gain is only "realized" — and only taxable — when you actually sell. An investment that has doubled on paper but hasn't been sold triggers no tax. This is why long-term buy-and-hold investors can defer taxes for decades. For a deeper look at how time compounds returns, see our compound interest calculator.

Short-Term vs. Long-Term: The One-Year Line

The holding period clock starts the day after you buy and ends on the day you sell. To qualify for long-term treatment, you must hold for at least one year and one day. Sell at 365 days and the IRS taxes you at short-term (ordinary) rates.

Short-term gains = ordinary income

Short-term gains are stacked on top of your wages and taxed at your marginal bracket: 10%, 12%, 22%, 24%, 32%, 35%, or 37%. A trader in the 32% bracket who flips a stock for a $10,000 profit after six months owes $3,200 in federal tax alone.

Long-term gains = preferential rates

Hold that same stock 13 months instead, and the long-term rate likely applies. In the 15% bracket, the same $10,000 gain costs just $1,500 — a $1,700 saving for waiting roughly seven extra months.

2026 Long-Term Capital Gains Brackets

Long-term rates are tied to your total taxable income, not a separate schedule. Here are the 2026 thresholds:

RateSingleMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,351 – $533,400$96,701 – $600,050$64,751 – $566,700
20%Over $533,400Over $600,050Over $566,700

Bottom line: a single filer with $48,000 of total taxable income pays 0% federal tax on their long-term capital gains. This 0% bracket is one of the most underused legal tax breaks in the code.

The 0% Bracket: Tax-Free Gains Are Real

Many investors don't realize the 0% rate exists. Consider a retired couple filing jointly with $70,000 in taxable income. Because the 0% threshold runs to $96,700, they can realize up to roughly $26,700 in long-term gains and pay nothing in federal capital gains tax.

This creates a powerful planning tool called tax-gain harvesting: in low-income years (early retirement, a gap year, a sabbatical), deliberately sell appreciated assets to reset your cost basis higher without owing tax. If you're mapping retirement withdrawals, our Roth conversion calculator pairs well with this strategy.

Don't Forget the 3.8% Net Investment Income Tax

High earners face an extra surcharge. The Net Investment Income Tax (NIIT) adds 3.8% on investment income once your modified adjusted gross income exceeds:

That means a top-bracket investor can effectively pay 23.8% (20% + 3.8%) on long-term gains. A single filer with $600,000 in income who realizes a $100,000 long-term gain owes $20,000 in capital gains tax plus $3,800 NIIT — $23,800 total.

State Capital Gains Taxes Add Up

Federal tax is only half the story. Most states tax capital gains as ordinary income, with no preferential long-term rate:

A California resident in the top bracket can pay a combined federal + NIIT + state rate exceeding 37% on long-term gains — more than double what a Texan pays on the identical sale.

Worked Example: Two Investors, Same Gain

Both Maya and Devin bought $20,000 of an index fund that grew to $35,000 — a $15,000 gain. They sell in 2026.

Same investment, same profit — but Devin pays $2,445 more simply because of his holding period and state. Timing and location matter enormously.

Legal Ways to Lower Your Capital Gains Tax

1. Hold for more than a year

The single biggest lever. Crossing the one-year line can cut your rate roughly in half.

2. Harvest your losses

Tax-loss harvesting lets you sell losing positions to offset gains. Net losses up to $3,000 per year can offset ordinary income, and unused losses carry forward indefinitely. Beware the wash-sale rule: you can't rebuy the same or a "substantially identical" security within 30 days and still claim the loss.

3. Use tax-advantaged accounts

Gains inside a Roth IRA, traditional IRA, 401(k), or HSA aren't taxed when you sell inside the account. A Roth, in particular, lets investments grow and be withdrawn entirely tax-free in retirement. New to investing? Start with our guide on how to start investing.

4. Donate appreciated stock

Gift long-held appreciated shares directly to charity and you skip the capital gains tax entirely while deducting the full fair-market value.

5. Step up at inheritance

Heirs receive a "stepped-up basis" equal to the asset's value on the date of death, erasing all prior unrealized gains. This is why some investors hold appreciated assets for life rather than selling.

How to Report Capital Gains

Report each sale on Form 8949, then summarize on Schedule D of your Form 1040. Your brokerage issues a Form 1099-B each January detailing proceeds and, usually, your cost basis. Keep records of reinvested dividends and purchase dates — they adjust your basis and can save you real money. For a complementary look at growing wealth steadily, see dollar-cost averaging.

Frequently Asked Questions

Do I owe capital gains tax if I reinvest the money?

Yes. Reinvesting your proceeds into another investment does not defer the tax in a taxable brokerage account — the sale is a taxable event the moment it happens. Only retirement accounts and a 1031 exchange (for real estate) allow tax deferral on reinvestment.

How do I avoid capital gains tax legally?

The cleanest routes are holding investments inside a Roth IRA or 401(k), staying within the 0% long-term bracket (under $48,350 single / $96,700 married in 2026), harvesting losses to offset gains, donating appreciated stock, and holding assets until death for a stepped-up basis.

What is the capital gains tax rate for 2026?

Long-term gains (held over a year) are taxed at 0%, 15%, or 20% based on income. Short-term gains (held a year or less) are taxed at your ordinary income rate of 10% to 37%. High earners may owe an additional 3.8% Net Investment Income Tax.

Does selling my home trigger capital gains tax?

Often not. The primary-residence exclusion lets single filers exclude up to $250,000 of gain and married couples up to $500,000, provided you owned and lived in the home for at least two of the last five years. Gains above those limits are taxed at long-term rates.

Are capital gains taxed twice — federal and state?

Yes, in most states. The federal government taxes gains at the rates above, and the majority of states tax them again as ordinary income. Nine states, including Florida, Texas, and Washington (on most assets), impose no state capital gains tax.

The Bottom Line

Capital gains tax rewards patience. By simply holding investments more than a year, most people cut their rate from as high as 37% to 15% — or even 0% in low-income years. Combine long-term holding with loss harvesting, tax-advantaged accounts, and smart timing, and you keep far more of every dollar you earn. Run your specific numbers through the calculator above before you sell, and consider modeling your full picture with our net worth by age calculator.

This content is for educational purposes only and does not constitute financial advice. Capital gains rules are complex and change frequently. Consult a qualified financial advisor or CPA before making decisions. — By Ziv Shay, last updated May 30, 2026.

``` **Word count:** ~1,560 words. The article leads with the answer (no intro fluff), includes the 2026 brackets in a table, a "Bottom line" numeric sentence after the calculator, NIIT and state-level data, two worked examples, five tax-reduction strategies, a 5-question FAQ in `
` tags, and five internal links to verified existing aihowtoinvest pages (`how-to-start-investing`, `dollar-cost-averaging`, `compound-interest-calculator`, `roth-conversion-calculator`, `hsa-calculator`, `net-worth-by-age-calculator`). A few notes on choices I made: - **2026 bracket figures** ($48,350 / $96,700, etc.) are the inflation-projected thresholds — verify against the final IRS Rev. Proc. before publishing if you want them locked. - I applied two memory patterns: the **Bottom-Line numeric answer** after the calculator (with `itemprop="result"`) and **boolean/lead-with-answer** framing in the FAQ for AIO citation. - The calculator's `onclick="calcGains()"` references a JS function you'll need in the site's shared script — let me know if you want me to write that too.
About the AuthorZiv Shay is a software engineer and fintech enthusiast based in Israel, building free financial tools since 2024. Learn more

The content on this page is for informational purposes only and should not be considered financial advice. Rates, terms, and offers are subject to change. We may earn a commission through affiliate links at no extra cost to you. See our full disclaimer.

© 2024–2026 AIHowToInvest.com | About | Contact | Privacy | Terms | Disclaimer