Finding tax alpha with Itoflow

Find more after-tax value for clients. Automate the research and monitoring that let your team manage more portfolios and strategies.

Summary

Itoflow helps asset and wealth managers find more after-tax value for clients and automate the work across portfolios. Its research agent can compare harvesting rules and replacement investments, weighing tax savings against costs and tracking risk. In our five-year backtest of a $10 million account, the strongest approach finished 7.34% ahead of no harvesting, with 4.85 percentage points attributable to lower modelled tax. A simple loss-threshold rule with an ETF replacement came close to the optimised approach while taking less tracking risk. Ongoing strategy agents extend the workflow beyond a one-off study, automating recurring research and monitoring so teams can cover more books.

What is tax-loss harvesting, and why can it help?

Tax-loss harvesting means selling an investment for less than its tax cost basis so that the realized loss can offset taxable gains. The investor can then buy a suitable replacement to stay invested. A tax lot is a particular purchase of an investment, with its own purchase date and cost basis. Two purchases of the same stock can have very different harvesting opportunities.

Let's take an example. You bought shares for $100,000 and they are now worth $95,000. You also have $10,000 of taxable gains from other investments. Selling the shares realizes a $5,000 loss, leaving $5,000 of net taxable gains. At an assumed 40% tax rate, your tax bill falls from $4,000 to $2,000.

Example: realizing a $5,000 loss offsets half of $10,000 in gains, reducing tax from $4,000 to $2,000 at an assumed 40% rate.
Example 1. A $5,000 usable loss reduces tax by $2,000 at a 40% rate. The sale does not recover the investment loss.

The $5,000 loss is not profit. The position has still lost money, and the $2,000 only has value if tax rules let the investor use the loss. Selling also changes the cost basis of whatever is bought next. If the replacement later rises and is sold, part of today's saving may be tax deferred rather than permanently eliminated. Deferral can still help: money that would have paid tax remains available to invest until the tax falls due. The economic question is whether the tax reduction survives the investment and trading effects created by the sale.

This benefit has a long research history. Constantinides (1983) studied the value of choosing when to realize losses and defer gains. That timing choice is central to tax-aware investing, even though tax rules have changed since his analysis.

What can erase the tax benefit?

Now suppose you leave the $95,000 proceeds in cash while the exposure you sold rises 5%. You miss a $4,750 gain before costs and tax, more than the $2,000 tax reduction. What you own after the sale matters as much as the loss you harvest.

A replacement, such as an exchange-traded fund (ETF), can preserve exposure during the wait but will not track it perfectly. Under US wash-sale rules, buying a substantially identical security within 30 days before or after the sale can prevent the investor from deducting the loss now. Waiting 31 days to buy back the stock does not resolve other purchases inside that window, including in related accounts.

Illustrative 31-day paths: index exposure rises 5%, an ETF replacement rises 4.4%, and cash stays flat. Their daily return differences create tracking risk, and re-entry does not erase the accumulated gap.
Example 2. Illustrative paths for the proceeds of a sale, not historical results or the whole portfolio. Cash earns no interest here. The ETF follows the index more closely in this example but still differs. The vertical gap shows cumulative return difference, not tracking error itself.

Fees, spreads and another round of trades reduce the benefit. Finite gains limit how much loss can be used now. A lower basis in the replacement can raise tax later. Cross-account transactions and prior purchases can alter wash-sale treatment. These effects are why the study measures after-tax wealth and risk instead of ranking approaches by the dollar amount of losses harvested.

These constraints matter in published backtests too. Chaudhuri, Burnham and Lo (2020) found that applying wash-sale restrictions reduced the tax alpha in their historical study. Their headline estimates were before transaction costs.

We use tracking error to measure how much a portfolio's returns differ from its reference over time. Lower tracking error means a closer match, not necessarily a smaller loss in a falling market. For harvesting, we want to know both how far the portfolio moves from the index and how much extra deviation the tax-driven trades introduce.

Which approaches can manage those trade-offs?

The choice of when and how much to harvest is an established research problem. Israelov and Lu (2022) examine loss thresholds and limiting the size of sales to balance harvested losses against tracking risk. Our 5% trigger and median-volatility scaling below are choices for this comparison, not thresholds prescribed by that paper or proven to be best for every portfolio.

