Capital Gains Tax on Stocks USA: Complete 2026 Guide
When you sell a stock for more than you paid, the profit is subject to capital gains tax. How much you pay — and whether you pay anything at all — depends on three factors: how long you held the stock before selling, your total taxable income for the year, and which type of account the stock was held in. In 2026, US capital gains tax rates range from 0% to 37% on stock profits, with a single one-year holding period determining which side of that range you’re on.
This guide covers every aspect of capital gains tax on stocks in the USA for 2026 — the exact rates, how they’re calculated, real examples, and strategies to legally reduce what you owe.

The Core Concept: What Is a Capital Gain?
A capital gain occurs when you sell a stock for more than your cost basis — the amount you originally paid, including any commissions at the time of purchase.
Capital gain = Sale price − Cost basis
If you paid $5,000 for 100 shares of a stock and sold for $8,500, your capital gain is $3,500. You owe tax on $3,500 — not on the full $8,500 sale proceeds.
Unrealized vs. realized gains: If you hold a stock that has doubled in value but haven’t sold it, you have an unrealized gain. You owe $0 in taxes on unrealized gains, regardless of how large they grow. Tax liability is triggered only when you sell — “realizing” the gain.
This distinction is one of the most powerful features of stock investing: gains can compound tax-free indefinitely until you choose to sell.
The One-Year Rule: Short-Term vs. Long-Term
The IRS draws one bright line that determines your capital gains tax rate: whether you held the stock for more than one year before selling.
Short-term capital gains: Stocks held 12 months or less before selling. Taxed as ordinary income — same rates as wages. Up to 37% in 2026.
Long-term capital gains: Stocks held more than 12 months (366+ days) before selling. Taxed at preferential rates of 0%, 15%, or 20%. Significantly lower than ordinary income rates for nearly all investors.
The holding period is counted from the day after you purchase the stock to the day you sell it. A stock purchased on January 15, 2025 must be sold on January 16, 2026 or later to qualify for long-term treatment.
2026 Long-Term Capital Gains Tax Rates: Full Brackets
These are the official IRS-confirmed long-term capital gains tax rates for tax year 2026, based on IRS Revenue Procedure 2025-32. You will report these gains on tax returns filed in early 2027.
Important: These brackets are based on your total taxable income — wages, business income, and other sources combined — not just your capital gains alone.
Single Filers
| Rate | Taxable Income Range |
|---|---|
| 0% | $0 to $49,450 |
| 15% | $49,451 to $546,200 |
| 20% | Above $546,200 |
Married Filing Jointly
| Rate | Taxable Income Range |
|---|---|
| 0% | $0 to $98,900 |
| 15% | $98,901 to $613,700 |
| 20% | Above $613,700 |
Head of Household
| Rate | Taxable Income Range |
|---|---|
| 0% | $0 to $66,750 |
| 15% | $66,751 to $580,150 |
| 20% | Above $580,150 |
Married Filing Separately
| Rate | Taxable Income Range |
|---|---|
| 0% | $0 to $49,450 |
| 15% | $49,451 to $306,850 |
| 20% | Above $306,850 |
2026 changes from 2025: The thresholds increased by approximately 2.2–2.7% for inflation. The 0% threshold for married filing jointly increased from $96,700 in 2025 to $98,900 in 2026. The 20% threshold for MFJ increased from $600,050 to $613,700. The rates themselves (0%, 15%, 20%) remain unchanged.
2026 Short-Term Capital Gains Tax Rates
Short-term gains are taxed at ordinary income rates — the same brackets that apply to wages. These apply to any stock sold within 12 months of purchase.
2026 Ordinary Income Tax Brackets (Short-Term Gains)
| Rate | Single | Married Filing Jointly |
|---|---|---|
| 10% | $0–$11,925 | $0–$23,850 |
| 12% | $11,926–$48,475 | $23,851–$96,950 |
| 22% | $48,476–$103,350 | $96,951–$206,700 |
| 24% | $103,351–$197,300 | $206,701–$394,600 |
| 32% | $197,301–$250,525 | $394,601–$501,050 |
| 35% | $250,526–$626,350 | $501,051–$751,600 |
| 37% | Above $626,350 | Above $751,600 |
Standard deduction (2026): $16,100 for single filers, $32,200 for married filing jointly. Your taxable income is your adjusted gross income (AGI) minus the standard deduction (or itemized deductions, if larger).
The Net Investment Income Tax (NIIT): +3.8%
High-income investors face an additional 3.8% federal tax on top of standard capital gains rates. This is the Net Investment Income Tax, enacted in 2013.
NIIT applies when:
- Single filers: Modified AGI above $200,000
- Married filing jointly: Modified AGI above $250,000
- These thresholds have never been inflation-adjusted
The NIIT applies to the lesser of your net investment income or the amount by which your income exceeds the threshold.
Maximum federal rates in 2026 including NIIT:
- Long-term gains (top bracket): 20% + 3.8% = 23.8%
- Short-term gains (top bracket): 37% + 3.8% = 40.8%
Who gets caught by NIIT: Because the $200,000/$250,000 thresholds haven’t adjusted for inflation in over a decade, more middle-to-upper earners are subject to NIIT each year. A married couple earning $260,000 with $50,000 in stock gains pays 3.8% on $10,000 of those gains (the amount above the $250,000 threshold).
How Capital Gains Tax Is Calculated: Step-by-Step
Understanding the calculation is essential for accurate tax planning.
Step 1: Determine your holding period. Count the days from purchase to sale. More than 365 days = long-term. 365 days or fewer = short-term.
Step 2: Calculate your gain. Subtract your cost basis from sale proceeds. If you made multiple purchases, each lot has its own cost basis and holding period.
Step 3: Determine your total taxable income. Add wages, business income, rental income, and other ordinary income. Subtract the standard deduction ($16,100 single, $32,200 MFJ in 2026). This total — not just the capital gain — determines your bracket.
Step 4: Stack capital gains on top of ordinary income. Long-term gains are added “on top of” ordinary income when determining which bracket applies. Your wages fill the lower brackets first; gains are then taxed at the marginal rate of wherever they land.
Step 5: Apply the appropriate rate.
Worked Example: Single Filer, $75,000 Wages + $20,000 Long-Term Gain
- Wages: $75,000
- Standard deduction: -$16,100
- Taxable ordinary income: $58,900
- Long-term gain: $20,000
- Total taxable income: $78,900
Rate on long-term gain: The $20,000 gain sits within the 15% bracket (single: $49,451–$546,200). Tax on gain: 15% × $20,000 = $3,000
If this same $20,000 were a short-term gain instead:
- Added to ordinary income: $58,900 + $20,000 = $78,900
- Short-term gain in the 22% ordinary bracket
- Tax on gain: 22% × $20,000 = $4,400
Tax saved by holding the stock one extra day to qualify for long-term: $1,400
The 0% Rate: Tax-Free Stock Gains
The 0% long-term capital gains rate is one of the most underutilized tax benefits available to US investors.
Who qualifies in 2026:
- Single filers with taxable income under $49,450
- Married couples filing jointly with taxable income under $98,900
How to use the 0% rate strategically:
A retired couple with $60,000 in Social Security and pension income (after deductions, $27,800 in taxable income) can realize approximately $71,100 in long-term stock gains completely tax-free — staying under the $98,900 MFJ threshold.
A single investor earning $35,000 in wages (after standard deduction: $18,900 in taxable ordinary income) can realize approximately $30,550 in long-term gains tax-free before crossing the $49,450 threshold.
Strategic gain realization in 0% years: Investors whose income varies annually should consider realizing long-term gains in years when their taxable income falls below the 0% threshold. This permanently eliminates tax on appreciated stock positions without triggering immediate tax liability.
State Capital Gains Taxes: What Federal Rates Don’t Cover
Federal rates are only part of the picture. Most US states impose additional taxes on capital gains.### States with Zero Capital Gains Tax
Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming have no individual income tax and impose no state capital gains tax. Investors in these states pay only federal rates on stock profits.
States with the Highest Capital Gains Tax
| State | State Tax on Gains | Federal + State (High Earner) |
|---|---|---|
| California | Up to 13.3% | 37.1% |
| New Jersey | Up to 10.75% | 34.55% |
| New York | Up to 10.9% (+NYC) | 34.7%+ |
| Oregon | Up to 9.9% | 33.7% |
| Minnesota | Up to 9.85% | 33.65% |
| Vermont | Up to 8.75% | 32.55% |
| Iowa | Up to 8.53% | 32.33% |
California note: California taxes all capital gains as ordinary income — there’s no distinction between short-term and long-term at the state level. A California investor with large stock gains faces up to 13.3% state rate on top of the federal rate, making California one of the highest combined capital gains tax environments in the world.
The state tax difference on a $100,000 long-term gain (high earner):
Florida (no state tax): 23.8% total = $23,800 owed California (13.3% state): 37.1% total = $37,100 owed Difference: $13,300 on the same trade
Capital Losses: How They Reduce Your Tax Bill
Capital losses — selling stock for less than your cost basis — can directly offset your taxable gains.
The Netting Rules
Same-type netting first: Short-term losses first offset short-term gains. Long-term losses first offset long-term gains. This ordering is important because it preserves the preferential long-term rate when possible.
Cross-netting: Remaining losses after same-type netting then offset the opposite type of gain.
$3,000 ordinary income deduction: If capital losses exceed all capital gains, up to $3,000 of the net loss can deduct against ordinary income per year.
Unlimited loss carryforward: Losses beyond $3,000 carry forward indefinitely to offset future gains in any amount.

