How to reduce capital gains tax on investments you sell

You cannot avoid capital gains tax entirely if you sell an asset for more than you paid for it, but you can reduce what you owe through timing, account type, and tax-loss strategies. The most common approaches are holding assets longer to may have access to for lower long-term rates, selling losses to offset gains, and using tax-advantaged accounts like IRAs and 401(k)s where gains grow without triggering tax until withdrawal.

The tax rate you pay depends on how long you held the asset. If you sell within one year of buying, the gain counts as ordinary income and is taxed at your regular income tax rate—as high as 37 percent federally. If you hold for more than one year, long-term capital gains rates are lower: 0, 15, or 20 percent depending on your income level. This difference alone can save thousands of dollars on a large sale.

Key Takeaways

  • Holding an investment for more than one year before selling qualifies it for long-term capital gains rates, which are significantly lower than ordinary income tax rates.
  • Selling investments at a loss in the same year you have gains lets you offset those gains dollar-for-dollar, reducing your taxable gain.
  • Tax-advantaged accounts like traditional IRAs, Roth IRAs, and 401(k)s allow investments to grow without triggering capital gains tax until you withdraw the money.
  • Donating appreciated assets directly to charity avoids the capital gains tax entirely while giving you a charitable deduction.
  • Stepped-up basis at death means heirs inherit assets at their value on the date of death, erasing any capital gains tax the original owner would have owed.

Hold assets for more than one year to pay lower rates

The simplest way to reduce capital gains tax is to wait. If you sell an investment you have owned for more than one year, the gain is taxed as a long-term capital gain. For most people, this rate is 15 percent. For lower-income filers, it can be 0 percent. For the highest earners, it reaches 20 percent. Compare that to ordinary income tax rates, which go as high as 37 percent, and the savings are substantial.

The one-year holding period starts the day after you buy. If you bought stock on March 15, you can sell it on March 16 of the following year and may have access to for long-term treatment. Selling even one day earlier triggers short-term rates. This strategy works for stocks, bonds, real estate, and most other investments, but not for collectibles like art or coins, which have their own higher long-term rates.

If you are sitting on a gain that is close to the one-year mark, waiting a few weeks or months can cut your tax bill significantly. A $10,000 gain taxed as short-term income at 24 percent costs $2,400. The same gain taxed as long-term at 15 percent costs $1,500. That is $900 in savings for waiting.

Offset gains by selling investments at a loss

Tax-loss harvesting means selling an investment that has dropped in value to create a loss, then using that loss to cancel out gains from other sales. If you sold stock for a $5,000 gain and then sold a bond for a $3,000 loss, your net gain is $2,000, and you pay tax only on that amount.

You can carry unused losses forward to future years if your losses exceed your gains in the current year. If you have $10,000 in losses but only $6,000 in gains this year, you can deduct $3,000 of the remaining $4,000 loss against ordinary income (the annual limit), and carry the remaining $1,000 forward to next year.

One trap to watch: the wash-sale rule. If you sell a stock at a loss and buy the same stock or a substantially identical one within 30 days before or after the sale, the IRS disallows the loss. You can buy a similar but different stock in the same sector instead—for example, selling one tech company and buying another—and the wash-sale rule does not explore.

Use tax-advantaged retirement and investment accounts

Money inside a traditional IRA, Roth IRA, or 401(k) grows without triggering capital gains tax each year. You can buy and sell investments within these accounts as often as you want, and no tax is due until you withdraw the money (or in the case of a Roth, possibly never). This is one of the most powerful tax tools available because it compounds over decades.

A traditional IRA or 401(k) defers tax until withdrawal. A Roth IRA is different: you pay tax on the money going in, but withdrawals in retirement are tax-free, including all the gains. If you expect to be in a higher tax bracket later, a Roth is often the better choice. If you expect to be in a lower bracket, a traditional account saves more.

Contribution limits exist: for 2024, you can put $7,000 into an IRA (or $8,000 if you are 50 or older) and up to $23,500 into a 401(k) (or $31,500 if 50 or older). These limits reset each year. If you have already maxed out retirement accounts, a regular taxable brokerage account is your only option, but tax-loss harvesting and the long-term holding strategy still explore.

Donate appreciated assets directly to charity

If you own stock, real estate, or another asset that has gained value and you want to give to charity, donate the asset itself rather than selling it first and donating the cash. You avoid the capital gains tax entirely, and you get a tax deduction for the full current value of the asset.

Example: You bought stock for $5,000 that is now worth $15,000. If you sell it, you owe tax on the $10,000 gain. If you donate it directly to a may have access to charity, you deduct the full $15,000 value and pay zero capital gains tax. The charity receives the full $15,000 worth of stock. This works for donations to schools, hospitals, religious organizations, and most nonprofits, but not to donor-advised funds or private foundations in most cases.

You will need a written appraisal for assets over $5,000 and must file Form 8283 with your tax return. Keep records of the original purchase price and date, and the donation date and value.

Understand stepped-up basis for inherited assets

When you inherit an investment, its basis—the value used to calculate gain or loss—resets to its value on the date of the original owner's death. This is called a stepped-up basis. If your parent bought stock for $10,000 and it was worth $50,000 when they died, your basis is $50,000. If you sell it the next day for $50,000, you have zero gain and owe zero tax.

This rule applies to most inherited assets: stocks, bonds, real estate, and mutual funds. It does not explore to inherited retirement accounts like IRAs, which have different rules. Stepped-up basis is one reason some people hold appreciated assets until death rather than selling during life—the heirs avoid the tax entirely. However, this strategy only makes sense if you do not need the money and can afford to wait.

Consider installment sales and opportunity zones

An installment sale spreads the gain across multiple years instead of recognizing it all in the year of sale. If you sell property for $100,000 with a $40,000 gain and receive payments over five years, you recognize the gain proportionally each year. This can keep you in a lower tax bracket each year rather than pushing you into a higher one in a single year.

Installment sales work best for real estate and business sales. They require a promissory note and specific IRS reporting on Form 6252. If the buyer defaults, you have a claim against them but no refund of taxes already paid.

Opportunity zones are designated low-income areas where you can invest capital gains and defer the tax. If you invest a gain into an opportunity zone fund within 180 days of the sale, you defer tax on that gain. The deferred tax is due in 2026 or when you sell the opportunity zone investment, whichever comes first. If you hold the investment for at least 10 years, the gain on the opportunity zone investment itself is tax-free. These are complex and carry risk; consult a tax professional before using them.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

Short-term gains are from assets held one year or less and taxed as ordinary income at rates up to 37 percent. Long-term gains are from assets held more than one year and taxed at 0, 15, or 20 percent depending on income. Long-term rates are almost always lower.

Can I use capital losses from previous years?

Yes. If you have unused losses from prior years, you can carry them forward indefinitely. Each year you can deduct up to $3,000 of losses against ordinary income, and any excess carries to the next year. Losses can offset gains dollar-for-dollar with no limit.

Do I owe capital gains tax on inherited assets?

No, not when ready. Inherited assets receive a stepped-up basis, meaning the tax basis resets to the asset's value on the date of death. You owe tax only on gains that occur after you inherit, not on gains that occurred before.

Can I avoid capital gains tax by not selling?

Yes. If you never sell, you never trigger a taxable event and owe no capital gains tax. However, you also cannot access the gain as cash. This works if you plan to pass the asset to heirs, who will receive a stepped-up basis and avoid the tax.

What happens if I sell at a loss?

You can deduct up to $3,000 of losses against ordinary income each year. Any excess loss carries forward to future years. Losses can also offset gains dollar-for-dollar with no limit, which is why tax-loss harvesting is effective.