Capital Gains Tax Explained (2026 Guide for US Investors)
Capital gains tax is the tax you pay on profits from selling investments. Long-term gains (hold over 1 year) are taxed at 0-20%, while short-term gains are taxed as ordinary income at up to 37%. Here is everything you need to know.
Capital gains tax is one of the most important concepts for investors to understand. The difference between short-term and long-term capital gains rates can cost — or save — you tens of thousands of dollars over your investing lifetime. In 2026, with the tax brackets adjusted for inflation and potential changes to capital gains rates on the horizon, understanding the rules and strategies is more important than ever.
What Is Capital Gains Tax?
Capital gains tax is a tax on the profit from selling an asset that has increased in value. It applies to stocks, bonds, real estate, and other investments.
👉 Capital gain calculation: Sale price minus cost basis (what you paid for it, including commissions and improvements). If you bought stock for $1,000 and sold for $1,500, your capital gain is $500.
👉 Capital loss: If you sell for less than you paid, you have a capital loss. Losses can offset gains, reducing your tax bill. Net losses beyond gains can offset up to $3,000 of ordinary income per year.
👉 Taxable events: Selling an investment triggers capital gains tax. Buying and holding does not. Dividends are taxed separately (as dividend income, qualified or non-qualified).
👉 Wash-sale rule: If you sell a security at a loss and buy a substantially identical security within 30 days before or after, the loss is disallowed for tax purposes. This prevents investors from creating artificial losses.
Short-Term vs Long-Term Rates
The holding period of your investment determines whether it is taxed at short-term or long-term rates. This is the single most important factor in capital gains tax planning.
👉 Short-term capital gains: Assets held for 1 year or less. Taxed at your ordinary income tax rate (10-37% in 2026). This is the highest rate most investors face. Day traders and frequent traders pay the most in short-term capital gains tax.
👉 Long-term capital gains: Assets held for more than 1 year. Taxed at preferential rates: 0%, 15%, or 20% depending on your taxable income. These rates are significantly lower than ordinary income rates for most taxpayers.
👉 The difference matters: A short-term gain of $10,000 for someone in the 32% bracket costs $3,200 in tax. The same gain held long-term (15% rate) costs $1,500. The difference of $1,700 is a 17% lower tax bill simply by holding for one year and one day.
2026 Tax Brackets for Capital Gains
Here are the 2026 long-term capital gains tax brackets (adjusted for inflation):
👉 0% rate: Single filers with taxable income up to $47,025. Married filing jointly up to $94,050. Head of household up to $63,000. If your total income is below these thresholds, you pay zero capital gains tax.
👉 15% rate: Single filers with income $47,026-$518,900. Married filing jointly $94,051-$583,750. Head of household $63,001-$551,350. Most middle-to-upper income investors fall into the 15% bracket.
👉 20% rate: Single filers over $518,900. Married filing jointly over $583,750. An additional 3.8% Net Investment Income Tax (NIIT) applies above $200,000/$250,000, making the effective top rate 23.8%.
👉 Planning opportunity: If you are in the 0% bracket, you can realize capital gains tax-free. This is a powerful strategy for low-income years, early retirement, or gifting appreciated assets to children or relatives in lower brackets.
How to Minimize Capital Gains Tax
Several legitimate strategies can reduce or eliminate capital gains taxes:
👉 Hold for more than 1 year: The single most effective strategy. Every investment held for over a year qualifies for lower long-term rates. Make this your default approach for all taxable account investments.
👉 Tax-loss harvesting: Sell losing investments to offset gains from winners. You can offset unlimited gains and up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely. This is most effective in volatile markets.
👉 Tax-advantaged accounts: Hold investments in 401(k)s, IRAs, and HSAs where capital gains are not taxed annually. In Traditional accounts, you pay ordinary income tax on withdrawals. In Roth accounts, withdrawals are tax-free.
👉 Gifting appreciated assets: Donate appreciated stock to charity instead of cash. You avoid capital gains tax and get a charitable deduction for the full market value. Or gift appreciated stock to family members in lower tax brackets.
👉 Qualified Opportunity Zones: Investing capital gains into Opportunity Zones defers and potentially eliminates capital gains tax on the original gain, plus all appreciation on the Opportunity Zone investment becomes tax-free after 10 years.
Tax-Loss Harvesting Basics
Tax-loss harvesting is one of the most powerful strategies for reducing capital gains taxes. Here is how it works:
👉 The concept: When an investment in your taxable account loses value, sell it to realize the loss. Use that loss to offset capital gains from other investments. If losses exceed gains, offset up to $3,000 of ordinary income annually.
👉 Example: You have $5,000 of gains from selling Stock A and $3,000 of losses from Stock B. Harvest the loss: your net taxable gain is $2,000. You saved taxes on $3,000 of gains at 15% = $450 saved.
👉 Wash-sale rule: You cannot buy a substantially identical security within 30 days before or after the sale. But you can buy a similar but not identical fund — for example, sell VOO (S&P 500) and buy VTI (total market) to maintain market exposure while harvesting the loss.
👉 Direct indexing: Wealthy investors use direct indexing services that harvest hundreds of tax losses per year automatically. These services buy individual stocks rather than ETFs, allowing granular tax-loss harvesting at the individual security level.
Wash-Sale Rule Explained
The wash-sale rule prevents investors from selling a security at a loss and immediately repurchasing it to claim the tax benefit. Understanding this rule is critical for tax-loss harvesting.
👉 How it works: If you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the loss is disallowed. The disallowed loss is added to the cost basis of the repurchased shares.
👉 What counts as substantially identical? Same stock or ETF (selling VOO and buying VOO within 30 days). Similar but not substantially identical: selling VOO (S&P 500) and buying VTI (total market) is generally considered acceptable, though the IRS has not defined this precisely.
👉 Across accounts: The wash-sale rule applies across all accounts you control, including IRAs. You cannot sell a stock for a loss in your taxable account and buy the same stock in your IRA within 30 days. Doing so in an IRA permanently disallows the loss.
👉 Working around it: Use different ETFs that track different indices. Sell VOO and buy VTI. Or sell an active fund and buy a passive index fund. The key is maintaining market exposure while avoiding substantially identical securities.
State Capital Gains Taxes
State taxes add another layer to capital gains taxation. The impact varies dramatically by state.
👉 States with no income tax: Alaska, Florida, Nevada, New Hampshire (no tax on wages), South Dakota, Tennessee, Texas, Washington, Wyoming. These states do not tax capital gains at the state level, saving investors 4-13% depending on what state they would otherwise live in.
👉 Highest state rates: California (13.3%), Hawaii (11%), New York (10.9%), New Jersey (10.75%), Oregon (9.9%). In California, the top combined federal + state + NIIT rate on short-term gains is 54.1% — more than half the gain goes to taxes.
👉 State planning: If you are close to retirement and live in a high-tax state, consider relocating to a no-income-tax state before realizing large capital gains. States have different rules about what constitutes residency — you typically need to spend more than 183 days outside the high-tax state.
Common Capital Gains Mistakes
Avoid these common mistakes that unnecessarily increase your capital gains tax bill:
👉 Selling too soon: Selling an investment at 11 months instead of 12 months costs you the difference between short-term and long-term rates. Set reminders for your holding periods. A few extra weeks can save thousands in taxes.
👉 Ignoring cost basis: Not tracking your cost basis accurately leads to overpaying taxes. Use specific identification (SpecID) method to sell the highest-cost-basis shares first, minimizing your gain.
👉 Not harvesting losses: Letting losing investments sit without selling them is a missed opportunity. Harvest losses annually to offset gains and reduce your tax bill. Even if you do not have gains, the $3,000 ordinary income offset is valuable.
👉 Wash-sale violations in IRAs: Selling a stock for a loss in taxable and buying it in your IRA within 30 days permanently disables the loss. Coordinate your taxable and retirement account trading carefully.
👉 Forgetting state taxes: If you live in a high-tax state, state capital gains taxes can nearly double your total tax bill. Factor state taxes into your sell/hold decisions and consider state-specific municipal bonds.
FAQ
Do I pay capital gains tax if I reinvest the proceeds?
Yes. Reinvesting proceeds from a sale does not avoid capital gains tax. The tax is triggered by the sale itself, regardless of what you do with the money. The only exception is 1031 exchanges for real estate (deferring gains on like-kind property exchanges).
What is the capital gains tax rate for 2026?
Long-term capital gains rates: 0% (income up to $47,025 single, $94,050 married), 15% ($47,026-$518,900 single), 20% (over $518,900 single). Short-term gains are taxed as ordinary income at 10-37%. An additional 3.8% NIIT applies above $200,000/$250,000.
How do I calculate capital gains tax?
Calculate your gain: sale price minus cost basis (purchase price plus commissions). Determine if it is short-term (held under 1 year) or long-term (over 1 year). Apply the appropriate tax rate based on your total taxable income. Subtract any capital losses to reduce the gain.
Can capital gains push me into a higher tax bracket?
Capital gains are included in your adjusted gross income (AGI), which can push you into higher tax brackets for other purposes — including the 3.8% NIIT threshold, Medicare premiums (IRMAA), and phase-outs for deductions and credits. Plan large gains carefully.
What happens to capital gains when I die?
At death, the cost basis of assets is stepped up to their fair market value. This means capital gains accumulated during the decedent's lifetime are permanently eliminated from taxation. Heirs can sell inherited assets immediately with little or no capital gains tax. This is one of the most powerful provisions in the tax code for wealthy families.