Skip to main content
Capital Gains Tax Explained: How to Keep More of Your Investment Returns
← Back to Blog
StrategyAugust 12, 2026 · 6 min read

Capital Gains Tax Explained: How to Keep More of Your Investment Returns

Understand how capital gains taxes work, the difference between short-term and long-term rates, and smart strategies to minimize your tax burden when investing.

Taxes are one of the few certain costs in investing. But unlike market returns (which you can't control), your tax burden is something you can actively manage - potentially saving tens of thousands of dollars over your investing lifetime.

What Is a Capital Gain?

A capital gain is the profit you make when you sell an investment for more than you paid.

Capital Gain = Sale Price - Cost Basis

Cost basis is what you paid for the investment (including commissions, if any).

Example:

  • You buy 100 shares of Apple at $150 = $15,000 invested
  • You sell at $200 = $20,000 received
  • Capital gain = $5,000

That $5,000 is taxable income.

Short-Term vs. Long-Term Capital Gains

The single most important tax distinction in investing:

Short-term capital gains: Assets held 1 year or less. Taxed as ordinary income (same rate as your salary).

Long-term capital gains: Assets held more than 1 year. Taxed at preferential rates (0%, 15%, or 20%).

2026 Long-Term Capital Gains Rates

| Filing Status | 0% Rate | 15% Rate | 20% Rate | |--------------|---------|----------|----------| | Single | Up to $47,025 | $47,026–$518,900 | Above $518,900 | | Married filing jointly | Up to $94,050 | $94,051–$583,750 | Above $583,750 | | Head of household | Up to $63,000 | $63,001–$551,350 | Above $551,350 |

Approximate 2026 figures; confirm with IRS or tax professional

Key insight: If your total income is modest, you may pay 0% on long-term capital gains.

The Tax Rate Difference Matters

Example: You sell a stock with a $10,000 gain.

| Holding Period | Tax Rate (32% bracket) | Tax Owed | |---------------|------------------------|---------| | Short-term (held 10 months) | 32% | $3,200 | | Long-term (held 13 months) | 15% | $1,500 |

Waiting 3 extra months saved $1,700.

The Net Investment Income Tax (NIIT)

High earners face an additional 3.8% surtax on investment income:

  • Applies to single filers with income > $200,000
  • Applies to joint filers with income > $250,000
  • Covers capital gains, dividends, interest, and rental income

Effective long-term capital gains rate for high earners:

  • 15% + 3.8% = 18.8%
  • 20% + 3.8% = 23.8%

Key Tax Strategies

1. Hold for Long-Term Capital Gains

The simplest strategy: hold investments for more than one year before selling.

This is also why buy-and-hold investing is tax-advantaged over active trading - each trade in a taxable account potentially creates a taxable event.

2. Tax-Loss Harvesting

When an investment has declined in value, you can sell it to realize a loss that offsets gains elsewhere.

How it works:

  1. You have $10,000 in realized capital gains for the year
  2. You own a fund currently down $8,000 from your cost basis
  3. You sell the fund → realize $8,000 loss
  4. Net taxable gain: $10,000 - $8,000 = $2,000
  5. Immediately reinvest proceeds in a similar (but not identical) fund

The wash-sale rule: You cannot repurchase the same security within 30 days before or after the sale. Buy a similar but different fund (e.g., sell VTI, buy ITOT).

Tax savings: Timing losses to offset gains can save 15-23.8% in capital gains taxes.

3. Asset Location

Put tax-inefficient assets in tax-advantaged accounts, and tax-efficient assets in taxable accounts:

| Tax-Advantaged (401k/IRA) | Taxable Account | |--------------------------|-----------------| | Bonds (high ordinary income) | Total stock market index (VTI) | | High-dividend stocks | International stocks (with tax credits) | | REITs (ordinary dividends) | ETFs with low turnover | | Actively managed funds | Growth stocks held long-term |

Why it matters: Bonds generate ordinary income (taxed at up to 37%). Holding bonds in an IRA means you pay 0% tax on that income until withdrawal.

4. Charitable Giving of Appreciated Stock

Instead of donating cash, donate appreciated stock directly to charity:

  • You avoid capital gains tax on the appreciation
  • You get a deduction for the full fair market value
  • The charity (tax-exempt) pays no capital gains tax either

Win-win: You give the same dollar amount to charity but avoid a large tax bill.

5. Tax-Gain Harvesting (for Low-Income Years)

If you're in the 0% long-term capital gains bracket (income below ~$47,025 single / ~$94,050 joint), you can sell appreciated investments to reset your cost basis - tax-free.

This is especially useful in:

  • Early retirement before Social Security begins
  • Low-income years (job transition, sabbatical)
  • Rebalancing when you have low income

6. Roth Conversions

In years with lower income, convert traditional IRA money to Roth IRA. You pay ordinary income tax now, but all future growth is tax-free.

Best done systematically during lower-income years to fill up lower tax brackets.

The Step-Up in Basis: Estate Planning Gold

When you die, your heirs inherit investments at the fair market value at the date of death - not your original cost basis.

Example:

  • You bought Apple stock for $10,000 in 1990
  • It's worth $2,000,000 when you die
  • Your heir inherits it at $2,000,000 basis
  • They sell immediately → zero capital gains tax on the $1,990,000 gain

This "step-up in basis" rule makes highly appreciated assets valuable to hold for estate planning purposes.

Capital Gains in Tax-Advantaged Accounts

The good news: in a 401(k), IRA, Roth IRA, or other tax-advantaged account, capital gains taxes don't apply while the money stays in the account.

  • Traditional 401k/IRA: Pay ordinary income tax only on withdrawals
  • Roth IRA: Pay no tax ever on qualified withdrawals

This is why maximizing tax-advantaged accounts is foundational - you defer or eliminate capital gains entirely.

A Simple Framework

For most investors:

  1. Max tax-advantaged accounts first (401k, IRA) - avoids capital gains entirely inside them
  2. Hold for long-term in taxable accounts - at least one year + one day
  3. Tax-loss harvest opportunistically - don't let the tax tail wag the investment dog
  4. Use asset location - inefficient assets in sheltered accounts

Want to track your portfolio's capital gains exposure? Prismfolio helps you understand your holdings and spot potential tax optimization opportunities across your accounts.

Was this helpful?

Related reading