Tax-Loss Harvesting With AI

Last updated July 2026

Short answer

An AI assistant that can read your connected holdings can help with parts of tax-loss harvesting, but it does not do it for you. It can surface candidates (positions trading below their cost basis), flag wash-sale risk (recent buys of the same security inside the 30-day window), and explain the mechanics in plain language. It cannot give tax advice, cannot make the judgment on whether a replacement is “substantially identical,” and cannot execute or file for you. Walnut, an AI investing app, connects your brokerage read-only and shows you which holdings are underwater plus the context, but it does not auto-sell and does not give tax advice. You confirm with a tax professional and execute at your broker. This is general information, not tax advice.

Tax-loss harvesting is one of the more mechanical corners of investing, which makes people wonder whether AI can just handle it. The honest answer is that an AI assistant which can see your real holdings is genuinely useful for the finding-and-flagging part, and genuinely limited on the deciding-and-filing part. This guide covers what tax-loss harvesting is at a glance, where an AI assistant that reads your portfolio actually helps, the limits it should not cross, how that differs from automated robo harvesting, and exactly where Walnut sits. It is educational, not tax advice, and any harvest should be confirmed with a tax professional.

Tax-loss harvesting in one paragraph

Tax-loss harvesting means selling an investment that has fallen below its purchase price to realize a capital loss, which offsets your capital gains dollar for dollar and, up to a yearly limit (currently 3,000 dollars for most filers), offsets ordinary income, with any excess carried forward. You typically move the proceeds into a similar but not substantially identical fund so you stay invested. The main trap is the IRS wash-sale rule, which disallows the loss if you buy the same or a substantially identical security within 30 days before or after the sale. It only works in taxable accounts. For the full mechanics, see the tax-loss harvesting and wash-sale rule guides.

Where an AI assistant actually helps

The hard part of harvesting by hand is not the concept, it is the bookkeeping: knowing which of your positions are below cost right now, and remembering what you bought recently. An AI assistant that can read your connected holdings closes both gaps. It can compare each position's price to its cost basis and list the underwater ones, so the candidates surface in seconds instead of a spreadsheet.

It can also flag wash-sale risk by noticing that you bought the same security within the danger window, and it can explain, in plain words, how the loss would offset your gains and what the wash-sale rule requires. That combination, finding candidates, warning about collisions, and explaining the rules, is exactly what a good research assistant should do: put the relevant facts in front of you so a decision is easier. It is surfacing information, not issuing instructions.

The honest limits

Just as important is what an AI assistant cannot responsibly do. It is not a tax adviser, so it should not be treated as giving tax advice or a compliance guarantee. The wash-sale rule turns on whether a replacement fund is “substantially identical,” a phrase the IRS has never fully defined, which makes it a judgment call for a professional, not a rule an algorithm can settle cleanly.

An assistant also does not see your entire tax picture the way a professional preparing your return can, and it does not file anything. So the responsible flow is: let the AI surface candidates and risks, confirm the plan with a licensed tax professional, and then execute the trade yourself at your broker. AI shortens the finding step; it does not replace the deciding or the filing step. Treat everything it surfaces as context to verify, not tax advice.

AI assistant vs automated robo harvesting

It is worth separating two very different things that both get called “AI tax-loss harvesting.” An automated robo-advisor manages your money and executes harvesting on your behalf, selling and rebuying under its own rules, often daily, inside the accounts it controls. That is hands-off, but you hand over discretion and pay for the management, and the trades happen whether or not you were watching.

An AI assistant like Walnut is the opposite posture. It reads your holdings and shows you the candidates and the risks, but it does not manage your money, does not auto-sell, and does not give tax advice. You stay in control, you confirm with a professional, and any trade is one you place yourself at your broker. Neither approach is universally better; they trade control against convenience, and which fits depends on how hands-on you want to be.

What AI can and cannot do, at a glance

TaskWho does itHow it works
Surface candidatesAI can do thisReads your holdings and lists positions trading below their cost basis
Flag wash-sale riskAI can helpNotices recent buys of the same security within the 30-day window and warns you
Explain the mechanicsAI can do thisDescribes losses, offsets, and the wash-sale rule in plain language
Judge 'substantially identical'Human judgmentWhether a replacement fund is too similar is a judgment call for a tax professional
Decide and fileYou and a proA licensed tax professional confirms; you or they handle the return
Execute the tradeYou, at your brokerWalnut does not auto-sell; any trade is approved by you and placed at your broker

The line is consistent: AI is strong at the information tasks (surfacing underwater positions, flagging wash-sale collisions, explaining the mechanics) and out of its depth on the judgment and execution tasks (substantially identical calls, accounting for your full situation, filing, and placing the trade). Keeping that boundary is what makes an AI assistant genuinely useful without pretending to be a tax adviser. Verify anything it surfaces with a professional.

Where Walnut fits

