How capital gains tax reduction actually works

You reduce capital gains tax by either lowering the amount of gain you report, deferring when you report it, or moving into a lower tax bracket. The IRS does not let you simply pay less — but it does allow certain transactions, timing choices, and account types that legally reduce your taxable gain. The difference between a $50,000 gain taxed at 15 percent and the same gain taxed at 0 percent is $7,500 in federal tax alone.

The most common methods are holding assets longer to may have access to for long-term rates instead of short-term rates, using tax-loss harvesting to offset gains with losses, and placing investments in accounts like IRAs or 401(k)s where gains are not taxed until withdrawal. Each method has specific rules about timing, account type, and income level. None of them are secrets — they are all in the tax code — but they require you to plan ahead or act before you sell.

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0, 15, or 20 percent depending on income; short-term gains are taxed as ordinary income, which is higher for most people.
  • Tax-loss harvesting means selling investments at a loss to offset gains from other sales in the same year, reducing your total taxable gain dollar-for-dollar.
  • Retirement accounts like traditional IRAs, Roth IRAs, and 401(k)s allow you to buy and sell investments without triggering capital gains tax until you withdraw the money.
  • Gifting appreciated assets to family members or charity can transfer the asset without you paying tax on the gain, though the recipient's tax situation changes.
  • Timing matters: selling in a year when your income is lower can move you into a lower tax bracket and reduce your capital gains rate from 15 percent to 0 percent.

Hold assets for more than one year to get long-term rates

The single biggest lever is the difference between short-term and long-term capital gains tax rates. If you hold an asset for one year or less before selling, the gain is taxed as short-term capital gains, which means it is added to your ordinary income and taxed at your regular income tax rate — up to 37 percent federally. If you hold it for more than one year, it becomes a long-term capital gain and is taxed at 0, 15, or 20 percent depending on your total income that year.

For most people, this is the largest tax saving available. A $10,000 gain on a stock you held nine months might cost you $2,400 in federal tax (at 24 percent ordinary income rate). The same $10,000 gain on a stock you held 13 months might cost you $1,500 (at 15 percent long-term rate). The holding period is measured from the date you bought to the date you sold — the IRS counts the purchase date as day zero.

This strategy works only if you can afford to wait. If you need the money sooner, or if the asset is falling in value, holding becomes a bad trade. But if you are selling a winner and have no immediate need for the cash, waiting a few months to cross the one-year line can save thousands.

Use tax-loss harvesting to offset gains with losses

Tax-loss harvesting means selling an investment at a loss and using that loss to cancel out gains from other sales. If you sold Stock A for a $5,000 gain and Stock B for a $3,000 loss in the same year, you report a net gain of $2,000 instead of $5,000. The $3,000 loss wipes out $3,000 of the $5,000 gain, dollar-for-dollar.

If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your ordinary income. Any losses beyond that carry forward to future years and can be used to offset future gains or deducted at $3,000 per year until they are exhausted. This means a bad year in one investment can shelter gains from good years, sometimes for many years.

The catch is the wash-sale rule: if you sell a stock at a loss, you cannot buy the same stock (or a substantially identical one) within 30 days before or after the sale, or the loss is disallowed. You can buy a similar but not identical stock — for example, you can sell one tech index fund at a loss and buy a different tech index fund the next day. Many people use this to stay invested while capturing the loss.

Invest through retirement accounts to defer or eliminate tax

Money inside a traditional IRA, 401(k), or similar retirement account grows without triggering capital gains tax each year. You can buy and sell stocks, bonds, or funds inside the account, and none of those transactions create a taxable event. Tax is owed only when you withdraw the money in retirement, and then it is taxed as ordinary income, not capital gains.

A Roth IRA or Roth 401(k) is even better: gains inside the account are never taxed, even in retirement, as long as you follow the withdrawal rules (generally age 59½ or later for Roth IRAs, with some exceptions). This means if you invest $7,000 in a Roth IRA and it grows to $50,000, you owe zero tax on that $43,000 gain when you withdraw it.

The tradeoff is contribution limits: you can put at most $7,000 per year into an IRA (or $8,000 if you are 50 or older) and $23,500 into a 401(k) (or $31,000 if 50 or older). For people with large investment portfolios, this is not enough room. But for most people, maxing out retirement accounts is the single most powerful tax tool available.

