What actually reduces your capital gains tax bill

You cannot eliminate capital gains tax on profit you keep, but you can shrink the taxable gain itself or move when you pay tax. The most direct method is to hold an asset for more than one year before selling it — this moves your gain into the lower long-term rate instead of the higher short-term rate. You can also offset gains by selling losing investments in the same year, reduce your taxable income through retirement account contributions, or donate appreciated assets to charity instead of selling them. Each method works differently depending on your income, the type of asset, and your timeline.

The strategies that work best depend on whether you are selling soon or can wait, whether you have losses to use, and whether you are charitably inclined. A person who bought stock at $10,000 and it is now worth $50,000 faces a $40,000 gain. That same person with a separate investment worth $5,000 less than they paid can use that $5,000 loss to shrink the gain to $35,000 — and that is a real reduction in what the IRS taxes, not a deferral.

Key Takeaways

  • Holding an asset for more than one year qualifies it for long-term capital gains rates, which are substantially lower than short-term rates for most taxpayers.
  • Selling investments at a loss in the same year you sell winners lets you offset gains dollar-for-dollar, reducing your taxable profit.
  • Donating appreciated assets directly to a charity avoids the capital gains tax entirely while giving you a charitable deduction.
  • Contributing to a 401(k), traditional IRA, or other retirement account reduces your taxable income for the year, which can lower your overall tax bracket and the rate applied to gains.
  • Gifting appreciated assets to family members or holding them until death can defer or eliminate tax, but each has specific rules and timing matters.

Holding assets longer than one year to may have access to for long-term rates

The single largest tax difference is between short-term and long-term capital gains. If you sell an asset you have owned for one year or less, the gain is taxed as ordinary income — the same rate as your salary or wages. If you own it for more than one year, the gain is taxed at the long-term rate, which maxes out at 20 percent for high earners, compared to 37 percent for ordinary income.

The holding period clock starts the day after you buy. If you bought stock on March 15, 2024, you can sell it on March 16, 2025, and the gain qualifies as long-term. Selling on March 15, 2025, does not may have access to — you are one day short. This matters most when you are close to the one-year mark. If you have a gain and the asset is approaching one year of ownership, waiting a few weeks or months can cut your tax bill by half or more.

This strategy requires patience and works only if you can afford to hold. It does not work if you need the money now, and it does not protect you if the asset drops in value while you wait. But if you have flexibility on timing, the tax savings often justify the delay.

Using investment losses to offset gains

When you sell an investment for less than you paid, you create a capital loss. You can use that loss to cancel out capital gains from the same year, dollar for dollar. If you sold a winner with a $40,000 gain and a loser with a $10,000 loss in the same year, your net gain is $30,000 — and that is what gets taxed.

This strategy is called tax-loss harvesting. It works best when you have both winners and losers in your portfolio. Many investors review their holdings in November or December specifically to identify losses they can use before the year ends. The loss must be realized — meaning you actually sold the investment — not just a paper loss on something you still own.

One important rule: if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed under the wash-sale rule. You can buy a similar but not identical investment when ready (for example, a different index fund tracking the same market), wait 31 days before buying back the original, or straightforward stay out of that investment. The loss does not disappear — it carries forward to future years — but you cannot use it in the current year if you trigger the wash-sale rule.

Donating appreciated assets directly to charity

If you own stock, real estate, or other appreciated assets and want to give to charity, donating the asset itself instead of selling it and donating the cash saves you capital gains tax. You get a charitable deduction for the full current value, and the charity receives the asset without you ever paying tax on the gain.

Example: You bought stock for $5,000 that is now worth $25,000. If you sell it, you owe tax on the $20,000 gain. If you donate it directly to a may have access to charity, you deduct $25,000 as a charitable contribution and pay zero capital gains tax. The charity can sell the stock tax-free because charities do not pay capital gains tax.

This only works if you donate to a may have access to charitable organization — the IRS publishes a searchable list at irs.gov. You cannot donate to an individual, a political campaign, or a non-may have access to organization and claim the deduction. You also need a written appraisal for donations over $5,000 in most cases. The deduction is limited to a percentage of your adjusted gross income (usually 30 to 50 percent depending on the asset type), and excess deductions carry forward to future years.

Reducing taxable income through retirement contributions

