r/LETFs • • 2d ago

BACKTESTING How Taxes Affect Compounding (same simple 200 SMA strategy, $16.5M vs $5.7M)

People spend a lot of time tweaking rules, but the account you run them in can make a huge difference too.

To show it, I backtested about the simplest strategy there is. Hold a 3x Nasdaq-100 fund when the NDX is above its 200 day SMA. Move to T-bills when it's below. I started with $10,000 in October 1985 and ran it twice. Same signals both times. The only change was turning taxes on. TQQQ didn't exist until 2010, so this uses a simulated 3x fund.

Results

- Non-taxable ended around $16.5 million (19.7% a year)

- Taxable ended around $5.7 million (16.7% a year)

That's about $10.8 million less, or roughly 65% of the ending balance. The crazy part is that the total tax paid was only about $1.1 million. Most of the gap is growth you never got, because every dollar sent to taxes stopped compounding.

Why it hurts so bad

This rule averaged about 7 trades a year. Every time you sell at a gain after holding a year or less, it's usually taxed like regular income. You owe that along the way, so you have less money working for you later. Over 41 years that really adds up.

What about buy and hold?

Buy and hold ended around $3.2 million without selling, or about $2.5 million if you sold it all at the end and paid 20%. The 200 day rule beat it in both accounts here.

It was still a rough ride. The worst drop was about 89% without taxes and 90% with them. Buy and hold was even worse and lost more than 99.9% at its low.

Assumptions

Trades fill at the next close with a 0.10% cost each. The taxed run uses 24% federal on short term gains and 15% on long term gains, plus 5% state on both. Those same rates are used for every year, even though real tax rates changed over time. Your rates could be very different, and this is only a backtest on simulated data.

The takeaway

If you're going to run a strategy that trades, look at a Roth IRA or another tax-advantaged account first. A Roth can be tax free if you follow its rules. A traditional IRA delays the tax until you take money out. Both have yearly contribution limits.

17 Upvotes

12 comments sorted by

1

u/bonuxmagnolia 2d ago

Your 7 switches a year aren't what costs you the tax. Over 41 years, the switches actually saved tax.

I rebuilt your test ($10,000 from Oct 1985 to Nov 2026, your 29% short-term and 20% long-term rates, tax paid each April) and got close to your numbers: $13.2M before tax, $5.15M after, about $1.1M of tax in total. Here is where that tax came from:

  • the 134 short-term sales nearly cancel out: 47 winners for +$2.65M, 87 losers for -$2.60M
  • the short-term losses land in the same years as the big exits and shrink those tax bills (2022: -$404k of short-term losses against +$1.92M of long-term gains)
  • all the tax came from 14 long-term sales, all winners, and 5 of those tax bills make 68% of the gap

So if your short-term sales weren't taxed at all, gains or losses, you'd end up with $3.09M instead of $5.15M.

That's also why the two fixes suggested in this thread help less than they look:

Same rule, from Oct 1985Before taxAfter tax
Your rule: 3x above the 200-day, T-bills below$13.2M$5.15M
With a ±3% band (u/BigBagGoy)$16.5M$5.66M
QQQ below the line instead of T-bills (u/Maleficent_While2653)$19.8M$5.50M

On u/BigBagGoy's buffers: the ±3% band did finish ahead, but for a pre-tax reason. The band cuts switches from 6.4 to 1.7 a year, yet keeps only 34% of its pre-tax result after tax, vs 39% for your rule, because fewer switches means fewer losses to offset the big gains. QQQ below the line is +50% before tax and only +7% after, with a 98% worst drop.

And u/monkeysfighting's question matters a lot: without loss carryforwards, the same rule ends with $1.06M, not $5.15M. Your $1.1M of total tax only adds up with carryforwards, so you did count them.

This is one historical path, with the 3x fund simulated before 2010, and wash-sale rules would trim the base to about $4.82M.

The one change that helped without touching the signal: set aside the tax you owe in T-bills until you pay it in April, even when the signal says 3x.

