What actually reduces your capital gains tax bill

You reduce capital gains tax by lowering the amount of gain itself, not by filing tricks after the sale. The main methods are: selling at a loss to offset gains, donating appreciated assets to charity instead of selling them, holding investments longer to reach long-term rates, and timing when you sell across tax years. None of these are deductions you claim on a form—they are decisions you make before or at the moment of sale.

The IRS taxes capital gains based on the difference between what you paid for an asset and what you sold it for. If you bought stock for $10,000 and sold it for $15,000, your gain is $5,000. You cannot reduce that $5,000 after the fact. But you can reduce it by offsetting it with losses, or you can avoid the sale altogether and use a different strategy.

Key Takeaways

  • Selling investments at a loss in the same year as gains lets you subtract those losses from your gains, dollar for dollar, which is called tax-loss harvesting.
  • If losses exceed gains, you can deduct up to $3,000 of the excess against other income in that year, and carry unused losses forward to future years indefinitely.
  • Donating appreciated stock or real estate to a may have access to charity avoids the capital gains tax entirely and gives you a charitable deduction for the full current value.
  • Holding an investment for more than one year before selling qualifies it for long-term capital gains rates, which are lower than short-term rates for most taxpayers.
  • Timing sales across two calendar years can split your gains and keep you in a lower tax bracket, though this requires planning and does not work if you are already in the top bracket.

Using losses to offset gains (tax-loss harvesting)

If you own an investment that has lost value, you can sell it and use that loss to reduce your taxable gains from other sales in the same year. This is called tax-loss harvesting. The loss and gain cancel each other out on your tax return, reducing the total capital gains you owe tax on.

Example: You sold a stock for a $12,000 gain. You also own a mutual fund that is worth $8,000 less than you paid for it. If you sell the mutual fund, you create an $8,000 loss. On your tax return, the $8,000 loss offsets $8,000 of the $12,000 gain, leaving you with only $4,000 in taxable gains.

One rule to watch: the wash-sale rule. If you sell an investment at a loss, you cannot buy the same or substantially identical investment within 30 days before or after the sale. If you do, the IRS disallows the loss. You can buy a similar but not identical investment—for example, a different S&P 500 index fund—without triggering the rule.

Carrying forward unused losses to future years

If your losses exceed your gains in a single year, you can use the excess to reduce your income from other sources—wages, interest, rental income—up to $3,000 per year. Any losses beyond that $3,000 carry forward to the next year, and the year after that, for as long as you have them.

Example: In 2024, you have $5,000 in capital gains and $14,000 in capital losses. You use $5,000 of the loss to cancel the gain. You then deduct $3,000 of the remaining $9,000 loss against your other income. The leftover $6,000 loss carries to 2025, where you can deduct another $3,000 against income and carry forward $3,000 to 2026.

This matters because losses do not expire. If you have a large loss in one year, you can use it gradually over many years. Keep records of the amount you carry forward each year; the IRS does not track it for you.

Donating appreciated assets instead of selling

If you own stock, real estate, or other property that has increased in value, you can donate it directly to a may have access to charity and avoid the capital gains tax entirely. You also receive a charitable deduction for the full current market value of the asset.

This works because the charity receives the asset tax-free, and you never trigger the capital gain by selling it. You get two benefits: no capital gains tax, and a deduction that reduces your taxable income.

Example: You bought stock for $5,000 that is now worth $20,000. If you sell it, you owe capital gains tax on the $15,000 gain. If you donate it to a may have access to charity, you owe no capital gains tax and you deduct $20,000 from your taxable income. The charity can sell the stock without tax consequences.

The charity must be may have access to—typically a 501(c)(3) nonprofit, religious organization, or public charity. You cannot donate to a private individual or a non-may have access to organization and claim the deduction. You will need a written appraisal for real estate or for stock donations over $5,000.

Holding investments longer to reach long-term rates

Capital gains are taxed at different rates depending on how long you held the investment. Short-term gains (held one year or less) are taxed as ordinary income, which can be as high as 37%. Long-term gains (held more than one year) are taxed at 0%, 15%, or 20%, depending on your income level.

If you are close to the one-year mark on an investment, waiting to sell can move you into the lower long-term rate. This is not a strategy you can use retroactively—you have to hold the investment longer before you sell—but it is worth considering if you are thinking about selling soon anyway.

The long-term rate brackets for 2024 are: 0% for single filers under $47,025 of taxable income; 15% from $47,025 to $518,900; and 20% above $518,900. These thresholds change each year. If you are in the 15% bracket for long-term gains, waiting one year can save you 22 percentage points or more compared to short-term rates.

Timing sales across two tax years

If you have a large gain you are planning to realize, you can sometimes split it across two calendar years by selling part of the investment in December and the rest in January. This can keep you in a lower tax bracket in each year instead of bunching all the gain into one year.

Example: You have a $100,000 gain you are planning to realize. Your income is $150,000. If you sell the entire investment in one year, your taxable income becomes $250,000, which may push you into a higher tax bracket. If you sell $50,000 of the gain in December and $50,000 in January, you stay in a lower bracket in each year.

This strategy only works if you are not already in the top tax bracket. If you are, bunching the gain into one year does not change your rate. Also, this requires you to own enough of the investment to sell it in pieces, and it only works if you have not already decided to sell the entire position.

Using installment sales for real estate

If you are selling real estate and the buyer is paying you over time instead of all at once, you can use an installment sale to spread the capital gain across multiple years. This can lower your tax bill by keeping you in a lower bracket each year.

With an installment sale, you report the gain in proportion to the payments you receive each year. If you receive 40% of the sale price in year one, you report 40% of the gain in year one. The rest is reported as you receive payments in future years.

You must meet specific IRS rules for installment sales: the buyer must pay in at least two tax years, and you cannot use this method if you are a dealer in real estate (selling as a business). Consult a tax professional before structuring an installment sale, because the rules are detailed and mistakes can disqualify the treatment.

Frequently Asked Questions

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

Yes, but only up to $3,000 per year against other income like wages or interest. Any losses beyond $3,000 carry forward to future years. You can use them indefinitely as long as you have them, but you are limited to $3,000 per year unless you have gains to offset.

What if I sell an investment at a loss and buy it back a few weeks later?

The wash-sale rule disallows the loss if you buy the same or substantially identical investment within 30 days before or after the sale. You can buy a different investment in the same category—for example, a different index fund—without triggering the rule. The 30-day window includes the sale date.

Do I have to report the charity donation to the IRS?

Yes, if the donation is over $500, you must file Form 8949 with your tax return. For donations over $5,000, you also need a written appraisal. The charity will provide you with a receipt; keep it for your records. You cannot claim the deduction without documentation.

Does the long-term capital gains rate apply to real estate I sell?

Yes, if you held the property more than one year. However, real estate has additional rules: if you lived in the home as your primary residence for at least two of the last five years, you may be able to exclude up to $250,000 (or $500,000 if married filing jointly) of the gain from tax entirely. This is separate from the long-term rate and is more valuable than the rate itself.

Can I offset capital gains with business losses?

No. Capital losses offset only capital gains. Business losses (from a sole proprietorship or partnership) are reported separately and reduce your business income, not your capital gains. However, if you have both types of income, you pay tax on the net amount after each is calculated.