Loss Netting Example
| Transaction | Type | Amount |
|---|---|---|
| Stock A sold at gain | Short-term | +$8,000 |
| Stock B sold at loss | Short-term | -$3,000 |
| Stock C sold at gain | Long-term | +$12,000 |
| Stock D sold at loss | Long-term | -$5,000 |
Netting:
- Short-term: $8,000 − $3,000 = $5,000 net short-term gain
- Long-term: $12,000 − $5,000 = $7,000 net long-term gain
Tax owed:
- $5,000 short-term at 22% (example): $1,100
- $7,000 long-term at 15%: $1,050
- Total: $2,150
Without the losses, this investor would have owed: $8,000 × 22% + $12,000 × 15% = $1,760 + $1,800 = $3,560
Loss netting saved: $1,410
Tax-Loss Harvesting: Turning Losers Into Tax Savings
Tax-loss harvesting is the deliberate sale of losing positions to generate capital losses that offset taxable gains.
The basic approach:
You hold Stock A (up $15,000, held 14 months = long-term) and Stock B (down $6,000, held 8 months = short-term loss). You decide to take profits in Stock A.
Without harvesting: $15,000 long-term gain × 15% = $2,250 tax. After selling Stock B to harvest the $6,000 loss: net long-term gain = $9,000 × 15% = $1,350 tax. Tax saved by harvesting: $900
You can immediately reinvest the Stock B proceeds in a similar (but not identical) investment to maintain market exposure.
The Wash-Sale Rule
The IRS prohibits claiming a loss on a stock if you buy the same or substantially identical security within 30 days before or after the sale — the “wash sale” rule.
What triggers the wash-sale rule:
- Selling Apple stock at a loss and buying Apple stock back within 30 days
- Selling an S&P 500 ETF at a loss and buying another S&P 500 ETF immediately (potentially, if substantially identical)
- Selling an option and buying the underlying stock within 30 days
What doesn’t trigger the wash-sale rule:
- Selling a Microsoft loss position and buying Google (different securities)
- Selling Vanguard Total Market ETF (VTI) and buying Schwab Total Market ETF (SCHB) — similar but not identical
- Waiting 31+ days before repurchasing the same security
The wash-sale rule applies to losses only — selling at a gain and immediately repurchasing is not affected.
Cost Basis Methods: How You Calculate Your Gain
When you’ve purchased the same stock multiple times at different prices, the cost basis method you choose determines how much of your gain is taxable.
FIFO (First In, First Out): The default at most brokerages. Oldest shares are considered sold first. Often produces the largest taxable gain if the stock has appreciated over time.
Specific Lot Identification: You tell your broker exactly which shares to sell. Choosing the highest-cost-basis shares minimizes the taxable gain. Must be specified before the trade executes.
Average Cost: More commonly used for mutual funds. Averages all purchase prices. Less precise than specific lot identification for minimizing gains.
Example of specific lot identification:
You own 200 shares of a stock purchased in two lots:
- Lot 1: 100 shares at $20 (cost $2,000)
- Lot 2: 100 shares at $45 (cost $4,500)
- Current price: $60
Selling 100 shares using FIFO (Lot 1 first): gain = $60 × 100 − $2,000 = $4,000 gain Selling 100 shares specifying Lot 2: gain = $60 × 100 − $4,500 = $1,500 gain
Tax saved by specifying Lot 2 at 15% rate: $375 on this one trade. Across a large portfolio with frequent rebalancing, specific lot identification saves thousands per year.
Special Situations: Dividends, Inherited Stock, and Gifted Stock
Qualified Dividends
Dividends paid by most US corporations and held-for-60-days stocks are taxed at the same rates as long-term capital gains — 0%, 15%, or 20%. This is a major benefit for income-focused investors. A $10,000 qualified dividend payment to an investor in the 15% bracket costs $1,500 in federal tax rather than the $2,200 it would cost as ordinary income at the 22% rate.
Non-qualified dividends (REITs, some foreign dividends, short-term holdings) are taxed as ordinary income.
Inherited Stock: The Step-Up in Basis
Stocks inherited at death receive a “step-up in basis” to the market value on the date of death. The entire gain accumulated during the original owner’s lifetime is permanently eliminated for the inheritor.
Example: Your grandmother bought Apple stock for $5,000 in 2005. By 2026, it’s worth $200,000. If she sells before death: $195,000 taxable gain. If you inherit it and immediately sell at $200,000: $0 taxable gain — your basis is stepped up to $200,000.
This is why wealthy investors with large unrealized gains sometimes hold appreciated positions until death — the step-up in basis permanently eliminates the embedded capital gains tax for their heirs.
Gifted Stock: Carry-Over Basis
Stock received as a gift generally retains the donor’s original cost basis — there’s no step-up for gifts during life. If your parent gifts you $50,000 of stock they bought for $10,000, your basis is $10,000. When you sell for $50,000, you owe tax on $40,000 of gains.
Gifting appreciated stock to charity avoids this: you deduct the full market value and avoid capital gains entirely.
Tax-Advantaged Accounts: Eliminating Capital Gains Tax Entirely
The most powerful capital gains tax strategy is choosing the right account type. Inside certain accounts, capital gains tax simply doesn’t apply.
Roth IRA — Permanent Tax Elimination
All investment growth inside a Roth IRA is permanently tax-free. Capital gains, dividends, and interest earned inside a Roth IRA are never taxed — not when realized inside the account, not when withdrawn in retirement.
The 30-year math:
$50,000 invested, 7% annual return, 30 years:
Roth IRA:
- Final balance: $380,613
- Capital gains tax at withdrawal: $0
- Investor keeps: $380,613
Taxable brokerage account (15% long-term rate on gains):
- Final balance before tax: $380,613
- Gain above original $50,000: $330,613
- Tax at 15%: $49,592
- Investor keeps: $331,021
Roth IRA advantage: $49,592 permanently kept instead of paid in capital gains tax.
The 2026 Roth IRA contribution limit is $7,000 per year ($8,000 if age 50+).

