A little knowledge. A better financial future.Independent finance journal

Explore

Investment Technologies

9 min read

Automated Tax-Loss Harvesting: How Wash Sales Can Cross Account Boundaries

An automated investing platform can sell shares at a loss while a different account buys the same investment. See how those trades can create a wash sale, why an IRA purchase changes the tax outcome, and what a platform’s safeguards can see.

Two gray trays sit on opposite sides of a workshop divider, with matching pressed leaves joined by a teal thread through a gap.

A robo-advisor sells shares at a loss in a taxable account. Two weeks later, a recurring investment buys the same shares in an IRA at a different institution. Each trade follows the instructions for its own account. Together, they can create a wash sale that disallows the loss, even if the robo-advisor’s dashboard still shows it as harvested.

Automated tax-loss harvesting depends on three kinds of coverage. The platform needs to see relevant trades, identify investments that could count as replacements, and either control incoming orders or flag purchases made elsewhere. Even a platform that handles all three within one account can have gaps across a household’s accounts. The tax outcome also depends on where the replacement shares land.

How automated tax-loss harvesting screens for wash sales

An ivory model railway wagon sits between two evenly spaced turnouts that connect side tracks to the same main line.

A harvesting program looks for holdings worth less than their adjusted cost basis. Basis generally starts with the purchase cost and can change after events such as a previous wash sale. The program may screen individual tax lots, which are groups of shares tracked together by acquisition and cost. Two lots of the same stock can have different bases, so a sale can realize a loss on one lot even when another lot has appreciated.

If a program sells a lot at a loss, it may buy another investment to maintain similar market exposure. An allowable capital loss can generally offset capital gains under federal tax rules, subject to how gains and losses are combined. The amount shown as harvested measures the loss that the sale generated. Its value on a tax return depends on the wash-sale rules and the rest of the taxpayer’s gains and losses.

The window includes purchases before the sale

A wash sale generally occurs when stock or securities are sold at a loss and substantially identical stock or securities are acquired within 30 calendar days before or after the sale. An acquisition on the sale date counts as well. Certain contracts or options to acquire substantially identical securities can also trigger the rule. For a hypothetical December 20 sale, the window runs from November 20 through January 19. A January purchase can therefore affect a loss from the prior calendar year.

Before selling, a program can look back for purchases in the accounts it monitors. After selling, it can restrict orders in accounts it controls or check incoming transaction records for a match. These functions address different parts of the same window. A post-sale trading restriction, for example, has no effect on shares that a spouse’s account acquired two weeks earlier.

The security match can require judgment

Shares of the same security are the clearest match. For different securities, whether they are substantially identical depends on the facts and circumstances. Separate tickers or fund providers alone do not settle the question. Two funds that track the same index warrant closer review because their investment mandates can be very similar. A fund that tracks a different index can introduce differences in holdings and performance, and its tax treatment still depends on the facts.

Software can compare security identifiers and apply a list of permitted replacements. Those checks help a program make consistent trading decisions. The federal tax analysis can extend beyond the particular matches programmed into the software.

Why the account that buys the replacement shares matters

Another taxable account held by the same investor can trigger a wash sale. A spouse’s purchase can also trigger the rule, including in a separately held taxable account. When an investor’s own traditional or Roth IRA acquires substantially identical shares within the window, the result is especially consequential. The loss is disallowed and the IRA receives no corresponding basis increase.

How the replacement account can affect a taxable loss sale
Where the purchase occursEffect on the matched lossEffect on basis
The investor’s taxable account at another institutionThe matched loss is disallowed at the time of sale.The disallowed amount generally increases the basis of the replacement shares.
A spouse’s separately held taxable accountThe spouse’s purchase can cause the matched loss to be disallowed at the time of sale.The taxable replacement shares generally receive the basis adjustment.
The investor’s own traditional or Roth IRAThe matched loss is disallowed.There is no corresponding increase in IRA basis.

In a taxable account, the basis adjustment can reduce a later gain or increase a later loss when the replacement shares are sold. The holding period of the original shares generally carries over to the matched replacement shares as well. If another wash sale occurs on that later sale, the loss can be deferred again. In the IRA scenario, the original taxable loss has no corresponding basis adjustment through which it can be recovered.

Hypothetical example with the same sale and two different accounts

Jordan’s managed taxable account sells 100 shares of a generic stock for $40 each. The shares have an adjusted basis of $50 each, producing a $1,000 loss before any wash-sale adjustment. Ten calendar days later, a scheduled order buys 40 shares of the same stock for $42 each. For this example, assume the shares sold came from a single lot and there are no other replacement purchases in the window.