We compared four ways to decide whether to sell and what to buy afterwards:

  • No harvesting. Maintain the index-tracking portfolio without selling just to realize a tax loss. This is the baseline.
  • Sell at a 5% loss. A tax lot becomes eligible for sale when its value is at least 5% below its adjusted tax cost basis. A lot with a $100 basis qualifies at $95 or less. Risk and trading limits can still prevent a sale.
  • Scale the loss trigger by volatility. Require a larger percentage loss for a stock that normally moves more, and a smaller loss for a quieter stock. Keep the trigger at 5% for a stock with median volatility, then test a higher multiplier too.
  • Optimise sales and replacements. Compare the tax benefit, costs and portfolio risk of selling different lots, then choose replacement investments.

The volatility-scaled rule sets each lot's loss threshold relative to its adjusted tax basis using:

θi=0.05k σimedianj(σj) ,k∈{1.0,1.5}

Here θi is the percentage loss that makes a lot eligible for sale. The symbol σi denotes the stock's volatility estimated at that decision date. We divide it by the median volatility across benchmark stocks. The multiplier k sets how demanding the rule is. At k=1, a lot in a median-volatility stock qualifies at a 5% loss. At k=1.5, it needs a 7.5% loss.

Both threshold rules considered the largest dollar losses first. They limited sales using a risk model that accounts for how the holdings move together. When market volatility rises, a given shift from stocks into cash can create more tracking risk, leaving less room to harvest. Cash therefore had no separate fixed limit. The amount sold depended on the resulting portfolio risk.

For each threshold rule, we tested holding sale proceeds in cash or in an exchange-traded fund (ETF), IJH, until the first eligible trading day on or after day 31. For optimisation, we tested two purchase menus: stocks only, and stocks plus IJH. The optimiser could keep the ETF rather than treating it as a temporary 31-day holding. We allowed ETF purchases without adding the fund to the benchmark's constituents. A tax adviser still needs to assess whether a proposed replacement is substantially identical.

How does the optimisation work?

Tax-aware optimisation also has an established foundation. Moehle, Kochenderfer, Boyd and Ang (2021) incorporate tax-lot decisions into portfolio optimisation alongside risk and transaction costs. Our implementation uses those same kinds of inputs, but a different procedure: choose sales first, then replacement purchases. It is not a reproduction of their algorithm.

The optimised replacement approach makes two decisions at each monthly review. First it selects sales, weighing the change in tax against trading costs and the risk of moving away from the no-harvest portfolio. Then, holding those sales fixed, it chooses replacement purchases to reduce that risk. In mathematical form, the first stage selects lot-sale dollars y, bounded by available lot values v:

y* = arg min0≤y≤v [ΔT(y)/NAV + a(y)TΣa(y) + c·u(y)]

The three terms measure tax, risk and cost:

  • Tax: ΔT is the change in modelled tax after wash-sale adjustments and the year's gains and losses are netted. Dividing by portfolio net asset value (NAV) puts it on a common scale.
  • Risk: a measures differences in portfolio weights from the no-harvest portfolio. The annual covariance matrix Σ describes how investments move together. The expression aTΣa measures forecast active variance. Its coefficient was 1 in this study.
  • Cost: u is one-way turnover, the larger of sales or purchases divided by NAV. The cost rate c is 0.001, or 0.10%.

Both stages respected risk, turnover, available holdings and wash-sale restrictions.

The second stage keeps those sales fixed and selects purchases b to reduce forecast active variance:

b* = arg minb≥0 a(y*,b)TΣa(y*,b)

It cannot buy a stock sold in stage one. The ETF version expands the investments it can buy. These are two sequential decisions, not a joint search over every possible sale and purchase. “Optimised” describes how this approach selects trades. It does not guarantee that it will beat the simpler rules.

How did we test these choices at portfolio scale?

The constructed account started with $10 million and tracked a point-in-time reconstruction of the S&P MidCap 400 from 14 September 2021 to 11 September 2026. Each approach began with the same holdings and tax lots, saw the same historical inputs at monthly reviews, and carried forward the cash, basis and wash-sale state created by its own trades. The comparison used same-close retrospective fills, a limitation discussed below.