Traditional IRA and 401(k) — Tax Deferral
Capital gains inside Traditional IRAs and 401(k) accounts are not taxed as they occur. Instead, all withdrawals in retirement are taxed as ordinary income. This defers — but doesn’t eliminate — the tax. The benefit depends on whether you’re in a lower tax bracket at withdrawal than during your contribution years.
HSA — Triple Tax Advantage
Health Savings Accounts allow pre-tax contributions, tax-free investment growth, and tax-free withdrawals for qualified medical expenses. For stock investors who use HSAs as investment vehicles (funding with maximum contributions and investing in low-cost index funds), all capital gains within the HSA are permanently tax-free when used for medical expenses.
Estimated Quarterly Tax Payments
If you realize substantial capital gains during the year, you may need to make estimated quarterly tax payments to avoid an underpayment penalty.
When quarterly payments apply: You expect to owe $1,000 or more in federal tax beyond withholding for the year.
2027 estimated payment deadlines for 2026 gains:
- Q1 (Jan–Mar 2026 gains): Due April 15, 2026
- Q2 (Apr–May 2026 gains): Due June 16, 2026
- Q3 (Jun–Aug 2026 gains): Due September 15, 2026
- Q4 (Sep–Dec 2026 gains): Due January 15, 2027
Investors who sell a large stock position mid-year should calculate estimated taxes in that quarter rather than waiting until the April 2027 filing deadline — the underpayment penalty applies even if you pay in full at filing.
Seven Strategies to Legally Reduce Capital Gains Tax on Stocks
① Hold for more than one year. The single most impactful action. The difference between short-term (up to 37%) and long-term (max 20%) rates is enormous. For a $50,000 gain, the difference at typical income levels is $3,500–$8,500 in federal tax.
② Use a Roth IRA for highest-growth positions. Your most aggressive growth investments belong in a Roth IRA where all gains are tax-free. Conservative bonds belong in taxable accounts where their interest income would be taxed anyway.
③ Harvest losses to offset gains. Before year-end, review your portfolio for positions showing unrealized losses. Sell them to generate capital losses that offset your profitable sales. Reinvest proceeds in similar (but not identical) positions to maintain market exposure.
④ Realize gains in 0% rate years. Investors with variable income should realize long-term gains in years when total taxable income falls under the 0% threshold — $49,450 for single, $98,900 for MFJ in 2026. This permanently eliminates the tax on those gains.
⑤ Use specific lot identification when selling. Choose which shares to sell based on their cost basis and holding period. Selling highest-cost-basis shares minimizes the taxable gain. Selling shares held over a year qualifies for long-term rates.
⑥ Gift appreciated stock to charity. Instead of donating cash, donate appreciated stock directly to a qualified charity. You receive a full fair-market-value deduction and avoid all capital gains tax on the appreciated stock — a double benefit.
⑦ Hold until death (for estate planning). Stocks held until death receive a step-up in basis, permanently eliminating all accumulated capital gains for heirs. This strategy is most relevant for investors with very large unrealized gains in taxable accounts who don’t need the cash during their lifetime.
Complete Capital Gains Tax Scenarios: Real Examples
Scenario 1: Long-Term Gain at 0% Rate
Maria, single, earns $32,000/year as a part-time consultant. After the $16,100 standard deduction, her taxable ordinary income is $15,900. She sells $25,000 in stock she’s held for 3 years, generating a $15,000 long-term gain. Total taxable income: $15,900 + $15,000 = $30,900 — well under the $49,450 single-filer 0% threshold.
Capital gains tax owed: $0.
Scenario 2: Short-Term Gain at High Rate
James, married filing jointly with $200,000 in combined wages. After deductions, taxable ordinary income: $167,800. He sells tech stock held 9 months for a $40,000 gain.
Short-term gain tax: $40,000 at 22% ordinary income bracket = $8,800
If James had waited 4 more months to qualify for long-term treatment: $40,000 at 15% = $6,000. Tax saved by waiting: $2,800.
Scenario 3: High Earner with NIIT
Sarah, single, earns $350,000 in salary. Taxable income after deductions: $333,900. She sells $80,000 in index fund shares held 5 years, generating a $50,000 long-term gain.
- Federal long-term rate at 15%: $50,000 × 15% = $7,500
- NIIT at 3.8%: $50,000 × 3.8% = $1,900 (all gains are above $200K threshold)
- Total federal tax on gains: $9,400
If Sarah lives in California, add state tax: $50,000 × 13.3% = $6,650. Total combined tax: $16,050 on $50,000 in gains.
Scenario 4: Using Tax-Loss Harvesting
David, MFJ with $180,000 income (taxable: $147,800). He sells Stock A for a $30,000 long-term gain. He also holds Stock B showing a $12,000 unrealized loss, held 7 months.
Without harvesting: $30,000 × 15% = $4,500 in taxes.
David sells Stock B to realize the $12,000 short-term loss. Net position: $30,000 long-term gain − $12,000 short-term loss = $18,000 net long-term gain.
Tax: $18,000 × 15% = $2,700. David reinvests the Stock B proceeds immediately in a similar sector fund.
Tax saved through loss harvesting: $1,800.

