By Ziv Shay | Updated April 2026

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

Calculate your 2026 capital gains tax: 0%, 15%, or 20% long-term rates. Free tool shows exact owed by income bracket and holding period.

UPDATED April 2026

Capital Gains Tax Calculator 2026: What You'll Actually Owe

If you sold stocks, crypto, a rental property, or a business this year, your capital gains tax bill depends on three things: how long you held the asset, your total taxable income, and whether the gain is short-term or long-term. For 2026, long-term capital gains are taxed at 0%, 15%, or 20% — while short-term gains are taxed as ordinary income at rates up to 37%. That single distinction can cost or save you tens of thousands of dollars.

By Ziv Shay — Last updated April 20, 2026

Quick answer: Hold an appreciated asset for more than 365 days before selling, and you'll likely pay between 0% and 20% federal tax on the profit. Sell in under a year, and your gain is taxed at your marginal income rate (up to 37%) plus potentially 3.8% in Net Investment Income Tax (NIIT).

How the 2026 Capital Gains Tax Calculator Works

To calculate what you'll owe, you need four numbers:

  1. Sale price — what you sold the asset for, minus commissions and fees.
  2. Cost basis — what you originally paid, plus any reinvested dividends or capital improvements.
  3. Holding period — the number of days between purchase and sale. One year and one day = long-term.
  4. Taxable income — your total income including the gain, which determines your bracket.

Formula: Capital Gain = Sale Price − Cost Basis − Selling Expenses. Then apply the appropriate rate based on holding period and income.

2026 Long-Term Capital Gains Tax Brackets

Long-term rates (assets held >1 year) are based on taxable income, not a separate "gains income" number. The IRS stacks your long-term gains on top of your ordinary income to determine which bracket they fall into.

Single Filers (2026)

Married Filing Jointly (2026)

Head of Household (2026)

2026 Short-Term Capital Gains Rates (Ordinary Income Brackets)

Short-term gains (held ≤1 year) are taxed at your ordinary federal rate. Here are the 2026 brackets:

Single Filers

Married Filing Jointly

Worked Example: $50,000 Gain at Three Income Levels

Let's say you sold Nvidia stock for a $50,000 profit. Here's what you'd owe federal tax in four scenarios (single filer, no other deductions beyond the $15,000 standard deduction):

Scenario 1: $40,000 W-2 income, held 14 months

Taxable income before gain: $25,000. Adding the $50,000 gain brings you to $75,000 — crossing into the 15% long-term bracket at $48,350. First $23,350 of gain is taxed at 0%, remaining $26,650 at 15%. Tax owed: $3,998.

Scenario 2: $120,000 W-2 income, held 14 months

Taxable income: $105,000 + $50,000 = $155,000. All $50,000 of gain sits in the 15% long-term bracket. Tax owed: $7,500.

Scenario 3: $120,000 W-2 income, held 10 months (short-term)

The $50,000 is taxed as ordinary income, stacking on top of $105,000. It spans the 24% bracket entirely. Tax owed: $12,000. Plus 3.8% NIIT on $50,000 = $1,900 extra. Total: $13,900.

Holding that same position four extra months would save this investor $6,400 in federal tax.

The Net Investment Income Tax (NIIT) — The 3.8% Surcharge Most People Miss

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you owe an additional 3.8% on the lesser of your net investment income or the amount over the threshold. This applies to both short- and long-term gains, interest, dividends, and rental income.

Practical impact: a high earner in the 20% long-term bracket pays an effective 23.8% federal rate on gains. Short-term gains for the same person can hit 40.8% federal before state tax.

State Capital Gains Tax — The Often-Forgotten Layer

Nine states have no income tax and therefore no state capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington (has a 7% tax on gains over $262,000), and Wyoming.

High-tax states stack meaningfully on top of federal:

A California resident in the top bracket selling a short-term stock position can face a combined federal + state + NIIT rate north of 54%.

Special Rules That Can Change the Math

Qualified Small Business Stock (Section 1202)

If you held qualified small business stock for 5+ years, you may exclude up to $10 million (or 10× your basis) in gains from federal tax entirely. This is the single biggest tax break in the US code for founders and early employees.

Primary Residence Exclusion (Section 121)

Sell your primary home after living in it 2 of the last 5 years and exclude $250,000 (single) or $500,000 (married) of gain. For most homeowners, this eliminates capital gains tax on their house entirely.

1031 Like-Kind Exchange

Real estate investors can defer capital gains by rolling proceeds into a "like-kind" investment property within 180 days. Still available in 2026, but only for real estate — not stocks, crypto, or collectibles.