Our study brings these established ideas into one matched comparison of nine portfolio approaches. The question is how the rules and replacement choices perform on the same account, not whether tax-loss harvesting is a new source of value.

A harvested loss only has current value to the extent that it can offset gains. The study counted gains from the test portfolio and assumed $100,000 of short-term gains and $50,000 of long-term gains elsewhere in the investor's portfolio in each calendar year. Unused losses carried forward. These assumptions are distinct from the 40% rate used in the toy example above.

The investor's ability to use losses is not a minor detail. Khang, Paradise and Dickson (2021) show how tax-loss-harvesting outcomes vary with the investor's tax profile. Sosner, Gromis and Krasner (2022) also examine how gains elsewhere, cash contributions, donations and investment horizon affect direct-indexing benefits. Our assumptions below define one case, not a universal tax-alpha rate.

Study assumption Value
Tax rates 40.8% short term and 23.8% long term
Gains elsewhere in the portfolio $100,000 short term and $50,000 long term per calendar year
Unused losses Available to offset gains in later years
Partial years The annual gains assumption also applies to 2021 and 2026. It is not reduced for the shorter periods.
Trading and decision limits 0.10% cost, 1% forecast active risk and 15% one-way turnover

How did after-tax wealth diverge?

We measure ongoing-hold after-tax value as portfolio net asset value (NAV), after transaction costs, less modelled tax on realized gains and losses. Unsold holdings stay invested. The study does not force a final sale or charge tax on unrealized gains at the end.

after-tax value = portfolio NAV after costs − modelled tax on realized gains and losses

All eight harvesting approaches finished ahead, but their advantage did not grow steadily. Optimised replacements with stocks plus ETF fell as much as $9,376 below the no-harvest portfolio near the start, reached a maximum advantage of $1.239 million in June 2026 and ended $1.083 million ahead. The fixed 5% threshold with ETF briefly reached a slightly larger maximum advantage of $1.243 million. Endpoint ranking hides that variation.

Daily after-tax wealth advantage versus the no-harvest control for three representative ETF-enabled policies across 1,254 observations.
Figure 1. Daily ongoing-hold value minus the no-harvest portfolio for three representative ETF-enabled approaches. Each line shows all 1,254 trading sessions.

What changed when policies used an ETF?

Within each threshold rule, the cash and ETF versions began with the same sale test, but later results could differ as replacement holdings, lots, trades and taxes evolved. This compares the complete strategies, including their later trades, rather than isolating the return earned by the ETF alone.

Against their cash counterparts, ETF variants ended $473,974 higher for the fixed 5% threshold, $77,736 higher for the 1× volatility-scaled threshold and $166,229 higher for the 1.5× version. Their realized tracking error against the no-harvest portfolio was lower by 33.4, 24.1 and 19.1 basis points respectively. One hundred basis points equal one percentage point. The optimised pair is different: the pair changes the optimizer's purchase menu from stocks only to stocks plus ETF rather than switching a 31-day reserve.

After-tax wealth advantage and realized tracking error versus the no-harvest portfolio for eight harvesting approaches.
Figure 2. Dashed lines pair variants within each rule. For the optimised approach, the pair changes the eligible purchase menu. The horizontal axis uses annualized basis points, where 100 basis points equal 1%.

Did optimisation beat the simpler rules?

Optimised replacements with stocks plus ETF ended at $15,839,757, but the fixed 5% threshold with ETF ended only $13,964 lower at $15,825,793. The fixed rule also had lower realized tracking error versus the no-harvest portfolio, 0.86% against 1.01%. The optimizer did not dominate the simpler rule on both wealth and tracking error.

Where did the endpoint advantage come from?

Optimised replacements with stocks plus ETF ended with portfolio NAV of $15,642,146 versus $15,274,556 for the no-harvest portfolio, a $367,590 after-cost investment difference. The no-harvest portfolio accumulated $518,055 of modelled tax. The optimised approach instead produced a $197,612 net tax saving after offsetting gains elsewhere in the portfolio. That is a $715,667 tax difference. Together, these account for the $1,083,257 after-tax wealth gap.

