Capital Gains Tax Explained: How Investment Profits Are Taxed
Capital gains tax confuses a lot of investors. Here's a clear explanation of how it works, the difference between short and long-term rates, and how to minimize what you owe.
Every time you sell an investment for more than you paid, you have a capital gain. And the IRS wants a piece of it. But the tax rate you pay depends heavily on how long you held the investment — and understanding this distinction can save you significant money.
Here's a complete explanation of how capital gains taxes work in 2025.
What Is a Capital Gain?
A capital gain is the profit from selling a capital asset — stocks, bonds, mutual funds, ETFs, real estate, cryptocurrency, or other property — for more than you paid for it.
Your basis: The original purchase price (plus any costs of acquisition) Proceeds: The amount you received from the sale Capital gain: Proceeds minus basis
Example: You buy 100 shares of an index fund at $50/share ($5,000 total). You sell them at $80/share ($8,000 total). Your capital gain is $3,000.
If you sell for less than your basis, you have a capital loss, which can be used to offset gains or deduct up to $3,000 against ordinary income per year.
Short-Term vs. Long-Term Capital Gains
This is the most important distinction in investment taxation:
Short-term capital gains: Assets held one year or less. Taxed as ordinary income — the same rates as your W-2 or freelance income (10%, 12%, 22%, 24%, 32%, 35%, or 37%).
Long-term capital gains: Assets held more than one year. Taxed at preferential rates — 0%, 15%, or 20% depending on income.
2024 Long-Term Capital Gains Rates
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,026 – $518,900 | Over $518,900 |
| Married Filing Jointly | Up to $94,050 | $94,051 – $583,750 | Over $583,750 |
| Head of Household | Up to $63,000 | $63,001 – $551,350 | Over $551,350 |
The 0% rate is one of the most underutilized tax strategies: if your taxable income is below these thresholds, you pay zero federal tax on long-term capital gains. This is a significant opportunity for lower-income years (early career, sabbatical, early retirement) to realize gains tax-free.
The Net Investment Income Tax (NIIT)
Higher-income investors may owe an additional 3.8% Net Investment Income Tax on top of standard capital gains rates. This applies to investment income for those with modified AGI above:
- $200,000 (single)
- $250,000 (married filing jointly)
So the effective maximum federal rate on long-term gains can be 23.8% (20% + 3.8% NIIT) for high earners.
State Capital Gains Taxes
Federal rates are just part of the picture. Most states tax capital gains as ordinary income — at rates ranging from 0% (no state income tax states: Texas, Florida, Nevada, etc.) to 13.3% (California's top rate).
For investors in high-tax states, state taxes can add significantly to the total capital gains tax bill.
Cryptocurrency and Capital Gains
The IRS treats cryptocurrency as property, not currency. Every time you sell, trade, or use crypto to buy something, it's a taxable event.
Buy Bitcoin at $20,000, sell at $45,000: $25,000 capital gain (short or long-term depending on how long you held it). Trade one cryptocurrency for another: also a taxable event — you sold the first crypto at fair market value, triggering a gain or loss.
This creates significant tracking complexity for active crypto traders. Software like Koinly or CoinTracker can help calculate crypto gains automatically.
Key Strategies to Minimize Capital Gains Tax
Hold for the Long-Term Discount
The single most impactful strategy: hold investments over one year to qualify for long-term rates. On a $50,000 gain for someone in the 22% income bracket, the difference between short-term (22%) and long-term (15%) treatment is $3,500.
Tax-Loss Harvesting
If some investments have declined in value, you can sell them to realize a capital loss, which offsets capital gains dollar-for-dollar.
Example: You have $10,000 in capital gains from selling a winning stock. You also have a losing investment down $6,000. Selling the loser gives you a $6,000 capital loss, reducing your taxable gain to $4,000.
Watch the wash sale rule: You cannot repurchase the same (or substantially identical) security within 30 days before or after the sale. You can immediately buy a similar (but not identical) investment to maintain market exposure.
Use Tax-Advantaged Accounts
Investments inside a 401(k), Traditional IRA, or Roth IRA don't generate taxable capital gains when you sell. You can buy and sell freely within these accounts — tax-deferred in traditional accounts, tax-free in Roth accounts.
The most valuable long-term strategy: hold your highest-growth investments inside tax-advantaged accounts, and keep lower-growth assets in taxable accounts where gains will be smaller.
Harvest Gains in 0% Rate Years
If you have a year with lower-than-usual income — career transition, extended travel, early retirement — you may fall into the 0% long-term capital gains bracket. This is an opportunity to strategically sell appreciated assets with zero federal tax, then repurchase them at the higher basis.
This "resetting the basis" strategy is underutilized and genuinely valuable.
Donate Appreciated Stock to Charity
If you plan to make charitable donations, donating appreciated stock (rather than cash) is more tax-efficient: you avoid paying capital gains on the appreciation and get a full deduction for the fair market value.
Example: You own stock worth $10,000 that you paid $3,000 for. Selling and donating cash: you pay capital gains on $7,000, then deduct $10,000 donation. Donating stock directly: no capital gains tax, full $10,000 deduction. The stock donation wins.
Hold in a Roth IRA for Maximum Long-Term Benefit
Investments that grow significantly over decades — like growth stocks or small-cap funds — are most valuable inside a Roth IRA. All growth comes out tax-free in retirement, eliminating capital gains considerations entirely.
Reporting Capital Gains on Your Taxes
Your brokerage will send you a Form 1099-B summarizing all securities sales during the year. This includes:
- Description of asset sold
- Date acquired and sold
- Proceeds and cost basis
- Whether short-term or long-term
Most tax software imports 1099-B data directly from major brokerages, making reporting relatively automated. However, verify the cost basis information is correct — brokerages sometimes have errors, especially for older purchases or inherited assets.
Schedule D is where you report capital gains and losses. Form 8949 provides the detailed transaction list.
What About Inherited Assets?
Inherited assets receive a "stepped-up basis" — the cost basis becomes the fair market value on the date of death. This effectively wipes out all capital gains that accrued during the original owner's lifetime.
This is a significant tax benefit: if your parents bought stock for $10,000 that grew to $200,000, you inherit it at a $200,000 basis. If you then sell at $200,000, no capital gains tax is owed.
The Bottom Line
Capital gains taxes are one of the most manageable taxes with the right strategy. The key levers:
- Hold investments over one year to access long-term rates
- Maximize tax-advantaged accounts for your most growth-oriented investments
- Harvest losses to offset gains
- Recognize gains in low-income years when the 0% bracket applies
- Donate appreciated securities instead of cash when making charitable gifts
Understanding these strategies won't just help at tax time — it should inform how you invest throughout the year.
Free Calculator
Compound Interest Calculator
See exactly how your money grows over time. Plug in your numbers and watch compound interest work.
Free Weekly Newsletter
One money tip a week. No fluff.
Join readers who get our best personal finance guides and tool recommendations.
No spam. Unsubscribe any time.