Opportunity Zones

Invest gains into a Qualified Opportunity Fund within 180 days to defer federal tax until 2026 and potentially eliminate tax on future appreciation if held 10+ years.

Collectibles and Crypto

Long-term gains on collectibles (art, coins, gold, wine) are taxed at a flat 28% — higher than the normal 20% max. Crypto is treated as property: same short-term / long-term distinction as stocks, no special rates.

Harvesting Losses to Offset Gains

Capital losses offset capital gains dollar-for-dollar. If your total losses exceed gains, you can deduct up to $3,000 against ordinary income ($1,500 if married filing separately), carrying unused losses forward indefinitely.

Wash sale rule warning: If you buy the "substantially identical" security within 30 days before or after the sale, the loss is disallowed and added to the basis of the replacement. This rule applies to stocks but not yet to crypto as of 2026 — though Congress has proposed extending it.

Five Strategies to Legally Reduce Capital Gains Tax in 2026

  1. Hold past one year. The single easiest move — 365+ day holds drop rates from 37% to 20% at the top.
  2. Use tax-loss harvesting. Sell losing positions in taxable accounts before December 31 to offset winners.
  3. Max out tax-advantaged accounts first. Roth IRA, 401(k), and HSA contributions avoid capital gains tax entirely. See our Roth IRA vs Traditional IRA guide and HSA vs FSA comparison for contribution limits.
  4. Time your income year. Realize gains in a low-income year (sabbatical, early retirement, between jobs) to hit the 0% bracket.
  5. Gift appreciated stock to family in lower brackets. Donor's basis transfers, but recipient's rate applies. A retired parent in the 0% bracket can sell tax-free.

When to Make Estimated Tax Payments

If your capital gain creates a tax bill over $1,000 not covered by withholding, the IRS expects quarterly estimated payments. Deadlines for 2026 gains: April 15 and June 15 2026, September 15 2026, and January 15 2027. Miss them and you'll owe an underpayment penalty plus interest at the current federal short-term rate + 3%.

Planning a major sale? Our home affordability calculator and net worth by age calculator can help you model how a large gain reshapes your financial picture.

Frequently Asked Questions

Do I pay capital gains tax if I reinvest the proceeds?

Yes, for taxable brokerage accounts. The IRS taxes realization, not withdrawal — the moment you sell, the gain is triggered regardless of what you do with the cash. Exceptions: 1031 exchanges (real estate), Opportunity Zone investments, and transactions inside tax-advantaged accounts like IRAs and 401(k)s.

How does the IRS know about my capital gains?

Brokerages file Form 1099-B reporting every sale, and exchanges like Coinbase file 1099-MISC or 1099-DA starting in 2026. For real estate, the closing agent files Form 1099-S. Unreported gains trigger automated CP2000 notices typically 12-18 months after the tax year ends.

What's the difference between realized and unrealized gains?

Realized gains happen when you sell the asset — taxable. Unrealized gains are paper profits on assets you still hold — not taxable in 2026 (no "wealth tax" exists federally). This is why holding long-term appreciated stock, rather than selling and rebuying, is so tax-efficient.

Can capital losses offset ordinary income?

Yes, up to $3,000 per year ($1,500 if married filing separately). Losses first offset gains of the same type (short vs long), then offset the other type, then offset up to $3,000 of ordinary income. Anything left carries forward to future years with no expiration.

Do I owe capital gains tax on inherited assets?

Inherited assets receive a "step-up in basis" — your cost basis becomes the fair market value on the date of death, not what the deceased originally paid. Sell immediately and you'll owe little or no capital gains tax. This is one of the most powerful tax benefits in the US code and a key consideration in estate planning.

Are capital gains counted as income for Medicare and ACA subsidies?

Yes. Both short- and long-term gains flow into your Modified Adjusted Gross Income (MAGI), which determines Medicare IRMAA surcharges and ACA marketplace subsidy eligibility. A one-time large gain can push premiums up by thousands for the following year — a detail many retirees miss when selling appreciated property or concentrated stock.

Bottom Line

Capital gains tax in 2026 rewards patience and planning. The difference between a 37% short-term rate and a 15% long-term rate is an extra 22 cents on every dollar of profit — enough to justify holding that extra month in almost every situation. Before selling any significant position, run the numbers through all three layers: federal long-term rate, NIIT surcharge, and state tax. Then ask whether loss harvesting, charitable gifting, or timing the sale to a lower-income year could cut the bill further.

This content is for educational purposes only and does not constitute financial or tax advice. Tax law is complex and fact-specific. Consult a qualified CPA or tax attorney before making decisions involving significant capital gains.

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