Calculators Converters Generators Developer Tools Finance Tools Writing Tools SEO Tools Image Tools Network Tools Productivity Tools Social Media Tools
Blog About Contact
FinanceJune 9, 20269 min read

How Capital Gains Tax Works: Short-Term vs Long-Term Rates Explained

How Capital Gains Tax Works: Short-Term vs Long-Term Rates Explained

What Is Capital Gains Tax?

Capital gains tax is the tax levied on the profit from selling a capital asset (stocks, bonds, real estate, mutual funds, ETFs, cryptocurrency, and other investments) for more than you paid for it.

$Capital Gain = Sale Price - Cost Basis$

Your cost basis is what you originally paid for the asset, including any purchase commissions or fees. If you bought 100 shares at $40 ($4,000 total) and sold them at $65 ($6,500), your capital gain is $2,500.

Capital loss occurs when you sell for less than your cost basis. Capital losses can offset capital gains, a strategy called tax-loss harvesting, reducing your overall tax liability.

The critical distinction in capital gains taxation is holding period:

* Short-term capital gain: Asset held for 12 months or less, taxed at ordinary income tax rates (10-37%)

* Long-term capital gain: Asset held for more than 12 months, taxed at preferential rates (0%, 15%, or 20%)

This one-year threshold is the most important date in investment tax planning.


Short-Term Capital Gains Tax Rates 2026

Short-term gains are taxed as ordinary income: they're added to your taxable income and taxed at the same marginal rates as your salary.

Single Filers: Short-Term Capital Gains (= Ordinary Income Rates)

Taxable Income

Tax Rate

$0 - $11,925

10%

$11,926 - $48,475

12%

$48,476 - $103,350

22%

$103,351 - $197,300

24%

$197,301 - $250,525

32%

$250,526 - $626,350

35%

Over $626,350

37%

A short-term gain of $20,000 for a single filer earning $80,000 in ordinary income pushes total income to $100,000, with the gain taxed primarily at 22%, resulting in approximately $4,400 in federal tax on that gain alone.

________________

Long-Term Capital Gains Tax Rates 2026

Long-term capital gains on assets held more than 12 months are taxed at significantly lower preferential rates. These rates apply to net long-term capital gains: they do not stack on top of ordinary income; instead, they are layered on top of ordinary income but taxed at their own rate.

Long-Term Capital Gains Rates: 2026

Filing Status

0% Rate Up To

15% Rate Up To

20% Rate Above

Single

$48,350

$533,400

Over $533,400

Married Filing Jointly

$96,700

$600,050

Over $600,050

Head of Household

$64,750

$566,700

Over $566,700

Married Filing Separately

$48,350

$300,000

Over $300,000

The 0% rate: A single filer with taxable income (including long-term gains) below $48,350 pays zero federal capital gains tax on long-term gains. This is one of the most powerful and underused tax planning tools available.

The 15% rate: Applies to most middle and upper-middle income investors. A single filer earning $90,000 in salary and realising a $30,000 long-term gain pays 15% ($4,500) on the gain, versus 22-24% ($6,600-$7,200) if the same gain were short-term.

The 20% rate: Applies only to very high earners: single filers with income exceeding $533,400.

________________

Net Investment Income Tax (NIIT): The Additional 3.8%

High-income investors face an additional layer: the Net Investment Income Tax (NIIT), introduced under the Affordable Care Act. This 3.8% surtax applies to the lesser of:

* Net investment income (capital gains, dividends, interest, rental income), or

* The amount by which modified AGI exceeds the threshold

NIIT Thresholds (not inflation-adjusted):

* Single: $200,000

* Married Filing Jointly: $250,000

Effective top rates including NIIT:

* Long-term: 20% + 3.8% = 23.8%

* Short-term (at 37% bracket): 37% + 3.8% = 40.8%

________________

How to Calculate Your Capital Gains Tax: Step by Step

Step 1: Determine your cost basis

Cost basis = purchase price + acquisition costs (commissions, fees). For stocks acquired in multiple lots at different prices, you can choose which lots to sell: a strategy for minimising gains.

Step 2: Calculate the capital gain or loss

Capital Gain = Sale Price − Cost Basis

Step 3: Determine holding period

Count from the day after purchase to the date of sale. One year and one day = long-term. Exactly one year or less = short-term.

Step 4: Identify your applicable rate

Combine your ordinary income (salary, business income) with your capital gain to determine which bracket applies.

