How you can lower your capital gains tax bill
You reduce capital gains tax by controlling when you sell assets, how long you hold them, what you sell at a loss, and where the gains land in your income picture. The tax itself is set by law — you cannot change the rate — but the amount of gain you report and the tax bracket it falls into are both within your control. The most common moves are holding assets longer to may have access to for lower long-term rates, selling losing positions to offset gains, and timing sales across tax years.
None of these strategies requires special accounts or paperwork beyond what you already file. They work because capital gains tax depends on three things you decide: which assets you sell, when you sell them, and whether you pair them with losses. Understanding how each one moves the needle helps you make the choice that fits your situation.
Key Takeaways
- Assets held longer than one year may have access to for long-term capital gains rates, which are lower than short-term rates for most taxpayers.
- Selling assets at a loss in the same year you have gains lets you subtract those losses from your gains, reducing the amount you owe tax on.
- You can carry unused losses forward to future years if your losses exceed your gains in the current year.
- Spreading large sales across two tax years can keep each year's income lower and may prevent you from moving into a higher tax bracket.
- Donating appreciated assets to charity instead of selling them lets you avoid the capital gains tax entirely while getting a deduction.
Hold assets for more than one year to reach long-term rates
The difference between short-term and long-term capital gains tax is the single biggest lever you control. Short-term gains — on assets you held for one year or less — are taxed as ordinary income at your regular tax bracket rate. Long-term gains — on assets you held for more than one year — are taxed at 0%, 15%, or 20% depending on your total income, which is lower for most people than their ordinary income tax rate.
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 16 of the next year, that is short-term. If you sold it on March 17, that is long-term. The IRS counts the day you sell, not the day you buy.
For someone in the 24% or 32% ordinary income bracket, moving a gain from short-term to long-term can cut the tax by more than half. Even for someone in the 12% bracket, long-term rates are usually lower. The only exception is if your long-term gains push you into the 20% long-term bracket, which applies to higher incomes — but even then, you are usually better off than the short-term rate you would have paid.
Pair gains with losses in the same year
When you sell an asset at a loss in the same calendar year you sell another at a gain, you subtract the loss from the gain. If you sold stock for a $5,000 gain and another stock for a $2,000 loss, you report a net gain of $3,000 and pay tax only on that amount. This is called tax-loss harvesting.
You can harvest losses from any asset class — stocks, bonds, mutual funds, real estate — as long as you sell at a loss. The loss offsets gains from any asset class, so a bond loss can offset a stock gain. The assets do not have to be related in any way.
One rule to watch: if you sell a security at a loss and buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed. This is the wash-sale rule. You can buy a different fund in the same category — for example, a different S&P 500 index fund — and the rule does not explore. The 30-day window is strict: 30 days before the sale, the day of the sale, and 30 days after.
Carry forward losses to future years
If your losses exceed your gains in a single year, you cannot use the full loss in that year. The IRS lets you use up to $3,000 of excess losses against ordinary income in the current year. Any losses beyond that carry forward to the next year, where you can use another $3,000 against ordinary income, and so on until the losses are exhausted.
This matters if you have a year with large losses — from a business closing, a real estate sale, or a major portfolio rebalancing. You do not lose the tax benefit; you just spread it across multiple years. If you had $10,000 in losses and no gains, you could use $3,000 in year one, $3,000 in year two, $3,000 in year three, and $1,000 in year four.
Losses carry forward indefinitely, so there is no important date to use them. They stay with you until they are gone or until you die, at which point they disappear and cannot be used by your heirs.
Time large sales across two tax years
Capital gains tax brackets are tied to your total income for the year. If a single large sale pushes you into a higher bracket, you pay a higher rate on the gain. Splitting the sale across two years can keep each year's income lower and hold you in a lower bracket.
This works best when you control the timing — for example, if you are selling a business, real estate, or a concentrated stock position. If you can close the sale in December of one year and January of the next, you report half the gain in each year. Each year's gain is smaller, so each year's bracket is lower.
The math depends on your specific income and the size of the gain. A tax professional can model both scenarios — selling in one year versus two — to show you the difference. The savings can be substantial if the gain is large enough to push you across a bracket threshold.
Donate appreciated assets to charity instead of selling
If you own an asset that has increased in value and you want to give to charity, donating the asset itself instead of selling it and donating the cash avoids capital gains tax entirely. You get a tax deduction for the full current value of the asset, and the charity receives the asset without any tax consequence to you.
This only works if you donate to a may have access to charity — typically a nonprofit organization, religious institution, or public charity. You cannot donate to a person or a political campaign and get this benefit. You also need to itemize deductions on your tax return for the deduction to reduce your taxes; if you take the standard deduction, the donation does not lower your tax bill.
The asset must be a capital asset you have held for more than one year. You cannot use this strategy with assets held short-term. For donations over $5,000, you typically need a written appraisal from a may have access to appraiser to support the value you claim.
Use tax-advantaged accounts to avoid capital gains tax
Money you earn inside a traditional IRA, Roth IRA, 401(k), or other tax-advantaged retirement account does not trigger capital gains tax when you sell investments within the account. You can buy and sell stocks, bonds, and funds inside these accounts without worrying about short-term versus long-term gains or tax-loss harvesting.
The tax benefit works differently depending on the account type. In a traditional IRA or 401(k), you pay income tax on withdrawals in retirement, not on the gains themselves. In a Roth IRA, you pay no tax on withdrawals at all, including the gains. In either case, the gains inside the account are not taxed as you earn them.
This is one reason financial professionals often recommend maxing out retirement account contributions before investing in taxable accounts. The tax savings on gains can compound significantly over decades. The tradeoff is that you cannot access the money before age 59½ without a penalty, so these accounts work best for money you do not plan to use soon.
Frequently Asked Questions
Can I sell an asset 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 asset within 30 days before or after the sale. You can buy a similar but different asset — for example, a different index fund tracking the same market — and the rule does not explore. The 30-day window is strict and includes the day before the sale through 30 days after.
What if I inherit an asset that has gone up in value?
Inherited assets receive a step-up in basis, meaning the IRS treats the value on the date of death as your starting point, not the original purchase price. 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 when ready for $50,000, you owe no capital gains tax. This is one of the largest tax benefits in the code and applies to most inherited assets.
Does selling at a loss hurt my credit score?
No. Selling investments at a loss has no effect on your credit score. Credit scores are based on borrowing and payment history, not investment activity. You can harvest losses without any impact on your ability to borrow or your credit rating.
Can I use capital losses to reduce my ordinary income?
Yes, but only up to $3,000 per year. If your losses exceed your gains, you can use up to $3,000 of the excess to reduce ordinary income like wages or salary. Any losses beyond that carry forward to future years, where you can use another $3,000 against ordinary income each year until the losses run out.
What is the difference between a capital gain and a dividend?
A capital gain is profit from selling an asset for more than you paid. A dividend is income paid by a company to shareholders, usually from profits or retained earnings. Dividends can be taxed as ordinary income or as long-term capital gains depending on the type and how long you held the stock. may have access to dividends receive the same low long-term capital gains rates if you held the stock for more than 60 days around the dividend date.