How capital losses and other strategies can lower your capital gains tax bill

You can reduce the capital gains tax you owe by using capital losses to offset gains, by timing when you sell assets, by donating appreciated property to charity, or by holding investments longer to may have access to for lower tax rates. The most direct method is selling investments at a loss in the same year you have gains — the loss reduces your taxable gain dollar-for-dollar. If your losses exceed your gains, you can carry the unused loss forward to future years or, in some cases, deduct up to $3,000 against ordinary income in the current year.

The rules for offsetting gains are set by the IRS and depend on what type of asset you sold, how long you held it, and your total income for the year. No single strategy works for everyone, and the tax outcome of selling an asset is separate from whether selling makes sense for your financial situation.

Key Takeaways

  • Capital losses from selling stocks, mutual funds, or other investments offset capital gains dollar-for-dollar on your tax return.
  • If losses exceed gains, you can deduct up to $3,000 of the excess against wages, interest, or other ordinary income in that tax year.
  • Unused losses carry forward to future years with no expiration date, so a large loss in one year can offset gains across multiple years.
  • Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, so holding an investment longer can reduce your tax bill even without a loss.
  • Donating appreciated property directly to a may have access to charity lets you avoid the capital gains tax on the appreciation and claim a charitable deduction.

Using capital losses to offset capital gains

A capital loss occurs when you sell an investment for less than you paid for it. On your tax return, capital losses reduce capital gains from the same year. If you sold a stock for a $5,000 gain and another stock for a $2,000 loss in the same year, your net capital gain is $3,000, and you owe tax only on that $3,000.

The IRS groups gains and losses by holding period: long-term (assets held more than one year) and short-term (one year or less). Short-term losses offset short-term gains first, and long-term losses offset long-term gains first. Only after one category is exhausted do losses from one category offset gains in the other. This matters because long-term gains are taxed at lower rates (0%, 15%, or 20% depending on income) while short-term gains are taxed as ordinary income, which can be much higher.

To claim a loss, you must have actually sold the investment. Unrealized losses — the current value of an investment you still own — do not count for tax purposes, even if the investment is worth far less than you paid.

What happens when losses exceed gains

If your total capital losses are larger than your total capital gains in a single year, you can deduct up to $3,000 of the excess against other income — wages, interest, dividends, or self-employment income. This deduction reduces your overall taxable income for the year.

Any loss beyond the $3,000 deduction does not disappear. Instead, it carries forward to the next tax year, where it can offset gains or provide another $3,000 deduction against ordinary income. This process continues indefinitely. A person who realizes a $20,000 loss in one year can use $3,000 against ordinary income that year, carry $17,000 forward to the next year, use another $3,000 against ordinary income in year two, and so on until the loss is fully used.

Losses carry forward in the same category they originated in. A long-term loss carries forward as a long-term loss and offsets long-term gains first in future years.

Tax-loss harvesting and the wash-sale rule

Tax-loss harvesting is the practice of selling an investment at a loss specifically to offset gains elsewhere in your portfolio. Many investors do this in December to reduce their tax bill for the year. The strategy is legal, but it comes with one major restriction: the wash-sale rule.

The wash-sale rule prevents you from claiming a loss if you buy the same investment (or a substantially identical one) within 30 days before or after the sale. If you sell a stock at a loss on December 15 and buy it again on January 10, the IRS disallows the loss. The 30-day window is 61 days total: 30 days before the sale, the sale date itself, and 30 days after.

The rule applies to the same security, not just the same type of investment. Selling Apple stock at a loss and buying Apple stock again triggers the rule. Selling Apple and buying a different tech stock does not. If you want to stay invested in the same company or fund while harvesting a loss, you can buy a similar but not identical investment (such as a different Apple ETF) and sell it back to the original after 31 days have passed.

Holding periods and long-term capital gains rates

