Quick Answer
Long-term capital gains (assets held over 1 year) are taxed at 0%, 15%, or 20% depending on income — significantly lower than ordinary income rates. Short-term gains are taxed as ordinary income. Tax-loss harvesting can offset up to $3,000 in ordinary income annually.
Key Takeaways
- Holding assets more than 12 months qualifies for long-term rates of 0%, 15%, or 20% — versus up to 37% for short-term gains, potentially saving $4,500 on a $50,000 gain.
- Singles with taxable income under $49,450 (MFJ under $98,900) pay 0% long-term capital gains tax — use low-income years to sell appreciated assets tax-free.
- The 3.8% NIIT surtax applies to investment income for MAGI above $200K (single) / $250K (MFJ), pushing effective rates to 23.8% on long-term gains or 40.8% on short-term gains.
- Married homeowners can exclude up to $500,000 in gains ($250K single) from capital gains tax when selling a primary residence — one of the largest tax breaks in the code.
- Tax-loss harvesting offsets gains dollar-for-dollar, plus up to $3,000/year against ordinary income — excess losses carry forward indefinitely with no expiration.
Tahir Özcan
Founder & Lead AuthorPersonal-finance researcher & software engineer · GetWealthCalc · Est. 2025
Tahir built GetWealthCalc after a decade of modeling household budgets, retirement plans, and mortgage amortization schedules for family and friends. He translates dense regulatory language — IRS Revenue Procedures, SSA COLA announcements, FHFA conforming loan limits — into accurate, usable calculator logic. Every formula is hand-audited against the primary government release and cross-validated with CFA Institute curriculum standards. Read our editorial standards →
- Every figure cites a primary government source
- All calculations run locally in your browser
- Open-source — reviewable on GitHub
- Reviewed quarterly against statutory changes
Capital gains tax is one of the most impactful taxes for investors, homeowners, and anyone selling appreciated assets. The difference between short-term and long-term treatment can mean paying 0% instead of 37% — making holding period and planning critical to keeping more of your returns.
This guide covers the 2026 federal capital gains rates, the NIIT surtax, and proven strategies to legally minimize your tax bill.
2026 Short-Term vs. Long-Term Capital Gains Rates
Assets held for 12 months or less are taxed at ordinary income rates (10–37%). Assets held for more than 12 months qualify for preferential long-term rates:
- 0%: Taxable income up to $49,450 (single) / $98,900 (MFJ)
- 15%: Taxable income up to $545,500 (single) / $613,700 (MFJ)
- 20%: Taxable income above those thresholds
- +3.8% NIIT: Net Investment Income Tax for MAGI above $200,000 (single) / $250,000 (MFJ)
The Net Investment Income Tax (NIIT)
The NIIT is a 3.8% surtax on the lesser of your net investment income or the amount by which your MAGI exceeds the threshold ($200,000 single / $250,000 MFJ). This means high earners effectively pay up to 23.8% on long-term gains or up to 40.8% on short-term gains.
Strategies to reduce NIIT exposure include maximizing pre-tax retirement contributions (which lower MAGI), timing asset sales across multiple tax years, and considering Qualified Opportunity Zone investments.
Tax-Loss Harvesting: Offset Gains with Losses
Tax-loss harvesting is one of the most effective strategies for reducing capital gains tax. When you sell an investment at a loss, that loss offsets your gains dollar for dollar.
- Short-term losses first offset short-term gains (taxed at the highest rates), providing the biggest tax benefit.
- Net losses up to $3,000 can be deducted against ordinary income each year.
- Excess losses carry forward indefinitely to offset future gains.
- Wash sale rule: You cannot repurchase a "substantially identical" security within 30 days. Buy a similar (but not identical) fund to maintain market exposure.
Real Estate: Primary Residence Exclusion and 1031 Exchanges
The primary residence exclusion allows you to exclude up to $250,000 in gains ($500,000 for married couples) when selling your home, provided you lived there for at least 2 of the last 5 years. Any gain above the exclusion is taxed at capital gains rates.
For investment properties, a 1031 exchange lets you defer capital gains indefinitely by reinvesting the proceeds into a like-kind property within 180 days. You must identify replacement properties within 45 days and use a qualified intermediary. The deferred gain carries over to the new property, but many investors continue doing 1031 exchanges until death, when the stepped-up basis eliminates the gain entirely.
Strategies to Legally Minimize Capital Gains Tax
Beyond holding period and tax-loss harvesting, consider these additional strategies:
- Maximize tax-advantaged accounts: Gains inside 401(k)s, IRAs, HSAs, and Roth accounts are tax-deferred or tax-free.
- Gift appreciated assets to charity: You get a deduction for the full market value and avoid capital gains tax entirely.
- Use the 0% bracket: In lower-income years (retirement, sabbatical, career change), you may qualify for 0% long-term capital gains rates.
- Time your sales: Spread large gains across two tax years to stay in lower brackets. Sell some in December and the rest in January.
- Consider Qualified Opportunity Zones: Investing gains in a QOZ fund can defer and partially reduce capital gains tax.
Common Mistakes to Avoid
Capital gains taxes are triggered by asset sales, but the timing and structuring of those sales profoundly affect how much tax is actually owed. These mistakes frequently cause unnecessary taxable events.
- Selling assets held less than 1 year unintentionally: Short-term capital gains (assets held ≤12 months) are taxed as ordinary income — up to 37% federally. A sale that occurs 364 days after purchase instead of 366 days can trigger a 20–37% tax instead of 0–20%. Always check holding periods before selling.
- Ignoring the net investment income tax (NIIT): Higher-income investors owe an additional 3.8% NIIT on investment income above $200,000 (single) / $250,000 (married). This means the effective federal long-term capital gains rate reaches 23.8% for some investors — state taxes are additive.
- Forgetting about cost basis on inherited assets: Inherited assets receive a "stepped-up" cost basis to the fair market value at the decedent's date of death. Selling inherited shares immediately after receiving them often triggers zero capital gains — a powerful planning tool that's frequently overlooked.
- Not tracking cost basis across brokerages and lot methods: If you've purchased the same ETF across multiple accounts and years, your cost basis depends on which lot you sell and the method elected (FIFO, specific identification, average cost). Selling highest-cost lots first (specific identification) typically minimizes taxable gains.
Expert Tips for 2026
In 2026, married couples with taxable income under $98,900 pay 0% federal tax on long-term capital gains. This creates planning opportunities that extend well into six-figure income households.
- Harvest capital gains at 0% in low-income years: If your taxable income in 2026 falls below $98,900 (married) or $49,450 (single), you can sell appreciated assets, realize the gain at 0% federal tax, and immediately repurchase — resetting your cost basis higher. This is the reverse of tax-loss harvesting and is especially valuable in early retirement.
- Use tax-loss harvesting to offset gains before year-end: Selling positions with unrealized losses offsets capital gains dollar-for-dollar. After the 30-day wash sale rule period expires (selling a substantially identical security within 30 days disallows the loss), repurchase to restore portfolio exposure. Up to $3,000 of excess losses can offset ordinary income annually.
- Donate appreciated assets to charity instead of cash: Donating long-term appreciated stock directly to a donor-advised fund or charity provides a deduction for the full fair market value AND avoids all capital gains tax on the appreciation. This strategy is particularly powerful for assets with very low cost basis.
- Consider an installment sale for large asset sales: Selling a business or real estate via an installment sale (seller financing) spreads the capital gain across multiple tax years, potentially keeping annual recognized gain within lower brackets and reducing the total effective tax rate on the transaction.
Try the Capital Gains Tax Calculator
Put this knowledge into action with our free calculator. Get instant, personalized results.
Frequently Asked Questions
How do I know if my capital gain is short-term or long-term?
It depends on the holding period. If you held the asset for 12 months or less from purchase to sale, the gain is short-term and taxed at ordinary income rates (10–37%). If you held it for more than 12 months, it qualifies for lower long-term rates (0%, 15%, or 20%). The holding period starts the day after purchase and includes the sale date.
Do I owe capital gains tax on inherited assets?
Usually much less than you might expect. Inherited assets receive a "stepped-up" cost basis to the fair market value at the date of death. This means if your parent bought stock at $10,000 and it was worth $100,000 when they passed, your basis is $100,000. If you sell at $105,000, you only owe tax on the $5,000 gain — not the $95,000 gain your parent accumulated. This is one of the most valuable tax provisions in the entire code.
Can capital losses offset ordinary income?
Yes, but only up to $3,000 per year ($1,500 if married filing separately). Capital losses first offset capital gains of the same type (short-term offsets short-term, long-term offsets long-term), then offset the opposite type. Any remaining net loss up to $3,000 reduces ordinary income. Excess losses carry forward to future years with no expiration.
What is the wash sale rule?
The wash sale rule prevents you from claiming a tax loss if you buy a "substantially identical" security within 30 days before or after the sale. If triggered, the loss is disallowed and added to the basis of the replacement shares. To harvest a loss without violating the rule, wait 31 days to repurchase, or buy a similar but not identical investment (e.g., switch from one S&P 500 fund to another total market fund).
Primary Sources
Last reviewed:
All 2026 figures in this article are pulled from the official statutory releases linked below. We update them within 48 hours of a new IRS Revenue Procedure, SSA COLA announcement, or CMS/FHFA/HUD fact sheet.
- IRS Rev. Proc. 2025-32 — 2026 Inflation Adjustments(published )
- IRS Newsroom — 2026 Tax Inflation Adjustments (incl. OBBBA amendments)(published )
Figures are updated whenever the IRS, SSA, CMS, FHFA, HHS, or BLS publishes a new inflation adjustment or statutory change. This tool is for educational purposes only and does not constitute tax, legal, or investment advice. Consult a qualified professional for decisions affecting your personal finances.