Scenario A. The scheduled order executes in Jordan’s second taxable account. The 40 replacement shares match 40 of the sold shares, so $400 of the loss is disallowed and added to the basis of the replacement lot. That lot cost $1,680 and has an adjusted basis of $2,080. The wash-sale rule leaves the remaining $600 of the original loss available for consideration under the capital loss rules.

Scenario B. The same scheduled order executes in Jordan’s Roth IRA. Again, $400 is disallowed and $600 remains available for consideration under the capital loss rules. This time there is no corresponding IRA basis increase. The same quantity, timing, and security produce a different result solely because of the account that made the purchase.

Partial matches explain why a small recurring purchase matters. A reinvested dividend can buy a fraction of a share and affect the corresponding portion of a loss. With multiple sale lots or purchases, the order in which replacement shares are matched can affect the dollar adjustment, because the original lots may have different losses per share.

What single-account and cross-account safeguards can see

A single-account system can usually work from its own order history, executed trades, and lot records. If it controls purchases in that account, it can check for recent acquisitions before a sale and restrict certain orders afterward. That approach can handle a recurring buy within the account. A reinvestment election or scheduled contribution elsewhere can produce a purchase the system never sees.

A platform that manages several accounts can check a broader trade history and may be able to coordinate orders across those accounts. A platform with read-only access to outside accounts may be able to flag transactions once they appear in a feed. Its ability to catch a purchase depends on the information supplied and when that information arrives. A feed that shows only holdings can reveal a position without showing the acquisition dates or quantities of individual purchases. A transaction feed can show those details, but a delayed update can arrive after a harvesting order has already executed.

Three questions that make a safeguard easier to evaluate

  • Which accounts and activities does the system see? A platform’s coverage can be assessed across managed accounts, other taxable accounts, IRAs, and a spouse’s accounts. Within each account, transaction history matters for identifying prior purchases, while pending orders and reinvestment settings can reveal possible future purchases.
  • Which orders can it control? A system might restrict its own model trades while having limited control over manual orders, dividend reinvestments, or purchases at another institution. A warning delivered after a transaction appears in an outside feed serves a different purpose from a restriction that runs before an order executes.
  • How does it handle missing information? If an outside connection stops updating, one system might defer a potential harvest until records arrive. Another might continue using the last available data. The first approach can pass up a harvesting opportunity. The second can execute a sale while an unseen purchase remains possible.

Automatic contribution settings deserve particular attention when comparing coverage. A cash transfer by itself does not acquire a security. A standing instruction that invests the cash can create the relevant purchase. The same distinction applies to a dividend paid in cash and one reinvested in shares. A platform’s ability to see the cash movement says little about whether it can see or control the resulting order.

Why a dashboard and a tax form can show different losses

A dashboard may report the loss calculated when a sale executes, then update it if a replacement purchase appears during the following 30 days. Some outside purchases may never flow into that dashboard. A year-end trade creates an especially clear timing problem. The dashboard can show a December loss even though the forward part of the wash-sale window runs into January.

Broker reporting has a narrower scope than the federal wash-sale rule. Required wash-sale reporting on Form 1099-B generally covers transactions involving covered securities with the same security identifier, known as a CUSIP, when the sale and purchase occur in the same account. A covered security is one for which the broker generally has cost-basis reporting obligations. A blank wash-sale field can therefore coexist with a cross-account wash sale. Two brokers can each report the activity within their own systems while neither form captures the connection between the trades.

What a transaction record can show that a balance cannot

In Jordan’s hypothetical example, an account balance would show only the combined value of cash and investments. A position snapshot might reveal that the second account holds 40 shares, but it could leave open when they were acquired or whether the position changed after the loss sale. A trade confirmation or transaction history can establish the acquisition date and quantity. The sale record shows which lot was sold and the loss per share.

For a cross-account comparison, those details answer four separate questions. Was there a purchase inside the window? Which security did it involve? How many shares matched? What type of account acquired them? Keeping those questions separate explains why two accounts with identical holdings today can have different wash-sale outcomes. Their transactions can differ in timing, quantity, and original basis.

What a harvesting figure can tell you

A robo-advisor’s harvested-loss figure describes activity within the scope of its records and calculation. If a taxable replacement is visible, the system may be able to identify the affected shares and account for the deferred loss. If an outside IRA purchase is invisible to the system, the same dashboard figure can persist even though part of the loss is disallowed without a basis increase.

When comparing automated tax-loss harvesting features, the most informative details are the accounts the platform observes, the purchases it can restrict, and the records it provides when a taxable sale and a replacement purchase occur in different places. Those details explain how much of the federal wash-sale calculation the platform can support and where a household’s other transactions can change the result.

Financemonk publishes educational content. This article does not constitute financial, tax or legal advice.

By FinancemonkPublished

← More from the journal