Relative to the no-harvest portfolio's ending after-tax value, the gap is 7.34%: 4.85 percentage points from lower modelled tax and 2.49 from investment differences after costs. These are cumulative contributions over the five-year study, not annual returns. The remaining holdings stay invested, with no tax charged on unrealized gains at the endpoint.

Optimised stocks plus ETF endpoint advantage split into 368 thousand dollars of after-cost investment difference and 716 thousand dollars of modeled tax difference.
Figure 3. Endpoint accounting versus the no-harvest portfolio. Costs are already inside NAV, so subtracting them again would double count them. The investment difference includes all the effects of changed holdings and trades, not just the ETF purchase.

The tax saving includes offsets against gains outside the test account, not a promised cash refund. We assumed $150,000 of those gains in each of six calendar years. Losses that could not offset those gains or realized portfolio gains carried forward.

Calendar-year modeled tax savings for optimised stocks plus ETF versus the no-harvest portfolio, positive in all six years.
Figure 4. Optimised stocks plus ETF recorded modeled tax savings in all six years. 2021 and 2026 are partial historical periods, though the constructed outside-gain allowance applies to each calendar year.

How should tracking error be read?

Forecast active risk was a decision-time constraint built from the full dated covariance matrix:

forecast active risk = √(aTΣa)

Realized tracking error came later from daily return gaps:

TE(P,R) = √252 × sd(rtP − rtR)

Here P is the tested portfolio, R its reference, and r each day's return. We take the standard deviation of their daily return differences and multiply by √252 to express it on an annual basis.

The no-harvest portfolio's total realized tracking error versus the reconstructed index was 1.19%. Harvesting introduced incremental tracking error versus that portfolio. Optimised stocks plus ETF reached 0.817% peak forecast risk and 1.006% realized tracking error. The fixed 5% threshold with ETF reached the 1.000% forecast limit, then realized 0.858%. Forecast and realized values answer different questions.

The no-harvest portfolio already differs from the index because of how it is built and traded. Harvesting adds another source of deviation. We report these separately, along with the total tracking error against the index. The percentages do not add up because the two sources can reinforce or offset each other.

Policy After-tax value Gap vs no harvest Peak forecast TE vs no harvest TE vs index Costs
No-harvest portfolio $14.757m — 1.00% 0.00% 1.19% $18,059
Fixed 5% threshold · cash $15.352m +$595,319 1.00% 1.19% 1.70% $45,078
Fixed 5% threshold · ETF $15.826m +$1,069,293 1.00% 0.86% 1.62% $61,506
Volatility-scaled threshold 1× · cash $15.477m +$720,297 1.00% 1.12% 1.66% $43,366
Volatility-scaled threshold 1× · ETF $15.555m +$798,033 1.00% 0.88% 1.55% $69,708
Volatility-scaled threshold 1.5× · cash $15.578m +$821,619 1.00% 1.14% 1.70% $41,084
Volatility-scaled threshold 1.5× · ETF $15.744m +$987,848 1.00% 0.95% 1.58% $66,025
Optimised replacements · stocks only $15.694m +$937,931 0.88% 0.95% 1.54% $31,159
Optimised replacements · stocks + ETF $15.840m +$1,083,257 0.82% 1.01% 1.56% $29,714

Table note. The no-harvest portfolio's peak forecast risk uses the reconstructed index as its reference. Every harvesting approach uses the matched no-harvest portfolio. Both tracking-error columns are realized and annualized from daily portfolio returns before personal-tax settlement. The percentages are not additive.

How does the work scale beyond one book?

A useful tax policy must fit the account, and the work does not end when the backtest finishes. Prices move, new lots arrive and replacement choices change. Repeating the research, checking the portfolio and recording each decision across many books can consume a team's day. Itoflow combines reusable portfolio calculations with strategy agents that research, monitor and revisit decisions over time.

  1. Compare the choices for the account. Use its holdings, tax lots and investment limits to test harvesting rules and replacement choices. The calculations used here track basis, wash-sale adjustments, unused losses, costs and risk, so each comparison measures what the client keeps rather than just how much loss a rule generates.
  2. Keep the strategy under review. Each Itoflow strategy has its own mandate and schedule. Agents revisit decisions as results come in and can respond to standing conditions such as a drawdown or a move in a holding. They record what they decided and why. The workflow is not limited to the monthly reviews used in this study.
  3. Apply the workflow across books. Run strategies in parallel with separate mandates and decision histories. Reuse the research and monitoring process while keeping each account's constraints distinct. Managers review the decisions, and live trades through a supported broker require human approval.

