Back to Articles
Finance 8 min readIntermediate Aug 24, 2026

Capital Gains Taxes: How Investment Profits Are Taxed

When you sell an investment for a profit, the IRS takes a share. But capital gains tax rates are often lower than income tax rates — and with smart planning, you can minimize or even eliminate the tax.

F4E

Finance4Everyone Team

Editorial Team

Capital Gains Taxes: How Investment Profits Are Taxed

Key Takeaways

  • 1Capital gains tax applies when you sell an investment for a profit [3].
  • 2Short-term gains (under 1 year) are taxed as ordinary income; long-term gains (over 1 year) get lower rates (0%, 15%, or 20%) [3].
  • 3Use tax-loss harvesting to offset gains with losses, up to a $3,000 deduction against ordinary income [4], [5].

Capital Gains Taxes: How Investment Profits Are Taxed

When you sell an investment for more than you paid, the profit is a capital gain — and it's subject to tax [3]. The rate depends on how long you held the investment and your income level [3].

Short-Term vs. Long-Term

| Holding Period | Tax Rate | | :--- | :--- | | Less than 1 year (short-term) | Taxed as ordinary income [3] | | More than 1 year (long-term) | 0%, 15%, or 20% [3] |

2025 Long-Term Capital Gains Rates (Single Filers)

| Taxable Income | Rate | | :--- | :--- | | Under $48,350 | 0% [3] | | $48,350 - $533,400 | 15% [3] | | Over $533,400 | 20% [3] |

If your income is under $48,350, long-term capital gains are taxed at 0% [3]. This is a powerful opportunity — you can sell investments and pay no federal tax on the gain.

Example: Short vs. Long-Term

You buy 100 shares of stock for $50 each ($5,000 total) and sell them for $80 each ($8,000 total). Your gain is $3,000.

| Scenario | Tax Rate | Tax on $3,000 Gain | | :--- | :--- | :--- | | Sold after 10 months (short-term, 22% bracket) | 22% | $660 | | Sold after 14 months (long-term, 15% bracket) | 15% | $450 | | Sold after 14 months (long-term, 0% bracket) | 0% | $0 |

Source: Finance4Everyone calculation using [3] data.

Holding for over a year qualifies the asset for long-term rates [3]. Being in the 0% bracket saves the entire $660 in this hypothetical scenario [3]. Experiment with our Compound Interest Calculator to see how these tax differences impact your long-term growth.

Tax-Loss Harvesting

If you have gains and losses in the same year, you can use losses to offset gains [3]:

  • Sell investments at a loss to reduce your capital gains tax [3].
  • If losses exceed gains, you can deduct up to $3,000 against ordinary income [4], [5].
  • Remaining losses carry forward to future years [8].

Example: You have $2,000 in gains and $1,500 in losses. You only pay tax on $500 of gains [3]. If you had $4,000 in losses and $2,000 in gains, you offset all gains and deduct $2,000 against income [4].

How to Minimize Capital Gains Tax

1. Hold Investments Over a Year

This qualifies you for long-term rates (0%, 15%, or 20%) instead of ordinary income rates [3].

2. Use Tax-Advantaged Accounts

Investments inside a Roth IRA grow tax-free. Traditional IRA and 401(k) gains are tax-deferred until withdrawal [3].

3. Harvest Losses

Sell losing investments to offset gains [3]. Be careful not to repurchase the same or "substantially identical" investment within 30 days before or after the sale; the "wash sale" rule disallows the loss and adds it to the cost basis of the new shares [6].

4. Time Your Sales

If you're in a low-income year, you might qualify for the 0% long-term rate [3]. Sell gains during these years to minimize liability [3].

5. Gift Appreciated Stock

Instead of selling stock and paying tax, you may gift it to charity or family members in lower tax brackets to potentially reduce the overall tax burden [3].

Try It: 401(k) Match Simulator

See how employer matching and compound growth turn your contributions into retirement savings.

$$60K
6%
50%
30 yrs

You Contribute

$108K

Employer Match

$54K

Estimated Balance

$549K

Takeaway: Your employer's match is free money — if they offer to match 50% of your contributions up to 6% of salary, contributing at least 6% means you get the full match. Over 30 years, your $6% contributions plus the match grow to an estimated $549K, with $33% of your total contributions coming from your employer.

Educational example only — not financial advice. Growth rate is hypothetical and not guaranteed. Taxes and inflation are not included.

Learning Guide

AI-generated
  • 1
    Differentiate between short-term and long-term capital gains tax treatment.
  • 2
    Understand how your personal income tax bracket influences your capital gains rate.
  • 3
    Explain the utility of tax-loss harvesting in minimizing annual tax liability.
  • 4
    Recognize the potential benefit of the 0% long-term capital gains tax bracket.
  • Holding investments for at least one year typically unlocks significantly lower tax rates.
  • Long-term capital gains are taxed at 0%, 15%, or 20% depending on your total income.
  • Short-term gains are taxed at your ordinary income tax rate, which is usually higher.
  • You can use capital losses to offset gains, potentially reducing your taxable profit to zero.
  • If your total losses exceed your gains, you can use the surplus to offset up to $3,000 of ordinary income.

Real-World Example

A college student sells a high-growth stock after holding it for eleven months to buy a new laptop, unaware that selling one month later would have qualified the profit for a lower long-term tax rate. By failing to wait for the one-year mark, they ended up paying 22% in taxes instead of 0%, significantly reducing their available cash.

⚠️ Common Mistakes to Avoid

  • ✗Selling profitable investments too quickly, causing them to be taxed as ordinary income instead of favorable long-term rates.
  • ✗Failing to account for capital losses that could have been used to lower their overall tax bill.
  • ✗Assuming all investment profit is taxed at the same flat rate regardless of holding period.
🧠

Test Your Knowledge

Take a quick 3-question quiz on this article. Get a perfect score and earn +15 XP!