Walnut is built to sit exactly on the helpful side of that line. You connect any major US broker read-only, then chat in plain words through Claude, ChatGPT, or its built-in AI. Ask which of your holdings are below cost and Walnut surfaces the underwater positions with context; ask about a harvest and it can flag whether a recent buy creates wash-sale risk and explain how the loss would offset gains. It shows you the picture across your accounts, the same way it lets you build baskets and track every position against the S&P 500. What it deliberately does not do is auto-sell, manage your money, or give tax advice: any trade is one you approve and your broker executes. Walnut is not a registered investment adviser or a tax adviser, and it does not tell you what to buy, sell, or harvest. For more on how these tools compare, see best AI portfolio analyzer and AI portfolio analysis tools.

Try Walnut on top of your broker

Walnut connects your brokerage read-only so you can ask which holdings are below cost and whether a harvest carries wash-sale risk, by chatting through Claude, ChatGPT, or its built-in AI. It does not auto-sell or give tax advice. Walnut is not an investment adviser or a tax adviser.

FAQ

Can AI do tax-loss harvesting for me?

An AI assistant can help with parts of it, but it does not do it for you. If it can read your connected holdings, it can surface which positions are trading below their cost basis, flag recent buys that create wash-sale risk, and explain the mechanics in plain language. What it cannot do is give tax advice, make the final judgment on whether a replacement is substantially identical, or execute and report the trade. You confirm with a tax professional and act at your broker. This is general information, not tax advice.

How does an AI assistant find tax-loss harvesting candidates?

If it can read your brokerage positions, an AI assistant compares each holding's current price to its cost basis and lists the ones that are underwater, meaning they are worth less than you paid. Those are the potential candidates for realizing a loss. It can also show how large each unrealized loss is and give context on the position. It is surfacing information, not recommending a sale, and any loss you realize should be confirmed with a tax professional first.

Can AI catch wash-sale problems?

It can help flag the risk, not guarantee compliance. The wash-sale rule disallows a loss if you buy the same or a substantially identical security within 30 days before or after the sale. An AI assistant that can see your recent trades can warn you when a harvest would collide with a recent or planned purchase. But whether two different funds are substantially identical is a judgment call the IRS has never fully defined, so a tax professional should confirm the plan. Not tax advice.

Is AI tax-loss harvesting the same as a robo-advisor doing it automatically?

No. Automated robo-advisors execute harvesting inside accounts they manage, selling and rebuying on your behalf under their own rules. An AI assistant like Walnut is different: it reads your holdings and shows you candidates and risks, but it does not auto-sell, does not manage your money, and does not give tax advice. You stay in control, confirm with a professional, and place any trade yourself at your broker. Each approach has trade-offs around control and cost.

Does Walnut give tax advice on harvesting?

No. Walnut is not a registered investment adviser or a tax adviser. It can connect to your broker read-only and show you, in plain words, which holdings are below cost and whether a recent purchase creates wash-sale risk, which is useful context. It does not tell you to sell, does not decide what counts as substantially identical, and does not file anything. Any decision to harvest a loss should be confirmed with a licensed tax professional.

Does Walnut sell my losing positions automatically?

No. Walnut never sells on its own. It reads your accounts by default and surfaces information. If you decide to place a trade through Walnut, it only sends the order to your broker after you approve it, and trade execution stays at your broker. Nothing is automated behind your back, and no position is harvested without you deciding to do it. This is how Walnut differs from an automated robo harvesting service.

What can an AI assistant not do for tax-loss harvesting?

It cannot give tax advice, cannot make the legal judgment on whether a replacement fund is substantially identical, cannot account for your full tax situation the way a professional can, and cannot file your return. It also should not be treated as a compliance guarantee on the wash-sale rule. It surfaces candidates and context; the decision, the professional review, and the execution remain with you and a licensed tax professional.

How do I use AI to help with tax-loss harvesting in Walnut?

Connect your brokerage to Walnut read-only, then ask its AI (through Claude, ChatGPT, or the built-in assistant) which of your holdings are below cost and whether any recent buys create wash-sale risk. It will surface the underwater positions and explain the mechanics. From there you confirm the plan with a tax professional and, if you choose, place the trade at your broker. Walnut shows context; it does not execute automatically or give tax advice.

From here, see the mechanics in tax-loss harvesting, the constraint that trips people up in the wash-sale rule, and how basis sets the loss in what is cost basis.

Walnut is informational and is not a registered investment adviser or tax adviser. This page explains how AI assistants can and cannot help with tax-loss harvesting; it is not a recommendation to buy, sell, or hold any security, and nothing here is tax advice. Walnut reads connected accounts and surfaces context; it does not execute trades automatically. Investing involves risk, including the possible loss of principal, and past performance does not indicate future results. Tax rules, rates, and thresholds change and depend on your individual circumstances; verify current details with the IRS or a licensed professional before making any decision. Do your own research or consult a licensed financial or tax professional.

Related articles

    Tax-Loss Harvesting With AI: What It Can and Cannot Do (2026), Walnut