That is the operating benefit: more portfolios and strategy ideas under regular review, with less repeated work for the team. It also creates room to test more alternatives before committing to a trade. The study measures the value of the fixed rules, not the extra return from an agent changing them each day or the number of additional books a team can manage.

The same research tools support work beyond tax harvesting. Our work on factor risk models explains how we measure portfolio exposures. Our risk-model benchmark shows why forecasts need testing. Our research-agent study shows how assumptions and negative results remain visible.

Want to assess the opportunity in your own books? Book a portfolio-research demo to discuss your mandates, tax assumptions and the research and monitoring work your team wants to automate.

Where can this result fail?

The retrospective fills use the same close at which the decision is marked. That does not prove a live strategy could form the signal and execute at that price. One period cannot establish robustness across start dates, tax states, replacement lists or regimes.

Ongoing-hold accounting avoids inventing a final sale, but leaves future tax on unsold gains outside the endpoint. Some benefit may be deferral rather than permanent elimination. A terminal-liquidation scenario would answer a different question.

Two corporate-event treatments remain simplified. The Jefferies/Vitesse distribution sits in total return rather than a separate Vitesse tax lot. The Light & Wonder move to over-the-counter trading uses prepared price history rather than a separate security conversion. These choices can affect exact paths even though every approach uses the same history.

US wash-sale rules can apply when a substantially identical security is acquired within 30 days before or after a loss sale.[1] No blanket rule makes every ETF replacement safe. Capital-loss use and carryforwards depend on realized gains and applicable limits.[2] A tax adviser must review the account, related accounts and replacement security.

Sources and study data

  1. Internal Revenue Service, Publication 550, wash sales.
  2. Internal Revenue Service, Topic No. 409: Capital Gains and Losses.
  3. George M. Constantinides (1983), Optimal Stock Trading with Personal Taxes: Implications for Prices and the Abnormal January Returns. NBER Working Paper 1176.
  4. Shomesh E. Chaudhuri, Terence C. Burnham and Andrew W. Lo (2020), An Empirical Evaluation of Tax-Loss-Harvesting Alpha. Financial Analysts Journal.
  5. Roni Israelov and Jason Lu (2022), Optimized Tax Loss Harvesting: A Simple Algorithm and Framework. Working paper.
  6. Nicholas Moehle, Mykel J. Kochenderfer, Stephen Boyd and Andrew Ang (2021), Tax-Aware Portfolio Construction via Convex Optimization. Journal of Optimization Theory and Applications.
  7. Kevin Khang, Thomas Paradise and Joel Dickson (2021), Tax-Loss Harvesting: An Individual Investor's Perspective. Financial Analysts Journal.
  8. Nathan Sosner, Michael Gromis and Stanley Krasner (2022), The Tax Benefits of Direct Indexing: Not a One-Size-Fits-All Formula. The Journal of Beta Investment Strategies.
  9. Download aggregate daily results, annual tax savings and the risk/cost summary used by the figures.

The download contains the results behind the charts and table. It does not include the underlying security prices or the full trade-by-trade simulation.

Key takeaways
  • The $1.083 million optimised stocks-plus-ETF advantage was not tax-only alpha: $715,667 came from modeled tax difference and $367,590 from after-cost investment difference.
  • The fixed 5% threshold with ETF finished only $13,964 lower than optimised stocks plus ETF and had lower realized tracking error.
  • Each threshold rule finished with more wealth and lower tracking error when it used an ETF instead of cash. Those comparisons include the effects on later trades and taxes.
  • Itoflow combines account-specific portfolio research with ongoing strategy agents, so teams can reuse the analysis and automate recurring monitoring across books while retaining control of live trades.
  • The result comes from a backtest with unsold investments still held. It does not prove permanent tax elimination, live execution or adaptive-agent alpha.

Note. For research and informational purposes only. Not investment, legal or tax advice. Results come from a constructed historical research account, not performance for a client.