How to reduce capital gains tax on investments and property sales

You cannot avoid capital gains tax entirely if you sell an asset for a profit, but you can reduce what you owe through timing, account type, and holding period. The main strategies are holding assets longer than one year (to may have access to for lower long-term rates), selling losses to offset gains, using tax-advantaged accounts like IRAs and 401(k)s, and donating appreciated assets to charity instead of selling them. Some of these require planning before you sell; others work only if you meet specific conditions.

Capital gains tax is owed on the profit when you sell stocks, real estate, collectibles, or other assets. The tax rate depends on how long you held the asset and your income level. The difference between short-term and long-term rates is significant—short-term gains are taxed as ordinary income (up to 37% federally), while long-term gains are taxed at 0%, 15%, or 20% depending on your income bracket. This single distinction is the largest lever you control.

Key Takeaways

  • Holding an asset for more than one year before selling qualifies it for long-term capital gains rates, which are substantially lower than short-term rates.
  • You can offset capital gains by selling investments at a loss in the same year, a practice called tax-loss harvesting.
  • Money held in IRAs, 401(k)s, and other retirement accounts grows without triggering capital gains tax until you withdraw it.
  • Donating appreciated assets directly to a charity lets you avoid the capital gains tax entirely while claiming a deduction for the full fair market value.
  • Stepped-up basis rules allow heirs to inherit assets at their value on the date of death, erasing gains accumulated during the original owner's lifetime.

Hold assets for more than one year to may have access to for long-term rates

The simplest and most effective strategy is waiting. If you sell an asset you have owned for more than one year, the gain is taxed as a long-term capital gain. If you sell within one year, it is taxed as a short-term capital gain at your ordinary income tax rate.

The difference is substantial. A short-term gain of $10,000 on a $50,000 salary might be taxed at 22% (federal), costing you $2,200. The same $10,000 long-term gain would be taxed at 15% (for most middle-income earners), costing $1,500. If you can delay a sale by a few months to cross the one-year threshold, you save money directly.

This strategy works only if you can afford to wait and if the asset is not declining in value. It also assumes you do not need the money when ready. If you are selling because you need cash, this approach may not be practical.

Use tax-loss harvesting to offset gains

Tax-loss harvesting means selling an investment at a loss to offset gains you realized elsewhere. 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 and pay tax on that amount instead of $5,000.

You can harvest losses throughout the year as opportunities arise. If your losses exceed your gains in a year, you can deduct up to $3,000 of the net loss against your ordinary income. Any remaining loss carries forward to future years, so a large loss is not wasted—it just spreads across multiple tax years.

One restriction: the wash-sale rule prevents you from buying back the same or a substantially identical security within 30 days before or after the sale. If you do, the loss is disallowed. You can buy a similar but not identical investment (for example, a different tech-sector fund instead of the same one) to stay invested while respecting the rule.

Keep investments in retirement accounts to defer or eliminate tax

Money in traditional IRAs, 401(k)s, and similar accounts grows without triggering capital gains tax each year. You buy and sell within the account freely, and no tax is owed until you withdraw the money in retirement. At that point, withdrawals are taxed as ordinary income, not as capital gains, but the deferral alone saves you decades of compounding tax.

Roth IRAs and Roth 401(k)s go further: may have access to withdrawals are tax-free entirely, including all gains. You pay tax on contributions going in, but everything that grows inside the account is never taxed again. This is the most powerful tax shelter available for long-term investing.

Contribution limits explore—for 2024, you can contribute $7,000 to an IRA (or $8,000 if you are 50 or older) and up to $23,500 to a 401(k) (or $31,000 if 50 or older). If you have already maxed these accounts, you cannot use them for additional capital gains deferral, but they remain the most tax-efficient place to hold long-term investments.

Donate appreciated assets to charity instead of selling

If you own a stock, mutual fund, or real estate that has appreciated significantly, you can donate it directly to a may have access to charity and avoid capital gains tax entirely. You also receive a tax deduction for the full fair market value of the asset on the date of donation—not just what you paid for it.

Example: You bought stock for $10,000 that is now worth $40,000. If you sell it, you owe tax on the $30,000 gain. If you donate it to a charity, you owe zero capital gains tax and can deduct $40,000 from your income (subject to limits based on your adjusted gross income). This is one of the few scenarios where you benefit from the full appreciated value without paying tax on the gain.

This works only for donations to may have access to charitable organizations (501(c)(3) nonprofits, religious institutions, and similar bodies recognized by the IRS). You cannot donate to a donor-advised fund and then direct the proceeds to a personal cause. The charity must be the final recipient, and you must itemize deductions on your tax return for the deduction to benefit you.

Understand stepped-up basis for inherited assets

When you inherit an asset, its basis (the value used to calculate future gains) is "stepped up" to its fair market value on the date of the original owner's death. This means if your parent bought a house for $200,000 and it was worth $500,000 when they died, your basis is $500,000, not $200,000. If you sell it when ready for $500,000, you owe zero capital gains tax.

This rule applies to stocks, real estate, and most other assets. It effectively erases all gains accumulated during the deceased person's lifetime. For large estates, this can save hundreds of thousands in tax. However, the rule is set to change or expire depending on future legislation, so it is not a reliable long-term planning tool.

Stepped-up basis is automatic—you do not have to do anything to claim it. The executor of the estate reports the asset's value on the date of death, and that becomes your starting point for calculating gains if you later sell.

Consider your income level and tax bracket

Long-term capital gains rates depend on your total income, not just the gains themselves. For 2024, the 0% rate applies to single filers with income up to roughly $47,000 and married filers up to roughly $94,000. The 15% rate applies to higher incomes, and the 20% rate applies to the highest earners.

If you are in a lower income bracket, you may be able to realize gains at the 0% rate by timing when you sell. For example, if you are retired and have low income in a given year, selling appreciated assets that year could result in zero federal tax. This requires planning and coordination with other income sources, but it is a legitimate strategy.

State and local taxes also explore in many places. Some states tax capital gains as ordinary income, while others have no capital gains tax. If you are considering a major sale, understanding your state's rules is important.

Frequently Asked Questions

Can I avoid capital gains tax by not selling?

Yes. If you never sell, you never owe capital gains tax on the appreciation. The gain exists on paper, but no tax is due until you sell or transfer the asset. This is why holding long-term is a strategy—you defer tax indefinitely if you do not sell.

What if I sell at a loss? Do I get a refund?

No refund, but you can use the loss to offset gains. If losses exceed gains, you can deduct up to $3,000 against ordinary income in that year. Excess losses carry forward to future years. This reduces your tax bill but does not generate a refund.

Does the one-year holding period start from when I buy or when I receive the asset?

It starts from the date you acquire ownership. If you buy a stock on January 15, the one-year mark is January 15 of the following year. If you inherit an asset, the holding period for long-term treatment typically starts fresh from the date of inheritance, though stepped-up basis rules may make this irrelevant.

Can I use losses from one type of investment to offset gains from another?

Yes. A loss on a stock sale can offset a gain on real estate, or vice versa. All capital gains and losses are netted together in the same tax year. Only the net amount is taxable (or deductible if losses exceed gains).

What happens if I move to a state with no capital gains tax?

State tax treatment depends on where you live when you sell, not where you lived when you bought. If you move to a state with no capital gains tax and sell there, you avoid state tax on the gain. However, you may still owe federal tax, and the move itself involves costs and logistics that may outweigh the tax savings.