FAQ
Q: Do I always pay capital gains tax when I sell stock? Only if you sell for a profit in a taxable brokerage account. If you sell at a loss, there’s no capital gains tax — and the loss can offset other gains. If the stock is held in a Roth IRA, there’s no capital gains tax on any sale, ever. If it’s in a Traditional IRA or 401(k), taxes apply at withdrawal as ordinary income, not as capital gains.
Q: What if I sell stocks and reinvest the money immediately? It doesn’t matter. The IRS taxes the gain when you sell, regardless of what you do with the proceeds. Reinvesting into another stock doesn’t defer or eliminate the tax liability from the sale.
Q: How does the IRS know I sold stocks? Your trading app (Fidelity, Schwab, Robinhood, etc.) is required to send Form 1099-B to both you and the IRS by January 31st each year, reporting every sale transaction. The IRS receives this information directly — stock sales are not self-reported.
Q: Can I avoid capital gains tax by waiting to sell in a lower-income year? Yes — this is a legitimate and widely used strategy. If you expect significantly lower income next year (retirement, career change, sabbatical), realizing large gains in the lower-income year can reduce your rate from 15% to 0% or from 20% to 15%. Planning the timing of stock sales around income variation is one of the most effective legal tax strategies.
Q: What is the capital gains tax rate on stocks for most Americans in 2026? For most middle-income US investors in 2026, the long-term capital gains rate is 15%. The 0% rate applies to those with taxable income under $49,450 (single) or $98,900 (MFJ). The 20% rate applies to the highest-income taxpayers. Short-term gains follow ordinary income brackets of 10%–37%.
Internal linking suggestions:
- “Stock Trading Tax USA (2026)“
- “Cost of Stock Trading Apps USA (2026)“
- “Which Trading Apps Have Lowest Fees USA (2026)”
#capital gains tax on stocks USA #capital gains tax stocks USA 2026 rates brackets #how much capital gains tax on stocks USA 2026 #long term short term capital gains tax stocks USA #capital gains tax rate USA investors 2026
댓글 남기기