What actually reduces capital gains tax, and what doesn't
You cannot avoid capital gains tax entirely if you sell an asset at a profit, but you can reduce what you owe through timing, account type, and how you structure the sale. The IRS taxes the difference between what you paid for an asset and what you sold it for — that gap is your gain. Strategies that work involve either shrinking that gap, moving the sale to a year when your income is lower, or holding assets long enough to reach the lower long-term rate.
Strategies that do not work include claiming the gain never happened, hiding the sale, or transferring the asset to someone else's name. The IRS receives reports from brokers and title companies about sales, and penalties for unreported gains are steep. The focus should be on legal moves you can make before or at the time of sale.
Key Takeaways
- Holding an asset for more than one year before selling it drops your tax rate from ordinary income rates (up to 37%) to long-term rates (0%, 15%, or 20%), which saves thousands on large gains.
- Selling assets in a year when your other income is unusually low — such as after retirement or a job loss — can push your gain into a lower tax bracket or even the 0% long-term rate.
- Tax-advantaged accounts like 401(k)s, IRAs, and HSAs let you buy and sell investments inside them without triggering any capital gains tax until you withdraw the money.
- Harvesting losses from underperforming investments lets you offset gains dollar-for-dollar, though the IRS has rules about buying back similar assets too quickly.
- Charitable donations of appreciated assets avoid the capital gains tax on the gain while giving you a deduction for the full current value.
Hold assets for over one year to reach the long-term rate
The single biggest 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. For 2024, that can be as high as 37% on large gains. If you hold the asset for more than one year, the gain qualifies for the long-term rate: 0%, 15%, or 20%, depending on your total income.
The holding period starts the day after you buy. If you bought stock on March 15, 2024, you reach the one-year mark on March 16, 2025. Selling on March 16 or later triggers the long-term rate; selling on March 15 or earlier triggers the short-term rate. On a $50,000 gain, the difference between short-term (37%) and long-term (20%) is $8,500 in tax.
This strategy requires patience but no paperwork. You simply wait. If you need the money sooner, you have to weigh the tax cost against your cash need. If you can afford to wait, waiting is almost always the better move financially.
Sell in a low-income year to use lower tax brackets
Capital gains stack on top of your other income for the year. If you earn $60,000 in salary and have a $100,000 long-term gain, you are taxed on $160,000 total. But if you sell that same asset in a year when you have no salary — such as the year you retire or after a job loss — the gain may fall into a lower bracket or even the 0% long-term rate.
For 2024, the 0% long-term rate applies to single filers with income up to $47,025 and married filers filing jointly up to $94,050. If you are retired and living on $30,000 in Social Security, you could realize a $17,000 long-term gain and pay zero tax on it. The same gain in a year when you earned $100,000 in wages would cost you $2,550 in tax.
This works best if you can time a major sale around a life event: retirement, a sabbatical, a year between jobs, or the death of a spouse (which can double your bracket for that year). It requires planning — you need to know your income for the year before you sell — but it is entirely legal and common among people with large concentrated positions in company stock or real estate.
Use tax-advantaged accounts to avoid capital gains tax on trades
Money inside a 401(k), traditional IRA, Roth IRA, or Health Savings Account (HSA) can be invested in stocks, bonds, mutual funds, or other assets. When you buy and sell those investments inside the account, no capital gains tax is triggered. You can trade dozens of times a year and owe nothing until you withdraw the money from the account.
This is one of the largest tax breaks available. If you have $100,000 in a taxable brokerage account and trade actively, you might owe $15,000 or more in capital gains tax each year. The same $100,000 in a 401(k) or IRA generates zero tax on the gains until you take money out — and even then, you only pay tax on what you withdraw, not on the gains themselves if you are in a Roth account.
The catch is contribution limits. For 2024, you can put $7,000 per year into an IRA (or $8,000 if you are 50 or older) and up to $23,500 into a 401(k) (or $31,000 if you are 50 or older). An HSA allows $4,150 for individual coverage or $8,300 for family coverage. If you have more money to invest than these limits allow, the excess goes into a taxable account where capital gains tax applies.
Harvest losses to offset gains
If you own an investment that has lost value, you can sell it and use that loss to cancel out capital gains from other sales. This is called tax-loss harvesting. If you sold a stock for a $30,000 gain and another for a $12,000 loss, your net gain is $18,000 and you pay tax only on that amount.
You can harvest losses throughout the year, but the strategy is most useful in November and December when you know your full-year gains. If you have realized $50,000 in gains and still hold losing positions, selling them before year-end can reduce your tax bill significantly. A $50,000 loss would wipe out the $50,000 gain entirely.
One rule to watch: 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 different investment immediately — for example, sell one S&P 500 index fund and buy another — and the loss still counts. The rule exists to prevent people from selling for the tax break and immediately buying back the same thing.
Donate appreciated assets to charity 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 on the gain entirely. You also receive a tax deduction for the full current value of the asset, not just what you paid for it.
Example: You bought stock for $10,000 that is now worth $50,000. If you sell it, you owe tax on the $40,000 gain. If you donate it to a charity, you owe zero tax on the gain and you can deduct $50,000 from your income (subject to limits based on your income). On a 20% long-term gain, this saves you $8,000 in tax plus gives you a $50,000 deduction worth roughly $12,000 to $15,000 in tax savings, depending on your bracket.
The charity must be a may have access to organization — the IRS website has a searchable database. You cannot donate to a person or a political campaign and receive this benefit. You also need a written appraisal for property worth over $5,000 and must file Form 8283 with your tax return. But for large appreciated assets, this is one of the most powerful tax moves available.
Understand step-up in basis at death
When you inherit an asset, its tax basis — the price used to calculate gain or loss — is reset to its value on the date of death. This is called a step-up in basis. If your parent bought stock for $10,000 and it was worth $100,000 when they died, your basis becomes $100,000. If you sell it the next day for $100,000, you owe zero capital gains tax.
This is not a strategy you can use yourself, but it matters for estate planning. If you hold appreciated assets and expect to pass them to heirs, holding them until death can eliminate the capital gains tax entirely. This is one reason wealthy people often hold concentrated positions in stock or real estate for decades — they plan to pass it to heirs at a stepped-up basis rather than sell it during their lifetime.
This benefit applies to most inherited assets, including stocks, real estate, and mutual funds. It does not apply to retirement accounts like IRAs, which have their own rules. The step-up is automatic; you do not need to do anything to claim it.
Frequently Asked Questions
Can I avoid capital gains tax by holding an asset forever?
You avoid tax only if you never sell. The moment you sell, the gain is taxable. If you hold until death, your heirs receive a stepped-up basis and can sell without owing tax on the gain that occurred during your lifetime. But if you sell while alive, the tax is due.
What if I sell at a loss — do I get a refund?
No refund, but you can use the loss to offset gains from other sales. If you have no gains to offset, you can deduct up to $3,000 of losses against ordinary income in a single year. Losses beyond that carry forward to future years indefinitely.
Does the long-term rate apply if I hold for exactly one year?
No. You must hold for more than one year. The holding period starts the day after purchase. If you bought on January 1, 2024, you reach more than one year on January 2, 2025. Selling on January 1, 2025 triggers short-term rates.
Can I use a loss from one investment to offset a gain from a different investment?
Yes. Capital gains and losses are netted together for the year. A $30,000 gain from selling one stock and a $12,000 loss from selling another result in a net $18,000 gain, taxed as one amount.
Do I have to report capital gains if I reinvest the money?
Yes. The tax is based on the gain itself, not on what you do with the proceeds. Reinvesting does not change the tax owed. You report the gain on your tax return regardless of whether you spend the money or buy new investments.