How long you hold an investment before selling affects the tax rate you pay on the gain. Long-term capital gains — gains on assets held for more than one year — are taxed at preferential rates: 0%, 15%, or 20% depending on your total income. Short-term capital gains — gains on assets held one year or less — are taxed as ordinary income, which ranges from 10% to 37% depending on your tax bracket.

For most people, the difference is substantial. A $10,000 gain taxed as short-term income in the 24% bracket costs $2,400 in federal tax. The same gain taxed as long-term income at the 15% rate costs $1,500. Waiting to sell an investment until you have held it for over one year can reduce your tax bill significantly, even without realizing a loss.

The holding period begins the day after you purchase the investment and ends on the day you sell it. If you buy a stock on June 15, 2024, and sell it on June 16, 2025, you have held it for more than one year and may have access to for long-term rates.

Donating appreciated property instead of selling

If you own an investment that has gained significantly in value, you can donate it directly to a may have access to charity and avoid paying capital gains tax on the appreciation. You also receive a charitable deduction on your tax return for the full current value of the property.

This strategy works best when the gain is large. If you bought a mutual fund for $10,000 and it is now worth $25,000, donating it means you owe no capital gains tax on the $15,000 gain. You can deduct the $25,000 as a charitable contribution (subject to limits based on your adjusted gross income). If you had sold the fund and donated the proceeds, you would owe capital gains tax on the $15,000 gain first, then donate the remaining cash.

The charity must be a may have access to organization — generally a nonprofit, religious institution, or government agency recognized by the IRS. You cannot donate to a private individual or a for-profit business and claim the deduction. You also need a written appraisal for donations of property worth over $5,000.

Timing sales across tax years

When you realize a gain or loss matters for your current year's tax bill. If you are close to a higher tax bracket, realizing a large gain might push you into it and increase your tax rate. Conversely, if you have a loss year coming, you might delay selling a winner until the next year when you can offset it against the loss.

This strategy requires knowing your income for the year and predicting future income, which is difficult. It also assumes you have control over when you sell, which may not be true if you need the money or if market conditions change. The tax benefit of timing a sale must be weighed against the investment risk of holding or selling at a particular moment.

One common scenario: if you retire mid-year or expect a lower-income year, you might accelerate gains into that year because your tax bracket is lower. A person retiring in July might sell appreciated investments in July through December when their income is half of a normal year, paying tax at a lower rate than they would have if they sold the same investments in a full-income year.

Frequently Asked Questions

Can I use a capital loss from one investment to offset a gain from a completely different investment?

Yes. All capital gains and losses in the same year are combined on your tax return, regardless of which investments produced them. A loss from selling one stock offsets a gain from selling a mutual fund, real estate, or any other capital asset. The only distinction the IRS makes is between long-term and short-term, not between different types of investments.

What if I sell an investment at a loss but it recovers the next year?

The loss is locked in the year you sold it. If you sell a stock for a $5,000 loss in 2024 and that same stock rises in value in 2025, the 2024 loss has already been claimed and cannot be changed. If you sell the stock again in 2025 at a gain, that 2025 gain is separate and taxable in 2025.

Do I have to report capital losses if they are smaller than my gains?

Yes. You must report all capital gains and losses on your tax return, even if the losses are small. The IRS uses this information to verify that you calculated your net capital gain correctly. Failing to report a loss can trigger an audit.

Can I deduct capital losses if I do not have any capital gains?

Yes, up to $3,000 per year. If you have no capital gains but you do have capital losses, you can deduct up to $3,000 against ordinary income such as wages or interest. Any loss beyond $3,000 carries forward to future years. This is one reason people harvest losses in December even if they do not have gains to offset.

Does the wash-sale rule explore to cryptocurrency or other assets besides stocks?

The wash-sale rule applies to stocks, mutual funds, and exchange-traded funds. It does not explore to cryptocurrency, real estate, or bonds. However, the IRS has indicated it may extend wash-sale rules to crypto in the future, so the rules may change. Consult a tax professional if you are harvesting losses in assets outside the traditional stock market.