Capital gains tax applies when you sell an asset (stocks, real estate, crypto) for more than you paid. In 2026, long-term capital gains (assets held 1+ year) are taxed at 0%, 15%, or 20% depending on income, while short-term gains are taxed as ordinary income at rates up to 37%.
This guide explains the 2026 federal brackets, how short-term versus long-term treatment changes your tax bill, the special rules for real estate and crypto, and legally proven strategies to minimize what you owe. Use our Capital Gains Tax Calculator to compute your exact liability.
2026 Capital Gains Tax Brackets
Capital gains tax is the tax on profit from selling an asset for more than its purchase price, with rates of 0%, 15%, or 20% for long-term gains held over one year.
Long-term capital gains (assets held over 1 year) receive preferential tax rates:
| Tax Rate | Single Filer Taxable Income | Married Filing Jointly |
|---|---|---|
| 0% | Up to $48,350 | Up to $94,050 |
| 15% | $48,351–$533,400 | $94,051–$583,750 |
| 20% | Over $533,400 | Over $583,750 |
Short-term capital gains (held 1 year or less) are taxed as ordinary income at your regular bracket: 10–37%. This is the single most important distinction in capital gains taxation. A $50,000 gain held for 11 months in the 24% bracket: $12,000 in federal tax. The same gain held for 13 months in the 15% bracket: $7,500. Two extra months of holding saved $4,500 — a 37.5% tax reduction for no additional effort.
Net Investment Income Tax (NIIT): An additional 3.8% surtax applies to investment income (including capital gains) for individuals with MAGI above $200,000 (single) or $250,000 (married). This effectively creates a top long-term rate of 23.8% and a top short-term rate of 40.8%. These thresholds are NOT inflation-adjusted and have not changed since 2013, dragging more taxpayers into the NIIT each year.
Example Capital Gains Calculation
Scenario: Married couple with $120,000 in wage income, selling stock for a $75,000 long-term gain.
Step 1 — Taxable income before gain: $120,000 wages - $32,200 standard deduction = $87,800.
Step 2 — Apply 0% bracket: The 0% rate covers up to $94,050 in total taxable income. Remaining 0% space: $94,050 - $87,800 = $6,250 of the gain taxed at 0%.
Step 3 — Remaining gain at 15%: $75,000 - $6,250 = $68,750 taxed at 15% = $10,313.
Step 4 — NIIT check: MAGI = $120,000 + $75,000 = $195,000. Below $250,000 MFJ threshold: no NIIT.
Total tax on $75,000 gain: $10,313 (13.8% effective rate).
If this were short-term: the $75,000 gain would be added to ordinary income ($87,800 + $75,000 = $162,800 taxable). The gain would be taxed at the 22% and 24% brackets: approximately $17,250 — 67% more tax than long-term treatment. See our Capital Gains Tax Calculator to run your exact scenario.
Capital Gains Rules for Real Estate
Real estate has the most favorable capital gains treatment in the tax code. The Section 121 exclusion allows homeowners to exclude up to $250,000 (single) or $500,000 (married) in capital gains from the sale of a primary residence — completely tax-free — if you lived in the home for at least 2 of the past 5 years.
Example: Married couple bought their home for $300,000 in 2018, sold for $650,000 in 2026. Gain: $350,000. Section 121 exclusion: $500,000. Tax: $0. The entire $350,000 gain is tax-free. This is the largest single tax break available to most American families.
Investment real estate: No Section 121 exclusion. But you can use a 1031 exchange to defer capital gains indefinitely by reinvesting the proceeds into a "like-kind" property within 180 days. As long as you continue 1031 exchanging, no capital gains tax is ever paid. At death, the property receives a stepped-up basis — the accumulated gains are permanently erased. This combination (1031 exchanges during life + step-up at death) is how many real estate investors legally pay zero capital gains tax ever. See our Rental Property Calculator.
Capital Gains on Cryptocurrency
The IRS treats cryptocurrency as property — subject to the same capital gains rules as stocks. Every sale, trade, or exchange is a taxable event. Buying coffee with Bitcoin at a gain: taxable. Swapping ETH for BTC: taxable. Receiving crypto as payment: ordinary income at receipt, capital gains on subsequent sale.
Crypto has one current advantage over stocks: the wash sale rule does not apply to crypto (as of 2026, though legislation has been proposed). This means you can sell crypto at a loss, immediately repurchase, and claim the tax loss — a strategy prohibited with stocks (which require a 30-day waiting period). This enables aggressive tax-loss harvesting during volatile crypto markets. See our Crypto Tax Calculator.
2026 Capital Gains Brackets: The Updated Numbers
For 2026, the IRS adjusted capital gains thresholds upward for inflation, providing modest relief against bracket creep. The long-term capital gains rate structure remains 0%, 15%, and 20%, but the income boundaries shifted:
0% rate: single filers with taxable income up to $49,450 (up from $48,350 in 2025); married filing jointly up to $98,900 (up from $96,700). 15% rate: single filers $49,451-$545,500; married $98,901-$613,700. 20% rate: above those thresholds. Additionally, the 3.8% Net Investment Income Tax (NIIT) applies when modified adjusted gross income exceeds $200,000 single / $250,000 married — making the effective maximum federal rate 23.8%. Add state taxes and the combined rate can exceed 30% in California or New York.
Short-term capital gains (assets held one year or less) continue to be taxed as ordinary income at rates from 10-37%. The difference between short-term and long-term treatment is enormous: a $50,000 gain taxed at 22% short-term costs $11,000 in federal tax. The same gain taxed at 15% long-term costs $7,500 — a $3,500 savings simply from holding the asset for 366 days instead of 365. This single timing decision is the most impactful capital gains strategy available to most investors.
The 0% Bracket: The Most Underused Tax Strategy
The 0% long-term capital gains bracket is one of the most powerful and least understood tax planning tools. A married couple with $98,900 or less in taxable income pays zero federal tax on long-term capital gains. After the $32,200 standard deduction, this applies to couples with adjusted gross income up to approximately $131,100 — a range that includes many retirees, sabbatical-year professionals, and early FIRE practitioners.
Tax-gain harvesting is the strategy of intentionally selling appreciated assets during low-income years to realize gains at the 0% rate. A couple taking a year off between jobs with $50,000 in income can sell $48,900 in long-term gains completely tax-free — and reset the cost basis to the current market value. When they eventually sell those shares in retirement, they pay capital gains only on appreciation above the new, higher basis. Over a career with 2-3 low-income years, this strategy can eliminate $50,000-150,000 in future capital gains tax.
Early retirees can use this annually: keep taxable income under $98,900 (married) by drawing from Roth accounts (not counted as income), using HSA withdrawals for medical expenses (not counted), and strategically selling appreciated investments to fill the 0% bracket. A couple with $60,000 in Social Security and pension income can realize approximately $39,000 in long-term gains at 0% federal tax every year — $390,000 in tax-free gains over a decade of retirement.
Tax-Loss Harvesting: Turning Market Drops Into Tax Savings
Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains elsewhere in your portfolio — reducing your tax bill without changing your investment strategy. Capital losses offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 in net losses against ordinary income per year, with unlimited carryforward of excess losses to future years.
Example: you sell Stock A for a $15,000 long-term gain and Stock B for a $10,000 loss. Net gain: $5,000. Tax at 15%: $750 instead of $2,250 on the full $15,000 gain — a $1,500 tax savings from harvesting the loss. If Stock B's loss was $18,000: net loss of $3,000 offsets $3,000 of ordinary income (saving $660-1,110 depending on bracket), with the remaining $12,000 loss carried forward.
The wash sale rule prevents claiming a loss if you repurchase a "substantially identical" security within 30 days before or after the sale. Sell a losing S&P 500 index fund, wait 31 days, then repurchase — or immediately buy a similar but not identical fund (a total market fund instead of an S&P 500 fund). Automated tax-loss harvesting through robo-advisors (Wealthfront, Betterment) captures these opportunities continuously, adding an estimated 0.5-1.5% in annual after-tax returns. Over 30 years, that is $50,000-150,000 in additional wealth on a $500,000 portfolio.
What Your Result Means
After running the capital gains tax calculator:
Effective rate 0%: Your taxable income (including the gain) stays below the 0% threshold. This often applies to retirees with modest income, early-retirement gap years, or years with offsetting losses. If you are in the 0% bracket, this is the ideal time to realize gains — "harvest gains" at 0% to reset your cost basis higher.
Effective rate 15%: The most common rate for middle- and upper-middle-income investors. This rate applies to the vast majority of long-term gains for households earning $94,050–$583,750 (MFJ). At 15%, the capital gains system is working as designed — rewarding long-term holding with preferential rates.
Effective rate above 20%: You are subject to the 20% top rate plus the 3.8% NIIT. Combined federal rate: 23.8%. Add state taxes in California (13.3%) or New York (10.9%): total effective rate approaches 33–37%. At this level, tax-loss harvesting, charitable giving of appreciated stock, and installment sales become high-impact strategies worth discussing with a tax advisor.
Next Steps: Strategies to Minimize Capital Gains Tax
Hold longer than 1 year (always): The single most impactful action. Converting a short-term gain to long-term reduces federal tax by 37–50% (from 22–37% to 15–20%). Never sell a winning investment at 11 months holding — wait 13 months and save thousands.
Tax-loss harvesting: Sell losing investments to offset gains dollar-for-dollar. $30,000 in gains + $25,000 in losses = $5,000 net gain taxed. Unused losses carry forward indefinitely and offset $3,000/year of ordinary income. This is the most straightforward legal tax reduction strategy for investors. See our Stock Profit Calculator to identify positions with losses.
Donate appreciated stock: Instead of selling stock and donating cash (paying capital gains tax), donate the stock directly to charity. You deduct the full market value and pay zero capital gains. On a $10,000 stock with a $3,000 basis: donating saves $1,050 in capital gains tax (15%) PLUS provides a $10,000 income tax deduction. See our Charitable Donation Calculator.
Use tax-advantaged accounts: Gains inside Roth IRAs are tax-free forever. Gains inside 401(k)s and Traditional IRAs are tax-deferred. Maximize these accounts for your highest-growth investments (small-cap, tech, crypto) to shelter the largest gains from taxation. Taxable accounts should hold tax-efficient investments (total-market ETFs with low turnover, municipal bonds).