Contributing to a traditional 401(k) or traditional IRA reduces your taxable income for the year. Lower taxable income can move you into a lower tax bracket, which means the long-term capital gains rate applied to your gains may be lower. The long-term rate is 0 percent for some taxpayers in the lowest bracket, 15 percent for those in the middle brackets, and 20 percent for high earners.

If you are close to the income threshold for a higher capital gains rate, a retirement contribution might push you under it. For 2024, the 15 percent long-term rate applies to single filers with taxable income up to $47,025. A $10,000 traditional IRA contribution reduces your taxable income by $10,000, which could lower the rate applied to your capital gains if you are near that threshold.

This is an indirect strategy — you are not reducing the gain itself, but you are reducing the rate applied to it. It works best if you have room to contribute and are close to a rate threshold. Roth IRA contributions do not reduce current taxable income, so they do not help with this particular strategy, though they do provide tax-free growth and withdrawals in retirement.

Gifting appreciated assets to family members

You can give appreciated assets to family members without triggering capital gains tax on yourself. The recipient inherits your cost basis — meaning if you bought stock for $10,000 and gift it when it is worth $50,000, the recipient's cost basis is $10,000, not $50,000. If they sell it when ready, they owe tax on the $40,000 gain.

This strategy makes sense only if the recipient is in a lower tax bracket than you. If you are in the 20 percent long-term rate and your adult child is in the 15 percent rate, gifting them the asset and having them sell it saves 5 percent of the gain in tax. If they are in the same bracket or higher, there is no tax benefit — you have just moved the tax bill to them.

Gifting also does not work if you plan to sell soon yourself. You can give up to $18,000 per person per year (as of 2024; this amount changes annually) without filing a gift tax return. Amounts above that count against your lifetime gift and estate tax exemption, which is currently $13.61 million but may change. Consult a tax professional before gifting assets worth more than the annual limit.

Holding appreciated assets until death

When you die, your heirs receive a step-up in basis. This means their cost basis becomes the asset's value on the date of your death, not what you paid for it. If you bought stock for $10,000 and it is worth $50,000 when you die, your heirs can sell it when ready and owe zero capital gains tax — their basis is $50,000.

This is a powerful tax tool, but it requires you to hold the asset until death and works only if you do not need the money. It also depends on the current estate tax law. The step-up in basis is available to all heirs regardless of the estate size under current law, but this may change if tax law is revised. For very large estates, other strategies like trusts or charitable remainder trusts may be more efficient.

This strategy is not something you can plan for lightly — it assumes you will not sell the asset during your lifetime and that you are comfortable leaving it to heirs. It works best for assets you do not need to access and that you expect to appreciate further.

Frequently Asked Questions

Can I avoid capital gains tax by reinvesting the money?

No. Reinvesting the proceeds does not reduce or defer the tax. You owe capital gains tax on the profit in the year you sell, regardless of what you do with the money afterward. The only way reinvestment helps is if you buy a new asset that appreciates more slowly or depreciates, which reduces future gains — but that is not tax avoidance, it is just different investment performance.

What if I have more losses than gains in a year?

You can deduct up to $3,000 of net capital losses against ordinary income in a single year. Any losses beyond that carry forward to future years with no expiration date. If you have $50,000 in losses, you deduct $3,000 this year, $3,000 next year, and so on until the losses are used up or you have gains to offset them.

Does selling at a loss and buying back the same stock later let me use the loss?

Not if you buy back within 30 days before or after the sale — that is the wash-sale rule. You can wait 31 days, or buy a different but similar investment when ready and switch back later. The loss does not disappear; it just carries forward to a future year when you can use it without triggering the wash-sale rule.

Can I reduce capital gains tax by spreading the sale over multiple years?

Not directly. You owe tax in the year you sell, based on the gain in that year. However, if you can structure a sale as an installment sale — where the buyer pays you over multiple years — you report the gain as payments arrive, which can spread the tax across years and potentially keep you in a lower bracket each year. This requires a specific agreement with the buyer and works mainly for real estate or business sales.

What is the difference between capital gains and may have access to dividends?

may have access to dividends are taxed at the same long-term capital gains rates (0, 15, or 20 percent) if you held the stock for at least 60 days around the dividend date. Non-may have access to dividends are taxed as ordinary income. You do not owe tax on dividends until you receive them, so you cannot defer them by holding the stock longer — but you can reduce the rate by meeting the holding period requirement.