Read the screenplay: FANNIEGATE — $7 trillion. 17 years. The biggest fraud in American capital markets.

Investing & Tax Strategy

Capital Gains Tax Guide

Everything you need to know about capital gains taxes — rates, rules, and 10 strategies to keep more of your investment profits.

Updated April 2026 · ~15 min read

What Are Capital Gains?

A capital gain is the profit you make when you sell an asset (stocks, bonds, real estate, collectibles, etc.) for more than you paid for it. The difference between your purchase price (cost basis) and sale price is the capital gain, and the IRS wants its share.

Capital gains are only taxed when realized — meaning you actually sold the asset. Unrealized gains (your stock went up but you did not sell) are not taxed. This is a powerful feature: you control when you pay taxes by controlling when you sell.

The tax rate depends on two things: how long you held the asset and your taxable income.

Short-Term vs Long-Term Capital Gains

Short-Term (Held 1 Year or Less)

Taxed at your ordinary income rate: 10% to 37%. There is no special rate — short-term gains are treated exactly like salary, wages, or freelance income.

This is why day trading and frequent selling is so tax-inefficient.

Long-Term (Held More Than 1 Year)

Taxed at preferential rates: 0%, 15%, or 20% depending on your taxable income. Plus a possible 3.8% NIIT surtax for high earners.

The single best reason to be a long-term investor.

The holding period is calculated from the day after you purchase to the day you sell. If you bought stock on January 15, 2025, you must hold until at least January 16, 2026 for the gain to be long-term.

2025 Long-Term Capital Gains Tax Brackets

These thresholds are based on your total taxable income (including the capital gains themselves):

RateSingleMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,350 – $533,400$96,700 – $600,050$64,750 – $566,700
20%Over $533,400Over $600,050Over $566,700

Source: IRS Rev. Proc. 2024-40. These are 2025 tax year thresholds (filed in 2026). 2026 thresholds will be adjusted for inflation.

2025 Short-Term Capital Gains Tax Brackets

Short-term capital gains are taxed at ordinary income rates. These are the same brackets used for salary, wages, and freelance income:

RateSingleMarried Filing JointlyHead of Household
10%Up to $11,925Up to $23,850Up to $17,000
12%$11,925 – $48,475$23,850 – $96,950$17,000 – $64,850
22%$48,475 – $103,350$96,950 – $206,700$64,850 – $103,350
24%$103,350 – $197,300$206,700 – $394,600$103,350 – $197,300
32%$197,300 – $250,525$394,600 – $501,050$197,300 – $250,500
35%$250,525 – $626,350$501,050 – $751,600$250,500 – $626,350
37%Over $626,350Over $751,600Over $626,350

The 3.8% Net Investment Income Tax (NIIT)

High earners face an additional 3.8% surtax on net investment income under the Affordable Care Act. This applies on top of the regular capital gains rate.

NIIT Thresholds (Modified AGI)

  • Single: $200,000
  • Married Filing Jointly: $250,000
  • Head of Household: $200,000

The NIIT applies to the lesser of: (a) your net investment income, or (b) the amount your MAGI exceeds the threshold. This means the maximum effective long-term capital gains rate is 20% + 3.8% = 23.8%. Add state taxes (e.g., 13.3% in California) and the combined rate can approach 37%.

Glen's Take

The capital gains tax system rewards patience. That is not a platitude — it is literally baked into the tax code. Hold for one year and one day and your rate can drop from 37% to 15%. On a $100K gain, that is $22,000. I have never found any other activity that pays $22,000 for waiting 366 days.

When I ran my hedge fund, the difference between short-term and long-term gains was the difference between a good year and a mediocre one. Fund managers who churn their portfolios are voluntarily paying the highest possible tax rate. It makes no sense.

Get Glen’s Updates

Investing insights, new tools, and whatever I’m building this week. Free. No spam.

Unsubscribe anytime. I respect your inbox more than Congress respects property rights.

10 Strategies to Minimize Capital Gains Taxes

1

Hold investments for more than one year

Saves: $5,000 – $22,000+ per sale

The simplest strategy: hold any investment for at least 366 days before selling. This converts short-term gains (taxed at up to 37%) into long-term gains (taxed at 0%, 15%, or 20%). The difference between 37% and 15% on a $100K gain is $22,000 in tax savings.

2

Tax-loss harvesting

Saves: $1,000 – $15,000+/year

Sell losing investments to offset capital gains dollar-for-dollar. If you have $50K in gains and harvest $50K in losses, your capital gains tax bill drops to zero. Excess losses up to $3,000/year offset ordinary income. Unlimited carryforward.

3

Use the 0% long-term capital gains bracket

Saves: Up to $14,505 per year

If your taxable income (including capital gains) is below $48,350 single / $96,700 married, your long-term capital gains rate is 0%. This is the year to intentionally realize gains — especially in early retirement or low-income years.

4

Invest through tax-advantaged accounts

Saves: 100% of gains sheltered

Investments in 401(k)s, IRAs, and HSAs are not subject to capital gains tax. All growth is tax-deferred (traditional) or tax-free (Roth). This is the most straightforward way to avoid capital gains entirely.

5

Donate appreciated assets to charity

Saves: $3,000 – $50,000+ per donation

Donating stock or other appreciated assets that you have held for more than one year lets you deduct the full market value as a charitable contribution AND avoid paying capital gains tax on the appreciation. Double benefit.

6

Use the primary residence exclusion

Saves: $37,500 – $100,000 per home sale

When selling your primary home, you can exclude up to $250,000 in capital gains ($500,000 married) if you have lived in the home for at least 2 of the last 5 years. This is one of the largest tax breaks in the entire tax code.

