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 $48,350 (single) / $96,700 (MFJ)
- 15%: Taxable income up to $533,400 (single) / $600,050 (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.
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).