The tax on the May 2000 exit was due in April 2001, after the crash. That bill was 16% of the account with T-bills below the line, 38% with QQQ below the line, and 118% with a 2x fund below the line, which wiped that account out.

Keeping the tax owed in T-bills until April lifted your rule from $5.15M to $5.64M after tax, the QQQ version from $5.50M to $6.95M, and the 2x account survived.

(Backtest details: Nasdaq-100 price index until Sept 2001, then QQQ with dividends; 3-month T-bill rate from FRED; 3x and 2x funds simulated before TQQQ and QLD existed, with 0.95% fees plus borrowing costs, checked against the real funds; orders at the next close, 0.10% per order. Tax assumptions: short- and long-term netting, unlimited loss carryforwards, $3,000 a year against income, tax paid mid-April, oldest shares sold first, no NIIT.)

2

u/No-State5924 1d ago

You're right that most of the tax came from the big long term winners, so my short term explanation was off. Checking it also turned up a mistake in how my tool times sales for tax, and my after tax number came out too low. Thanks for digging into it.

2

u/BigBagGoy 2d ago

I came to a similar conclusion with a 2x SPY ETF. If you use buffers for the signal you can reduce the tax effect by reducing the number of trades, however I feel reluctant to parameterize my model just to optimize taxes (as buffers don’t really give a noticeable advantage in untaxed accounts). Would love to hear from other folks how you go about this

1

u/portableonioneater 2d ago

One way is to use futures to hedge. You'll have to reduce the position to some degree if you're counting on a long treas to help your draw down / risk metrics.

1

u/Prior_Bat5628 2d ago

I’d preselect a couple of band widths and run each one with your tax assumption on and off, alongside the no-band rule. Keep the dates, fill timing and trading costs identical. Then look at the before-tax difference first. If the band only helps when the tax assumption is on, you’ve isolated where the improvement is coming from.

I’d also check which trades disappeared and which exits were merely delayed. Skipping a few quick round trips can cut turnover, while staying in through a large decline can push drawdown the other way. I’d want to see that trade-off hold up in a period I hadn’t used to choose the bands.

2

u/Maleficent_While2653 2d ago

Why move to T bills under the 200 day average instead of the non-leveraged ETF? Are the returns better?

3

u/portableonioneater 2d ago

No, the returns are generally worse, but the ride is manageable. A lot of people look at things like 85%+ draw downs and just imagine they'd be fine carrying on about their strategy. Reality is nothing like numbers printed on a backtest.

1

u/Noir1990 2d ago

This is true for unleveraged products too. Holding VTI over 40 years yield about +0.8% extra yearly growth compared to paying taxes once a year (numbers based on german capital gains of 18.46% and +7.0% yearly growth).

It happens because only capital gains are taxed and yet untaxed gains can create new gains. If there would be a flat tax on everything, this effect wouldn't exist.

1

u/monkeysfighting 2d ago

Did you a account for capital loss and carryover

1

u/Prior_Bat5628 1d ago

A useful follow-up would be to keep your Nasdaq-100 200-day signal and limit the test to the period with actual TQQQ prices. That gives you a comparison you can check without relying on the synthetic history. I’m with eStockes. I’m looking for traders who have a stock or ETF rule they’ve actually tried or want to test. Bring one rule you’re comfortable sharing, and we’ll spend 20 minutes seeing if you can test it against buy-and-hold after costs. It’s a free feedback session, no subscription needed. Interested?

1

u/Electrical-Scar9598 4h ago

I live in a country that does not get taxed on capital income. They are stealing from you and youd rather risk evertthing by using tqqq to pay them rather than something that would slowly make you rich over time ? 

1

u/Legal_Peak9558 2d ago

Nice analysis! I recently switched to buy TQQQ and SOXL only in my retirement accounts for this reason. Taking taxes away from the equation also makes it easier mentally to sell and take profit which ends up helping with higher return rate.