Step 5: Apply netting rules

Before calculating tax, net your gains and losses:

* Long-term gains offset long-term losses first

* Short-term gains offset short-term losses first

* Net short-term losses can offset net long-term gains

* Net capital losses offset ordinary income up to $3,000/year ($1,500 married filing separately)

* Excess losses carry forward to future tax years indefinitely

→ Use our free Net Worth Calculator at GlobalUtilityHub to track your investment portfolio value and plan your capital gains tax exposure, no sign-up needed.

________________

Capital Gains Tax Example: Short-Term vs Long-Term

Scenario: Single filer, $75,000 in ordinary taxable income. Sells stock with a $25,000 gain.

If held less than 12 months (short-term):

* $25,000 gain taxed as ordinary income

* Income rises from $75,000 to $100,000

* Gain falls in 22% bracket

* Tax on gain: $25,000 × 22% = $5,500

If held more than 12 months (long-term):

* Total income including gain: $100,000

* Long-term gain taxed at 15% (below $533,400 threshold)

* Tax on gain: $25,000 × 15% = $3,750

Tax saved by holding one additional day past the 12-month mark: $1,750

On a $100,000 gain: short-term tax = $22,000 (at 22%). Long-term tax = $15,000. Savings: $7,000, for waiting one extra day past the 12-month mark.

________________

Capital Gains Tax Rates: Short-Term vs Long-Term Comparison

Ordinary Income

Short-Term Rate

Long-Term Rate

Annual Saving per $10,000 Gain

$40,000

12%

0%

$1,200

$75,000

22%

15%

$700

$110,000

24%

15%

$900

$200,000

32%

15%

$1,700

$260,000

35%

15%

$2,000

$650,000

37%

20% (+3.8%)

$1,320

________________

Tax-Loss Harvesting: Turning Losses Into Tax Savings

Tax-loss harvesting is the deliberate sale of investments at a loss to offset capital gains elsewhere in your portfolio, reducing your overall tax liability.

Example: You have $15,000 in long-term capital gains from selling appreciated stocks. You also hold a fund that's dropped $8,000 from your purchase price.

By selling the losing fund, you realise the $8,000 loss. This offsets $8,000 of your $15,000 gain, leaving only $7,000 subject to long-term capital gains tax.

Tax saved at 15% rate: $8,000 × 15% = $1,200

The wash-sale rule: The IRS prohibits repurchasing the same or a "substantially identical" security within 30 days before or after the sale (the wash-sale window). If you violate this rule, the loss is disallowed. You can immediately buy a similar but not identical fund (sell a Vanguard S&P 500 ETF and immediately buy an iShares S&P 500 ETF) maintaining market exposure without triggering the wash-sale rule.

________________

8 Legal Strategies to Reduce Capital Gains Tax

1
Hold for more than 12 months The single most impactful action. For most middle-income investors, this converts a 22-24% short-term rate to a 15% long-term rate. Never sell an appreciated asset held for 11 months and 3 weeks without checking whether waiting a few more weeks saves thousands.
2
Use the 0% rate if eligible Single filers with taxable income below $48,350 (including the gain) pay zero federal tax on long-term capital gains. In years of lower income (career transition, early retirement, sabbatical) strategically realising gains can be completely tax-free.
3
Harvest tax losses Offset gains with losses from other positions. The $3,000 annual deduction against ordinary income is also valuable: at a 22% rate, it saves $660/year, and losses carry forward indefinitely.
4
Invest through tax-advantaged accounts Capital gains inside a 401(k), Traditional IRA, or Roth IRA are not taxed at the time of sale. In a Roth IRA, gains are never taxed: the most powerful long-term tax shelter available for investments expected to appreciate significantly.
5
Use direct indexing for high-value taxable portfolios Direct indexing (owning individual securities rather than funds) allows continuous tax-loss harvesting across hundreds of positions, significantly reducing the tax drag on large taxable portfolios. Typically practical at $250,000+ in taxable assets.
6
Gift appreciated assets to charity Donating appreciated assets directly to charity (rather than selling and donating cash) avoids capital gains tax entirely on the appreciation and generates a charitable deduction for the full market value. Donor-advised funds simplify this process.
7
Step up in basis through inheritance Assets inherited receive a "stepped-up" basis to their fair market value at the date of death, eliminating all embedded capital gains. This is one of the most significant wealth transfer provisions in the US tax code.
8
Opportunity Zone investments Investing capital gains in Qualified Opportunity Zone funds allows deferral of the original gain until 2026 (under current law) and potential elimination of gains on the Opportunity Zone investment held for 10+ years. Complex but potentially very valuable for large capital gains events.

