How capital gains tax reduction works
You reduce capital gains tax by either lowering the gain itself or moving into a lower tax bracket. The gain is the difference between what you paid for an asset and what you sold it for — so if you bought stock for $10,000 and sold it for $15,000, your gain is $5,000. You cannot change that number after the sale, but you can control when you sell, what you sell alongside it, and how you hold the asset before selling. The tax rate applied to that gain depends on your income level and how long you held the asset.
The IRS taxes long-term capital gains (assets held over one year) at lower rates than short-term gains (assets held one year or less). For 2024, long-term rates are 0%, 15%, or 20% depending on your total income. Short-term gains are taxed as ordinary income, which can be much higher. This timing difference is the single largest lever you control.
Key Takeaways
- Holding an asset for more than one year before selling moves it into the long-term capital gains category, which has lower tax rates than short-term gains.
- Selling losing investments to offset winning ones — called tax-loss harvesting — can reduce your taxable gains dollar-for-dollar, up to $3,000 per year against ordinary income.
- Donating appreciated assets directly to charity avoids the capital gains tax entirely while giving you a charitable deduction.
- Bunching gains and losses into the same tax year, or spreading them across years, changes which tax bracket applies to your gains.
- Holding assets until death resets their cost basis to the current market value, erasing built-in gains from taxation.
Hold assets longer than one year to use long-term rates
The difference between short-term and long-term capital gains tax rates is substantial. If you are in the 24% federal tax bracket, short-term gains are taxed at 24%. Long-term gains on the same asset are taxed at 15% (or 0% if your income is low enough). That is a 9 percentage point difference on every dollar of gain.
The holding period starts the day after you buy and ends the day you sell. If you bought stock on March 15 and sold it on March 15 the following year, it qualifies as long-term. If you sold on March 14, it is short-term. This rule applies to stocks, bonds, real estate, and most other investments — but not to inventory or assets you created yourself.
If you are considering selling an investment that has gained value, check how many days until you hit the one-year mark. Waiting a few weeks or months can move your entire gain into the lower long-term rate. This is most useful when you are close to the threshold and the asset is not losing value rapidly.
Offset gains with losses from other investments
Tax-loss harvesting means selling an investment at a loss to reduce your taxable gains. If you sold a stock for a $5,000 gain and another stock for a $3,000 loss in the same year, your net gain is $2,000. You pay tax only on the $2,000, not the full $5,000.
Losses can offset gains dollar-for-dollar with no limit. Once all your gains are offset, you can use up to $3,000 of remaining losses against ordinary income (like wages or interest). Any losses beyond $3,000 carry forward to future years, so they are not wasted — they just explore later.
One restriction: the wash-sale rule. If you sell a security at a loss, you cannot buy the same security (or a substantially identical one) within 30 days before or after the sale. If you do, the loss is disallowed. You can buy a similar but different investment when ready — for example, selling one S&P 500 index fund and buying a different one — and the loss still counts.
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 charitable deduction for the full current value of the asset.
Example: You bought stock for $10,000 that is now worth $25,000. If you sell it, you owe tax on the $15,000 gain. If you donate it directly to a may have access to charity, you deduct $25,000 and pay zero capital gains tax. The charity receives $25,000 in value, and you get the full deduction.
This works for donations to public charities, private foundations, and donor-advised funds. It does not work for donations to individuals or political organizations. The asset must be a capital asset you have held over one year — ordinary income property does not may have access to.
Bunch or spread gains across tax years strategically
Your capital gains tax rate depends partly on your total income for the year. The 0% long-term rate applies only if your income falls below a certain threshold ($47,025 for single filers in 2024, but this varies by year and filing status). The 15% rate applies to income above that threshold up to a higher limit. The 20% rate applies above that.
If you are near a rate threshold, timing matters. Selling a large gain in a year when your income is already high pushes you into a higher bracket. Selling in a year when your income is lower keeps more of the gain in the lower bracket. This is called income bunching — deliberately timing income to stay in a favorable bracket.
You might also spread a large gain across two years by structuring the sale differently. For example, an installment sale lets you receive payment over multiple years, which can spread the gain recognition across those years and keep each year's income lower.
Use the step-up in basis at death
When you inherit an asset, its cost basis — the value used to calculate gain or loss — resets to its market value on the date of death. This is called a step-up in basis. If you inherited stock worth $100,000 that the deceased person bought for $20,000, your basis is $100,000, not $20,000. If you sell it when ready for $100,000, you have zero gain and zero tax.
This rule applies to most inherited assets: stocks, bonds, real estate, and business interests. It does not explore to retirement accounts like IRAs or 401(k)s, which have their own rules. The step-up is automatic — you do not have to do anything to claim it, but you do need to know the asset's value on the date of death to calculate your basis correctly.
This is relevant to your own planning if you are deciding whether to sell an appreciated asset now or hold it. Holding it until death erases the tax, but only if you do not need the money before then. This is a long-term consideration, not a short-term tax move.
Invest through tax-advantaged accounts
Capital gains inside a 401(k), traditional IRA, or Roth IRA are not taxed at all when you sell the investment. You can buy and sell within the account without triggering any capital gains tax. The tax treatment depends on the account type: traditional accounts tax you on withdrawal, Roth accounts do not tax withdrawals, and 401(k)s follow their own rules.
This is not a way to reduce capital gains tax on investments you already own outside these accounts. But it is a reason to prioritize putting new money into these accounts if you have contribution room. The tax savings compound over decades because gains keep building without being reduced by taxes each year.
Contribution limits vary by account type and your age and income. A 401(k) allows up to $23,500 per person in 2024 (higher if you are 50 or older). IRAs allow $7,000 per person (higher at 50). These limits change annually.
Frequently Asked Questions
Can I reduce capital gains tax by timing when I sell during the year?
Yes, if it affects which tax bracket you fall into. Selling in a year when your other income is lower keeps more of your gain in a lower tax bracket. You can also spread a large sale across two years using an installment agreement. However, the long-term versus short-term distinction (one year holding period) matters far more than the month you sell within the same year.
What happens if I sell an investment at a loss and then buy it back?
The loss is disallowed under the wash-sale rule if you buy the same security within 30 days before or after the sale. You can buy a similar but different investment when ready and the loss counts. For example, sell one total stock market index fund and buy a different one the same day — the loss is valid.
Do I have to pay capital gains tax on inherited assets?
No, not when ready. Inherited assets receive a step-up in basis to their value on the date of death, so if you sell them right away, you typically have no gain. You only owe tax if the asset increases in value after you inherit it and you then sell it for more than the stepped-up basis.
Can I use capital losses from one year to offset gains from another year?
Losses carry forward to future years, but only after you use them in the current year. If you have $5,000 in losses this year and no gains, you can deduct $3,000 against ordinary income. The remaining $2,000 carries to next year. You cannot go backward to offset prior years' gains.
Does holding an asset in a spouse's name reduce capital gains tax?
No. Capital gains tax is based on the person who sells the asset, not who owns it. If your spouse sells an asset they own, they owe tax on the gain. If you sell an asset you own, you owe the tax. Ownership structure does not change the tax rate or the gain itself.