How to Reduce Capital Gains Tax on Your Investments and Property
You can reduce capital gains tax by holding investments longer, using tax-advantaged accounts, donating appreciated assets to charity, and offsetting gains with losses. The most effective strategy depends on what you own, how long you have owned it, and your income level. Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, so timing when you sell makes a measurable difference.
You can also use strategies like tax-loss harvesting, which means selling losing investments to offset winning ones, or holding appreciated property until death so your heirs inherit it at a stepped-up basis. Some of these strategies work together—for example, you might hold an asset in a tax-advantaged account to avoid gains tax entirely, or donate appreciated stock to charity to avoid tax and get a deduction at the same time.
Key Takeaways
- Long-term capital gains rates are lower than short-term rates, so holding an investment for more than one year before selling can cut your tax bill significantly.
- Tax-loss harvesting lets you sell investments at a loss to offset gains from other sales in the same year, reducing your total taxable gain.
- Donating appreciated stocks, real estate, or art directly to a may have access to charity avoids the capital gains tax entirely and gives you a deduction for the full fair market value.
- Holding appreciated assets until death allows your heirs to inherit them at a stepped-up basis, meaning they owe no tax on the gains that happened while you owned them.
- Keeping detailed records of your purchase price (basis) and sale price is essential because the IRS requires you to report the actual gain, not an estimate.
Understanding Long-Term vs. Short-Term Capital Gains Rates
The biggest tax difference comes down to how long you hold an asset. If you sell something you have owned for one year or less, the gain is short-term capital gains, taxed as ordinary income at your regular tax bracket—up to 37% at the federal level. If you hold it for more than one year, it becomes long-term capital gains, taxed at 0%, 15%, or 20% depending on your income level, which is substantially lower.
For example, if you buy a stock for $10,000 and sell it for $15,000 after eight months, your $5,000 gain is short-term. If you sell the same stock after 13 months, that same $5,000 gain is long-term and taxed at a lower rate. The difference can be thousands of dollars on larger gains. This is why many investors plan their sales around the one-year mark rather than selling whenever they want.
Your income level determines which long-term rate you pay. In 2024, the 0% rate applies to single filers earning under roughly $47,000 and married filers under $94,000. The 15% rate covers most middle-income earners, and the 20% rate applies to higher earners. These thresholds change yearly, so checking the current year's IRS tables before you sell is worth the five minutes it takes.
Using Tax-Loss Harvesting to Offset Gains
Tax-loss harvesting means selling an investment that has lost value to create a loss you can use against gains from other sales. If you sold a stock for a $3,000 gain and another for a $2,000 loss in the same year, you report a net gain of $1,000 and pay tax only on that amount. This is one of the few ways the IRS lets you use losses to reduce what you owe.
The catch is the wash-sale rule: you cannot buy back the same investment (or a substantially identical one) within 30 days before or after the sale, or the loss does not count. If you sell a losing stock on December 15, you cannot buy it back until January 15 or later. However, you can when ready buy a similar but not identical investment—for example, selling one S&P 500 index fund and buying a different one—to stay invested while the wash-sale window closes.
Tax-loss harvesting works best when you have both winners and losers in your portfolio. If you have only winners, you cannot harvest losses. If you have more losses than gains in a year, you can carry the unused loss forward to future years, up to $3,000 per year against ordinary income, with the remainder rolling forward indefinitely. This means a large loss is not wasted—you just use it over time.
Donating Appreciated Assets Directly to Charity
Donating appreciated property—stocks, real estate, art, or other assets that have gained value—to a may have access to charity avoids capital gains tax entirely and gives you a tax deduction for the full fair market value. If you own a stock worth $10,000 that you bought for $4,000, donating it means you owe no tax on the $6,000 gain, and you deduct the full $10,000 from your income.
This works only if the charity is may have access to, meaning it is recognized by the IRS as a 501(c)(3) organization or similar tax-exempt entity. You can check a charity's status on the IRS Tax Exempt Organization Search tool online. The asset must also have been held for more than one year, or the deduction is limited to your cost basis rather than the current value.
For large donations, you may need a professional appraisal to prove the fair market value, which costs money but is often worth it if the gain is substantial. If you donate property worth more than $5,000, the IRS generally requires a may have access to appraisal. Keep records of the donation, the charity's name and tax ID, and the asset's value on the date you gave it.
Holding Assets Until Death (Stepped-Up Basis)
When you inherit an asset, its basis—the value used to calculate gain or loss—resets to its fair market value on the date of death. This is called a stepped-up basis. If your parent bought a house for $200,000 and it is worth $500,000 when they die, your basis becomes $500,000. If you sell it when ready for $500,000, you owe no capital gains tax because there is no gain.
This is one of the largest tax breaks available, and it applies to most inherited assets: stocks, real estate, collectibles, and more. The benefit is automatic—your heirs do not have to do anything special to receive it. However, this strategy requires you to hold the asset until death, which means you cannot sell it during your lifetime without triggering tax. It works best for assets you plan to keep anyway or for people who do not need the money when ready.
Note that this rule may change in the future, as some proposals would eliminate or limit stepped-up basis for very large estates. Current law applies to all inherited assets regardless of size, but checking the rules closer to your situation is wise if you are planning decades ahead.
Using Tax-Advantaged Accounts to Avoid Gains Tax Entirely
The simplest way to avoid capital gains tax is to invest inside a tax-advantaged account where gains are not taxed at all. In a traditional 401(k) or IRA, you can buy and sell investments as often as you want without triggering any capital gains tax. The same applies to a Roth IRA or Roth 401(k), except withdrawals in retirement are also tax-free. A Health Savings Account (HSA) works the same way if you use it for medical expenses.
These accounts have annual contribution limits—$7,000 for an IRA and $23,500 for a 401(k) in 2024, with higher limits if you are 50 or older—so you cannot shelter unlimited amounts. However, if you are investing for retirement anyway, maxing out these accounts before investing in a regular taxable account is the most tax-efficient move you can make. You pay tax on the money you put in (or not, if it is a traditional account) but never on the gains inside.
If your employer offers a 401(k) match, contributing enough to get the full match is essentially information programs and should be your first priority. After that, a Roth IRA is often the next best choice because you get tax-free growth and withdrawals, and you can withdraw contributions (not earnings) penalty-free if you need the money before retirement.
Timing Sales and Spreading Gains Across Years
If you have a large gain, selling it all in one year might push you into a higher tax bracket or trigger other taxes (like the Net Investment Income Tax, which adds 3.8% for high earners). Spreading the sale across two years can keep you in a lower bracket and reduce your total tax bill. For example, if you own rental property or a business, you might be able to structure the sale over two years rather than closing it all at once.
This strategy requires planning and is not always possible—you cannot force a buyer to wait—but when it is an option, it is worth considering. A tax professional can model the difference between selling in one year versus two and tell you whether the savings justify the effort.
Timing also matters for year-end planning. If you have losses you want to harvest, you must do it before December 31 of the year you want to use them. If you are close to a long-term holding period, waiting a few weeks or months to cross the one-year threshold can save thousands. These small timing decisions add up, especially over a lifetime of investing.
Keeping Accurate Records of Your Cost Basis
The IRS requires you to report the actual gain on each sale, which means you need to know what you paid for the asset (your cost basis) and what you sold it for. If you cannot prove your basis, the IRS can assume your entire sale price is gain, which is the worst-case scenario. Keeping records is not optional—it is the foundation of every tax strategy.
For stocks and mutual funds, your broker usually tracks this for you and reports it to the IRS on Form 1099-B. However, for real estate, inherited assets, or older investments, you may need to dig up old statements or receipts. If you inherited property, the basis is the value on the date of death, which may require a professional appraisal. If you received stock as compensation, your basis is the fair market value on the date you received it.
Keep purchase confirmations, sale confirmations, brokerage statements, and any documents showing improvements (for real estate) or adjustments to basis. If you sell property at a loss and later buy it back, document the dates carefully to prove you are not violating the wash-sale rule. These records should be kept for at least three years after you file the return, though seven years is safer.
Frequently Asked Questions
Can I avoid capital gains tax by reinvesting the money?
No. Reinvesting the proceeds does not reduce or defer the tax. You owe capital gains tax on the gain itself, regardless of what you do with the money afterward. However, if you reinvest inside a tax-advantaged account like an IRA or 401(k), future gains on that new investment will not be taxed (or will be tax-deferred).
What if I sell at a loss—can I use that to reduce other income?
Yes, but only up to $3,000 per year against ordinary income like wages. If your loss is larger, you carry the excess forward to future years. For example, a $10,000 loss lets you deduct $3,000 this year and $3,000 next year, with $4,000 remaining for year three. Losses can offset gains dollar-for-dollar with no limit, so use them against gains first.
Do I owe capital gains tax on inherited property if I sell it right away?
No, because of stepped-up basis. When you inherit an asset, its basis resets to its fair market value on the date of death. If you sell it when ready for that same value, there is no gain and no tax. You only owe tax if the value increases between the date of death and the date you sell.
What is the difference between capital gains and dividends tax?
Capital gains are taxed when you sell an asset for more than you paid. Dividends are taxed when a company pays you money from its profits. may have access to dividends (from U.S. companies held for at least 60 days) are taxed at the same long-term capital gains rates. Non-may have access to dividends are taxed as ordinary income at your regular bracket.
Can I deduct investment losses from my regular income?
Only up to $3,000 per year. If you have more losses than gains, you can deduct up to $3,000 against wages, interest, or other ordinary income. Any remaining loss carries forward to future years indefinitely, so you are not losing the deduction—just spreading it out over time.