________________

Common Mistakes to Avoid

Selling appreciated assets without checking the holding period Many investors sell positions without checking whether they've crossed the 12-month threshold. Brokerage platforms display holding periods: always check before selling an appreciated position. Waiting days or weeks past the 12-month mark can save thousands.

Ignoring the wash-sale rule when harvesting losses Selling a losing position and immediately repurchasing the same fund triggers the wash-sale rule: the loss is disallowed and added back to your basis in the repurchased shares. Use a similar but not identical replacement fund for the 30-day window.

Realising large gains in a high-income year If you can defer a sale to a year with lower income (after a career change, during early retirement, or through other income timing strategies) you may qualify for the 0% or 15% rate rather than 20%. Year-end planning with a tax professional on large gains is almost always worthwhile.

Forgetting about state capital gains tax Federal rates are only part of the picture. Most US states tax capital gains as ordinary income, with rates ranging from 0% (no state income tax: Texas, Florida, Nevada, Washington) to 13.3% (California). California's combined federal and state top rate on short-term gains can exceed 50%. State tax must always be included in total gain calculations.

Ignoring adjusted cost basis for reinvested dividends Many investors forget that reinvested dividends increase their cost basis. If you reinvested $3,000 in dividends over the years in a fund you're now selling, your cost basis is $3,000 higher than the original purchase price, reducing your taxable gain by $3,000. Always use the adjusted cost basis from your brokerage, not the original purchase price alone.

________________


✍️ Written by the GlobalUtilityHub Editorial Team|📅 Last reviewed: May 2026|Fact-checked for accuracy
Ready to try it yourself?

Use our free Income Tax Calculator to apply what you have learned.

Open Income Tax Calculator

Frequently Asked Questions

Long-term capital gains (assets held 12+ months) are taxed at 0%, 15%, or 20% depending on income. Single filers with taxable income below $48,350 pay 0%; most middle-income investors pay 15%; only those above $533,400 (single) pay 20%. Short-term gains are taxed at ordinary income rates of 10-37%. High earners also pay an additional 3.8% Net Investment Income Tax.
The most effective legal strategies: hold assets for 12+ months to qualify for long-term rates, use tax-advantaged accounts (401k, Roth IRA) for investments likely to appreciate, harvest tax losses to offset gains, realise gains in low-income years to qualify for the 0% rate, and donate appreciated assets directly to charity.
No: unrealised gains (increases in value while you still own the asset) are not taxed. Capital gains tax is triggered by a taxable event: selling, exchanging, or otherwise disposing of the asset. Unrealised gains in a buy-and-hold portfolio are not taxable until sale.
Long-term capital gains are not added to ordinary income for the purpose of applying ordinary income tax rates to the gain itself. However, they do count toward your total income for the purpose of determining which long-term rate bracket applies. Short-term gains are fully added to ordinary income and taxed at the applicable marginal rate.
Real estate held for 12+ months qualifies for long-term rates. The primary residence exclusion allows single filers to exclude up to $250,000 of gain ($500,000 for married filing jointly) from a home sold after living in it for at least 2 of the last 5 years. Investment property gains are fully taxable, but depreciation recapture (taxed at 25%) applies to the portion of gain attributable to depreciation taken during ownership.
Tax-loss harvesting is the deliberate sale of investments at a loss to offset capital gains elsewhere in your portfolio. The loss reduces your taxable gain dollar for dollar. Net losses above gains can offset up to $3,000 of ordinary income per year, with excess losses carried forward indefinitely. The wash-sale rule prohibits repurchasing the same security within 30 days.
A single filer whose total taxable income, including long-term capital gains, stays below $48,350 in 2026 pays zero federal capital gains tax on those long-term gains. This is particularly powerful in early retirement, career transition years, or for investors strategically managing their income in low-earning periods.
Yes. Capital gains count toward your "combined income" calculation for Social Security taxation purposes. If combined income exceeds $25,000 (single) or $32,000 (married), up to 50% of Social Security benefits become taxable. Above $34,000 (single) or $44,000 (married), up to 85% of benefits are taxable. Large capital gain realisation in a single year can push more Social Security benefits into the taxable range.