Tax-Loss Harvesting: How to Lower Your Tax Bill
If you own taxable investments and a few positions are sitting in the red, tax-loss harvesting can help you turn paper losses into real tax savings. In simple terms, the strategy lets you use investment losses to offset gains and, in some cases, reduce a limited amount of ordinary income. This guide explains how tax-loss harvesting works, when it makes sense, and how to avoid mistakes that can erase the benefit.
Whether you are learning the basics or reviewing your portfolio near year-end, you will find a practical process you can use to spot opportunities, harvest losses carefully, and keep your long-term plan intact.
What Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of selling an investment at a loss in a taxable account so that loss can offset capital gains and, in some cases, a limited amount of ordinary income. The core idea is straightforward: if one investment has gone down, you may be able to use that loss to reduce taxes on investments that have gone up.
The IRS explains how capital gains and losses are reported, including the rules that determine whether a loss is short-term or long-term. For official guidance, see the IRS overview of capital gains and losses.
Tax-loss harvesting is not about abandoning an investment forever. It is about realizing the loss for tax purposes while staying invested in a similar, but not identical, asset so your portfolio can continue to match your goals.
Why Tax-Loss Harvesting Matters
Taxes can quietly chip away at investment returns. If you can legally offset gains with losses, you may keep more of your money working for you instead of sending it to the IRS.
This strategy matters most in taxable brokerage accounts, not retirement accounts like 401(k)s or IRAs, because tax-loss harvesting only applies to investments subject to annual capital gains taxes. It can be especially helpful in volatile years, when some holdings are down while others are still up.
Here are the main benefits:
- It can reduce taxes on realized capital gains.
- It may lower taxable income by up to $3,000 per year if your losses exceed your gains, subject to IRS rules.
- It can help you rebalance a portfolio without adding unnecessary tax drag.
- It keeps your long-term investing plan on track while making a tax-efficient move.
Best place to use it
Tax-loss harvesting usually makes the most sense in a taxable brokerage account, especially if you already have gains to offset or you expect to realize gains later in the year.
How Tax-Loss Harvesting Works
The basic process is simple: sell an investment that is below what you paid for it, realize the loss, and use that loss to offset gains elsewhere. If your losses are larger than your gains, up to $3,000 of the remaining loss may offset ordinary income each year, and any unused losses can generally carry forward to future years.
For example, imagine you bought an ETF for $10,000 and it is now worth $8,000. If you sell it, you realize a $2,000 capital loss. If you also sold another investment for a $2,000 gain, the loss could offset that gain and potentially reduce your taxable gain to zero.
If you had no gains at all, the loss could still help. You might use $3,000 of the loss to offset ordinary income this year, then carry the rest forward. That is one reason tax-loss harvesting can still be useful in a year when your portfolio is broadly down.
One important rule: you cannot buy back the same or a “substantially identical” investment within 30 days before or after the sale if you want to avoid the wash-sale rule. The SEC and IRS both stress the importance of understanding these tax consequences before trading in taxable accounts; for general investor guidance, the SEC’s tax-loss harvesting investor bulletin is a useful starting point.
Watch the wash-sale rule
If you sell a fund or stock for a loss and buy the same or a substantially identical investment too soon, the loss may be disallowed for now. Always check the 30-day window before you trade.
Real-world example: suppose you have $5,000 in realized gains from one stock sale and $3,200 in realized losses from another position. You would net those together, leaving $1,800 of taxable gains. If you also had an additional $2,000 loss, your net result could turn negative, and part of that loss might offset ordinary income or carry forward.
Step-by-Step Guide to Tax-Loss Harvesting
Step 1: Review Your Taxable Accounts
Start by looking only at taxable brokerage accounts. Retirement accounts generally do not benefit from tax-loss harvesting because trades inside them are not taxed the same way.
Make a list of positions that are currently below your purchase price. Focus on investments with meaningful losses, not tiny fluctuations. A $20 loss on a $2,000 position usually will not matter much, but a $1,500 or $5,000 paper loss may be worth a closer look.
If you want to understand how an investment change affects your overall return, you can also use the Investment Return Calculator to compare your original cost, current value, and expected recovery path.
Step 2: Identify Realized Gains for the Year
Look at gains you have already realized and any gains you may still realize before year-end. Tax-loss harvesting is most useful when you can offset gains from stock sales, mutual fund redemptions, or other taxable events.
For example, if you expect $4,000 in gains from selling a winning position, harvesting $4,000 in losses could reduce that tax bill significantly. If you have no gains, losses may still help, but the immediate benefit will be smaller.
Keep in mind that short-term gains are usually taxed at higher ordinary income rates, while long-term gains may be taxed at lower rates depending on your income and filing status. That difference is one reason timing matters.
Step 3: Choose What to Sell
Pick investments with losses that still fit your broader plan. The goal is not to abandon your strategy; it is to realize the loss while staying invested in a similar asset class.
For example, if you own a broad U.S. stock ETF that is down, you might replace it with another broad U.S. stock ETF or a similar index fund that gives you near-identical market exposure without violating the wash-sale rule. The exact replacement depends on the fund structure, holdings, and how similar the funds are.
When you are comparing choices, it can help to think in terms of expected long-term outcome rather than just price movement. A quick scenario check with the ROI Calculator can help you compare the impact of holding versus replacing a position over time.
Step 4: Check for Wash-Sale Risk
Before placing the trade, confirm that you have not bought the same or a substantially identical investment within the last 30 days and do not plan to buy it again within the next 30 days. This includes automatic dividend reinvestment in some cases, so your brokerage settings matter.
Wash-sale issues are one of the most common reasons tax-loss harvesting goes wrong. If you are unsure whether two funds are too similar, review the fund’s index, holdings, and objective carefully.
Simple replacement idea
A common approach is to sell one fund and buy a different fund that tracks a similar but not identical index. That can help you stay invested while reducing wash-sale risk.
Step 5: Execute the Trade
Once you have confirmed the loss, the replacement, and the tax timing, place the sale in your brokerage account. Then buy the replacement investment so your portfolio remains aligned with your target allocation.
Be precise with order timing and settlement dates. While the tax event is generally triggered by the sale date, your brokerage records and tax forms should still be checked later to make sure the loss is reported correctly.
Example: you sell 50 shares of an ETF at $80 per share that you originally bought at $100 per share. Your realized loss is $1,000. You then buy a similar ETF the same day to keep your market exposure, but make sure it is not substantially identical.
Step 6: Track the Tax Impact
After harvesting losses, record the trade details: purchase date, sale date, cost basis, sale proceeds, and replacement asset. Your broker will usually provide tax documents, but you should still keep your own notes.
At tax time, losses and gains are reported on Schedule D and Form 8949, so organized records make filing easier. If you harvest multiple positions, a simple spreadsheet can help you track which losses were used to offset which gains.
If you are trying to estimate how much tax relief a loss might create, a planning tool like the Savings Goal Calculator can help you think in terms of target amounts, even though the calculator itself is not a tax tool. It is useful for translating a tax savings estimate into a future savings target.
Step 7: Review the Strategy at Year-End
Tax-loss harvesting is often most powerful when you review your portfolio near year-end, but it can also be used throughout the year. A late-year review helps you see your full tax picture before December 31.
Check whether you have additional gains to offset, whether any positions have drifted lower, and whether you still have room to use losses against ordinary income. If markets have been volatile, there may be multiple opportunities to improve tax efficiency without changing your long-term allocation.
When Tax-Loss Harvesting Makes the Most Sense
Tax-loss harvesting is not equally valuable in every situation. It tends to be most useful when you have realized gains, expect to realize gains soon, or hold a taxable portfolio that has suffered a meaningful decline.
It can also be attractive if you are already rebalancing your portfolio. In that case, you may be able to reduce risk and improve tax efficiency at the same time. The strategy is less compelling when your losses are tiny, when you are in a very low tax bracket, or when most of your money is already in tax-advantaged accounts.
In general, think of it as a tool for improving after-tax results, not a reason to trade more often than necessary.
Tips for Success
Tax-loss harvesting works best when it is part of a broader investment plan, not a one-time trade made in a panic. The most successful investors treat it as a disciplined process, not a prediction about the market.
Think in after-tax terms
A pre-tax return is not the whole story. If two investments have similar expected performance, the one that creates less tax friction may leave you with more money after taxes.
Do not chase losses
Selling a losing investment only to buy a more speculative one can undo the benefit. Your replacement should keep your risk level and asset allocation close to your original plan.
Use losses strategically
If you have both gains and losses, prioritize using losses where the tax savings is greatest. Short-term gains often create a larger tax burden than long-term gains, so offsetting them can be especially valuable.
Another practical tip is to coordinate tax-loss harvesting with rebalancing. If your portfolio has drifted away from your target mix, harvesting a loss while rebalancing can solve two problems at once: tax efficiency and risk control.
If you want a quick way to estimate how compounding works after taxes and trading decisions, the Compound Interest Calculator can help you see why keeping more of your return matters over time.
Common Mistakes to Avoid
1. Ignoring the wash-sale rule. This is the biggest mistake. Buying back the same investment too soon can disallow the loss, which defeats the purpose of the trade.
2. Harvesting tiny losses without checking the tax benefit. Not every loss is worth realizing. Small losses may create more paperwork than value, especially if you have no gains to offset.
3. Forgetting about dividend reinvestment. Automatic reinvestment can accidentally trigger a wash sale if it buys the same security within the restricted window.
4. Selling without a replacement plan. If you stay out of the market for 30 days, you may miss gains while waiting to re-enter. A replacement asset helps you remain invested.
5. Using tax-loss harvesting in the wrong account. It usually does not help in tax-advantaged accounts like IRAs or 401(k)s because the tax treatment is different.
6. Treating tax savings as free money. Tax-loss harvesting can improve after-tax returns, but it does not create investment gains by itself. It simply reduces the tax drag on your portfolio.
Frequently Asked Questions
Is tax-loss harvesting worth it for small portfolios?
It can be, but the benefit depends on your gains, tax bracket, and account size. If your losses are small and you do not have taxable gains, the savings may be limited. Still, even modest accounts can benefit if the trades are done carefully.
Can I use tax-loss harvesting every year?
Yes, many investors review their portfolios annually or even several times a year. The key is to harvest losses only when the tax benefit is meaningful and when you can stay invested in a suitable replacement.
What happens if I have more losses than gains?
Excess losses can usually offset up to $3,000 of ordinary income per year, and any remaining amount can generally carry forward to future tax years. That makes unused losses potentially valuable later.
Does tax-loss harvesting work in retirement accounts?
Usually no. Tax-loss harvesting is mainly a taxable account strategy because retirement accounts already receive special tax treatment and do not report annual capital gains in the same way.
Should I do tax-loss harvesting on my own or with a professional?
Simple cases can often be handled by careful self-directed investors, especially if you understand the wash-sale rule and keep good records. If you have multiple accounts, frequent trading, or a large tax situation, a tax professional or financial advisor may be helpful.
Tax-loss harvesting is one of the most practical ways to lower your tax bill without changing your long-term investing goals. If you follow the steps carefully, avoid wash-sale mistakes, and keep good records, you can turn market declines into a useful planning tool instead of just a setback.
Plan Your Next Money Move
Estimate how your savings and investing choices can grow over time with a simple projection tool.
See the Long-Term Impact
Compare different investing outcomes and understand how small tax savings can compound.
Educational disclaimer
The information in this article is for educational purposes only and should not be considered financial advice. Always do your own research or consult a financial advisor before making investment decisions.
Last updated: July 28, 2026
Educational notice: This article is for educational purposes only and is not investment, tax, or legal advice. Read the full disclaimer.