Gift appreciated assets instead of selling them

If you own an asset that has grown significantly in value, you can give it to a family member or charity instead of selling it. You do not owe capital gains tax on the gift itself. The recipient receives the asset at its current market value (called a stepped-up basis if you die, or a carryover basis if you gift during life), and their tax situation depends on what they do next.

Gifting to charity is the cleanest option: you avoid capital gains tax entirely and receive a charitable deduction for the fair market value of the asset. If you give $50,000 of appreciated stock to a may have access to charity, you owe zero capital gains tax and can deduct $50,000 from your income (subject to limits based on your adjusted gross income).

Gifting to family members is more complex. If you gift during your lifetime, the recipient gets a carryover basis — meaning if you bought the stock for $10,000 and it is now worth $50,000, they inherit your $10,000 basis. If they sell it for $50,000, they owe tax on the $40,000 gain. However, if you hold the asset until death, your heirs receive a stepped-up basis to the value on the date of death, and they can sell it immediately with no tax. This is a major reason some people hold appreciated assets until death rather than selling.

Bunch income into lower-income years to access 0 percent rates

Long-term capital gains are taxed at 0 percent on income below a certain threshold, 15 percent in the middle range, and 20 percent above that. For 2024, the 0 percent bracket for single filers ends at $47,025 of taxable income; for married filing jointly, it ends at $94,050. If your income is below these thresholds, you can realize capital gains with no federal tax.

This matters most in years when your income is unusually low — for example, if you took a sabbatical, retired early, or had a year with low business income. You can sell appreciated assets in that year and pay zero federal tax on the gain, as long as the total does not push you above the threshold. Once you return to normal income, you cannot use this strategy again until income drops.

Some people use this deliberately: they retire at 62 and live off savings for a few years before claiming Social Security at 70. During those low-income years, they sell appreciated investments at 0 percent tax. Once Social Security starts, income rises and the strategy no longer works. This requires planning years in advance, but the tax savings can be substantial.

Understand the net investment income tax on high earners

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you owe an additional 3.8 percent net investment income tax (NIIT) on top of regular capital gains tax. This applies to capital gains, dividends, interest, and other investment income. It is a separate tax, not part of the capital gains rate itself.

This means a high-income earner paying 20 percent long-term capital gains tax also pays 3.8 percent NIIT, for a combined federal rate of 23.8 percent. State taxes add on top of that. Reducing capital gains through the methods above (holding longer, tax-loss harvesting, using retirement accounts) reduces NIIT as well, since it applies to the same income.

The threshold is not adjusted for inflation, so more people hit it each year. If you are close to the threshold, even small reductions in capital gains can save you the 3.8 percent tax on the excess.

Frequently Asked Questions

Can I sell a stock at a loss and buy it back right away?

No — the wash-sale rule prevents you from deducting the loss if you buy the same or substantially identical stock within 30 days before or after the sale. You can buy a different stock in the same sector or asset class immediately, but the specific stock must wait 31 days. The 30-day window runs both directions from the sale date.

What happens to capital gains if I hold an asset until I die?

Your heirs receive a stepped-up basis, meaning the asset's value is reset to its market price on the date of death. If you bought stock for $10,000 and it is worth $100,000 when you die, your heirs can sell it immediately for $100,000 with no capital gains tax. This is one reason some people hold appreciated assets rather than selling them.

Do capital gains inside a 401(k) get taxed every year?

No — capital gains inside a 401(k) or traditional IRA are not taxed until you withdraw the money. You can buy and sell investments inside the account without triggering any tax. Tax is owed only on withdrawals, and then the entire withdrawal is taxed as ordinary income, not capital gains.

Can I use capital losses from one year to offset gains from a different year?

Yes, but only if your losses exceed your gains. If you have $5,000 in losses and $3,000 in gains in the same year, you report a net loss of $2,000. You can deduct $3,000 of that loss against ordinary income, and the remaining $1,000 carries forward to next year. Losses carry forward indefinitely until used.

Does moving to a state with no income tax reduce my capital gains tax?

It reduces state tax, not federal tax. If you sell an asset in a state with no income tax, you still owe federal capital gains tax. However, you avoid state capital gains tax, which ranges from 0 to 13 percent depending on the state. The federal tax is the larger piece for most people, but state tax savings can still be significant.