Short answer: Tax-loss harvesting is selling an investment that is worth less than you paid for it, locking in the loss for tax purposes and reinvesting in something similar. The loss can offset capital gains and then up to $3,000 of other income a year. It does not erase the loss on your overall portfolio. It mostly changes when and how much tax you pay. The wash-sale rule is the main trap.
Disclosure: Online Deal Wizard, operated by AI Commerce Group LLC, may earn a commission when you sign up for or buy a product through links on this page. That does not cost you extra, and it does not change what we write or what we recommend. Prices, fees and features come from the providers' own pages on the date shown and change often, so confirm them before you sign up.
This article is for education only. It is not financial, investment, tax or legal advice. Talk to a licensed professional about your own situation.
The basic idea
Whenever you sell an investment in a taxable account, the IRS compares what you received with your adjusted basis, which is generally what you paid. If you sell for more, you have a capital gain. If you sell for less, you have a capital loss. The IRS says a gain or loss is long-term if you held the asset for more than one year and short-term if you held it a year or less. Net short-term gains are taxed as ordinary income, while a lower rate may apply to net long-term capital gains.
Harvesting uses the loss side of that equation on purpose:
- A holding drops below your cost.
- You sell it and realize the loss.
- You buy a similar, but not substantially identical, investment so your portfolio stays on track.
- At tax time, the loss offsets gains from other sales.
What the IRS lets you do with losses
According to the IRS's Topic 409:
- Capital losses first offset capital gains.
- If losses exceed gains, you can deduct the lesser of $3,000 ($1,500 if married filing separately) or your net loss against other income.
- Any unused loss carries forward to future years.
- Report sales on Form 8949 and summarize them on Schedule D.
A simple hypothetical
These numbers are invented for illustration. They are not a forecast.
- You bought a fund for $10,000 and it is now worth $8,500. You sell and realize a $1,500 loss.
- You also sold another investment earlier in the year for a $2,000 gain.
- The $1,500 loss offsets part of the $2,000 gain, so you are taxed on $500 of gain instead of $2,000.
- You reinvest the $8,500 in a similar fund so you stay invested.
The tax saved depends on your tax rate and on whether the gains were short-term or long-term. If you had no gains, the loss could offset up to $3,000 of other income, with the rest carried forward.
The catch: it is often a deferral
When you reinvest the $8,500 in a replacement fund, your cost basis in that new holding is $8,500, not $10,000. If it later recovers to $10,000 and you sell, you will have a $1,500 gain you would not have had otherwise. Harvesting can therefore shift tax to a later year rather than remove it. That can still be valuable. Paying later, or paying at a lower rate, or never selling at all, is worth something. But it is not free money. A tax professional can tell you how it plays out for you.
The wash-sale rule
The rule exists to stop people from claiming a loss while keeping the same investment. Investor.gov says a wash sale occurs when you sell or trade securities at a loss and, within 30 days before or after the sale, you buy substantially identical securities, acquire them in a fully taxable trade, or acquire a contract or option to buy them. The IRS does not allow the loss deduction for a wash sale. See IRS Publication 550 for the details.
Practical points:
- The window is 61 days in total: 30 days before the sale, the day of the sale and 30 days after.
- "Substantially identical" is a judgment call, so most people swap into a similar fund from a different index or provider rather than the same fund.
- Automatic reinvestment of dividends can create a purchase inside the window. Ask how any service you use handles that.
- Purchases in other accounts, including a spouse's account or an IRA, can be an issue. We did not verify the specific rules for those cases, so check Publication 550 or ask a tax professional.
Where robo-advisors come in
Both Betterment and Wealthfront advertise automated tax-loss harvesting for taxable accounts. Betterment's page says that when a holding drops below what you paid it can sell it to realize the loss and buy a similar investment, and that the loss can offset gains and up to $3,000 of regular income each year. It also notes that harvesting is not suitable for every investor. Wealthfront's page describes software that captures losses automatically, and its Form CRS describes direct indexing accounts, S&P 500 Direct and Nasdaq-100 Direct, that hold individual stocks to create more harvesting opportunities. Wealthfront says direct indexing is available for accounts over $100,000.
Both companies publish estimates that the tax savings can cover their fees. Those are marketing figures based on the companies' assumptions and past conditions, and we did not verify them. The SEC's bulletin on robo-advisers makes a more cautious point: the value of harvesting depends on your tax situation in a given year and it may implicate wash-sale rules, so understand the implications and consider consulting a tax adviser.
Who may benefit most
- People with a taxable investment account, not just retirement accounts.
- People with realized gains elsewhere to offset, such as from selling other investments or rebalancing.
- People in higher tax brackets, where each dollar of loss can offset more tax.
- People who invest regularly, since new purchases create more chances to harvest.
Who may not
- Savers who invest only inside an IRA or 401(k). Harvesting is a taxable-account tool.
- Investors with very small taxable balances and few gains.
- People who will not track their records. Good records of purchase dates and basis matter.
Tips for making it work
- Keep the plan simple. A harvest only helps if the replacement keeps your risk level about the same.
- Watch the calendar. A sale counts toward the tax year in which it happens, so a sale late in December can matter for that year's return. Ask your brokerage or tax professional exactly which date applies.
- Track your basis. Brokerages report this on Form 1099-B, and you can verify it when you file.
- Remember it is a tax tool, not an investment strategy. Never hold a poor investment only for the tax angle, and never sell a sound one only to harvest.
Note on figures we could not fully verify
- The hypothetical numbers above are invented for illustration.
- Company claims that tax savings can cover fees are not independently verified.
- We did not verify how wash-sale rules apply to purchases in other accounts, including IRAs and spousal accounts.
- The $3,000 and $1,500 limits come from IRS Topic 409. Confirm the amounts for the tax year you are filing.
Sources
- IRS, "Topic no. 409, Capital gains and losses," https://www.irs.gov/taxtopics/tc409
- Investor.gov, "Wash Sales," https://www.investor.gov/introduction-investing/investing-basics/glossary/wash-sales
- IRS, Publication 550, "Investment Income and Expenses," https://www.irs.gov/publications/p550
- SEC OIEA, "Investor Bulletin: Robo-Advisers," https://www.investor.gov/introduction-investing/general-resources/news-alerts/alerts-bulletins/investor-bulletins-45
- Betterment, "Automated Investing," https://www.betterment.com/investing (read 2026-12-05)
- Wealthfront, "Investing," https://www.wealthfront.com/investing (read 2026-12-05)
- Wealthfront, Form CRS (Oct. 15, 2026), https://www.wealthfront.com/static/documents/form_crs.pdf