7

1031 exchange for investment real estate

Saves: $20,000 – $500,000+ per exchange

Swap one investment property for another without paying capital gains tax. You must identify the replacement property within 45 days and close within 180 days. You can chain 1031 exchanges indefinitely, and at death the deferred gains are eliminated via stepped-up basis.

8

Hold until death (stepped-up basis)

Saves: 100% of unrealized gains eliminated

When you die, your heirs receive a 'stepped-up' cost basis equal to the fair market value at the date of death. All unrealized capital gains are permanently eliminated. If you bought Apple at $10 and it is worth $200, your heirs' basis is $200.

9

Qualified Opportunity Zone (QOZ) funds

Saves: 100% of QOZ appreciation tax-free

Invest capital gains into a Qualified Opportunity Zone fund to defer and potentially reduce capital gains taxes. Hold for 10+ years and the appreciation on the QOZ investment itself is completely tax-free.

10

Specific lot identification (tax lot accounting)

Saves: Varies — can significantly reduce gain per sale

When selling shares, tell your broker to sell specific tax lots instead of using the default FIFO (first-in, first-out) method. By selling the highest-cost-basis lots first, you minimize the gain on each sale.

Capital Gains on Real Estate

Real estate has some of the most favorable capital gains treatment in the tax code. Here are the key rules:

Primary Residence

  • Exclude up to $250K single / $500K married in gains
  • Must have lived there 2 of last 5 years
  • Can use this exclusion every 2 years
  • No age or reinvestment requirement

Investment Property

  • No exclusion — gains fully taxable
  • Depreciation recapture taxed at 25%
  • 1031 exchange can defer gains indefinitely
  • Stepped-up basis at death eliminates gains

How to Report Capital Gains on Your Tax Return

  1. 1.Collect Form 1099-B from each brokerage (received by mid-February). This lists every sale, proceeds, and cost basis.
  2. 2.Report individual transactions on Form 8949 (Part I for short-term, Part II for long-term). Most tax software does this automatically when you import your 1099-B.
  3. 3.Totals from Form 8949 flow to Schedule D (Form 1040), which calculates your net short-term and long-term gain or loss.
  4. 4.Net capital loss? Deduct up to $3,000 against ordinary income. Carry forward the rest to next year.
  5. 5.High earners: calculate the NIIT on Form 8960 and add it to your tax liability.

Recommended Resources

Tools & books I actually use and recommend

Interactive Brokers

Low commissions, global market access, and professional-grade tools. This is where I hold my positions.

Open an Account

The Psychology of Money

Morgan Housel on why managing money is about behavior, not intelligence. Short, brilliant chapters you'll re-read.

View on Amazon

A Random Walk Down Wall Street

Burton Malkiel's classic case for index investing. The book that convinced millions to stop stock-picking.

View on Amazon

Some links above are affiliate links. I only recommend products I personally use. See my full disclosures.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

The difference is holding period. Short-term capital gains are on assets held for one year or less and are taxed at ordinary income rates (10–37%). Long-term capital gains are on assets held for more than one year and are taxed at preferential rates (0%, 15%, or 20%). This single distinction — holding 365 days vs 366 days — can change your tax rate by 10–22 percentage points.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on net investment income (capital gains, dividends, interest, rental income) for taxpayers with Modified AGI above $200,000 (single) or $250,000 (married filing jointly). It applies on top of the regular capital gains rate. So if you're in the 20% long-term capital gains bracket AND subject to NIIT, your effective rate is 23.8%.

How are capital gains on real estate taxed?

Capital gains on real estate follow the same short-term and long-term rules. For your primary residence, you can exclude up to $250,000 ($500,000 married) in gains if you lived there 2 of the last 5 years. For investment properties, gains are fully taxable unless you use a 1031 exchange to defer them. Additionally, depreciation recapture on investment property is taxed at a flat 25% rate.

Do I owe capital gains tax when I sell stock in a 401(k) or IRA?

No. Capital gains taxes do not apply inside tax-advantaged accounts. In a traditional 401(k) or IRA, all withdrawals are taxed as ordinary income regardless of whether the growth was from capital gains or dividends. In a Roth, qualified withdrawals are completely tax-free. Capital gains tax only applies in taxable brokerage accounts.

How do I report capital gains on my tax return?

Your broker sends you Form 1099-B listing every sale, the proceeds, and cost basis. You report these on Schedule D (Form 1040), which calculates your net short-term and long-term gains or losses. If you have more than a few transactions, you'll also file Form 8949 with the details of each sale. Most tax software handles this automatically if you import your 1099-B.

Are qualified dividends taxed at capital gains rates?

Yes. Qualified dividends are taxed at the same preferential rates as long-term capital gains: 0%, 15%, or 20% depending on your taxable income. To be 'qualified,' dividends must be paid by a US corporation (or qualifying foreign corporation) and you must have held the stock for at least 61 days during the 121-day period around the ex-dividend date. Most dividends from US stock index funds are qualified.

The Bottom Line

Capital gains taxes are one of the most controllable parts of your tax bill. Unlike income tax, you decide when to sell and how long to hold. The tax code heavily rewards patience (long-term rates), planning (tax-loss harvesting, 1031 exchanges), and generosity (charitable giving of appreciated assets).

Use our Capital Gains Tax Calculator to model the exact impact on your specific situation.

Disclaimer: This is educational content, not tax advice. Consult a qualified CPA or tax professional for advice specific to your situation. Glen Bradford is not a CPA, enrolled agent, or tax attorney.

Keep Exploring