Mega backdoor Roth or brokerage account for house savings in 3-5 years?

Trying to figure out the best place to park money for a house down payment in roughly 3 to 5 years. My employer plan allows after-tax 401(k) contributions with in-service withdrawals, so the mega backdoor Roth is on the table. I already maxed my regular 401(k) deferral and Roth IRA. My question is whether the mega backdoor Roth actually makes sense for a 3-5 year horizon when I'll need the cash. I know contributions (not earnings) can come out tax and penalty free, but I keep reading that earnings are locked up unless I'm 59½. A regular brokerage account would mean paying capital gains on whatever I earn, but the money is fully accessible. Has anyone actually done this comparison? Is there a tax or flexibility angle I'm missing?

31 comments

I put my down payment savings in a brokerage after going back and forth on this same thing. The flexibility won out for me. With the mega backdoor Roth you're right that only the converted contributions come out penalty-free — earnings converted less than 5 years ago can get complicated fast. For a 3-5 year window that's real risk if closing day moves or the deal falls through.

Raj A.

Author

The 5-year clock on converted amounts is what trips me up. So even if I converted after-tax 401k money into the Roth IRA, the earnings on that money could be subject to penalty if I pull it out before 5 years on that specific conversion?

Each Roth conversion has its own 5-year clock for the 10% penalty on earnings, yes. Contributions (the basis you put in after-tax) are always first out and always penalty-free. Earnings are last out. On a short horizon the realistic exposure is small if the account is mostly basis, but it's not zero.

Worth noting too that if the account grows well over 3 years you could end up with a meaningful earnings layer. Not just a rounding error.

Raj A.

Author

That ordering rule is helpful. So in a best case scenario where my savings grow nicely, I'd actually have more trapped earnings. Kind of perverse incentive for a short term goal.

I was weighing exactly this last year before buying. I uploaded my Roth IRA statements and 401(k) plan docs to taxr.ai and it mapped out which layer of my Roth balance was contributions vs. converted amounts vs. earnings, and flagged the 5-year issue on two of my conversions. That breakdown made it obvious the brokerage was cleaner for the timeline I had. I still think the mega backdoor Roth is great for retirement savings — just not when you need liquidity on a fixed deadline.

Raj A.

Author

That layered breakdown sounds exactly like what I need. I have multiple conversions from different years so manually tracking which is which is a mess.

One angle people skip: in a brokerage you can harvest losses along the way if the market dips before your purchase date. That partially offsets the tax drag compared to Roth. The wash sale rules apply — if you sell at a loss and buy back substantially identical securities within 30 days before or after the sale the loss is disallowed — but you can swap into a similar-but-not-identical fund to stay invested. On a 3-5 year horizon there's usually at least one dip worth harvesting.

Loss harvesting on a short horizon fund makes me nervous though. If the market drops 20% right before you need the down payment, harvested losses don't help much with an actual portfolio decline.

Fair point. The harvesting helps at the margin on taxes, it doesn't protect the principal. Asset allocation for a short timeline should be conservative regardless of the account type.

The first-time homebuyer exception that lets you pull IRA money penalty-free — does that apply to Roth IRAs too? I thought there was something like that.

There is a first-time homebuyer exception under Publication 590-B but the dollar limit is small enough that it barely moves the needle on a modern down payment. Check the actual limit there rather than relying on what people quote online, it's lower than most expect.

Raj A.

Author

I'd looked at that too. The cap is low enough it doesn't really change the mega backdoor vs. brokerage decision for a full down payment.

I kept everything in a HYSA and short-term Treasuries for my house fund honestly. Zero tax optimization but also zero anxiety about the balance fluctuating. The capital gains tax on a brokerage earning 4-5% over 3 years wasn't going to make or break the down payment.

Raj A.

Author

This is probably the boring-but-right answer for part of it. I'll likely keep 6 months of the target in something stable and only think about brokerage or Roth for the longer-horizon portion.

For the brokerage side, holding assets more than 1 year gets you long-term capital gains rates instead of short-term. The IRS counts from the day after your purchase through the trade date you sell. On a 3-year horizon you should be able to clear that threshold on most positions if you're not trading in and out.

I ran this question by Taxr after getting confused reading the Form 8606 instructions on Roth basis tracking. It read through my prior 8606s and showed me the running nondeductible contribution total I should have been carrying forward — I'd actually been understating my basis slightly. Fixing that before I start pulling money out for a house matters a lot for figuring out what's actually taxable. The mega backdoor piece itself is tracked separately but having clean 8606 records first made the whole comparison make more sense.

Raj A.

Author

Form 8606 basis tracking is something I definitely haven't been meticulous about. Good reminder to audit those before making any moves.

8606 errors compound quietly for years. Understated basis means you overpay tax on distributions eventually. Worth reconstructing from your records before the account gets larger.

Something to check with your plan: not all after-tax 401(k) plans allow in-service distributions. Some only allow the rollout at separation. If your plan restricts timing you might not be able to convert the after-tax money into the Roth IRA on the schedule you want, which removes the mega backdoor option entirely for this goal.

Raj A.

Author

Mine allows in-service at any time above a certain account balance, confirmed in the SPD. That was the first thing I checked before even considering this.

I bought two years ago and used a brokerage for the bulk of the savings. Paid short-term capital gains on some of it because the timeline got pushed up and I hadn't held long enough. It stung a little but was still better than having the money completely inaccessible. Flexibility really is the main thing with a purchase date that can shift.

Are there state tax considerations here too? Some states tax Roth distributions differently or have their own treatment of capital gains. Worth checking your state's rules separately from federal.

Good call. A few states don't fully conform to federal Roth rules or have their own capital gains rates. State rules vary enough that the federal analysis is only part of the picture.

The cost basis tracking in a brokerage matters too. When you sell, the 1099-B your broker sends will show your proceeds and may or may not show your basis depending on whether the shares are covered securities. Form 8949 is where you reconcile it — Part I for short-term, Part II for long-term. If your broker reports basis to the IRS you check box A or D; if not, box B or E. Getting that right matters if you're selling a mix of lots.

Raj A.

Author

Covered vs. uncovered shares — good to know. I'll probably be buying index funds so the lots should mostly be covered securities with basis reported.

I'd lean brokerage for a fixed 3-5 year goal. The mega backdoor Roth is excellent but it shines when you have decades for the earnings to compound tax-free. Locking up growth in an account you might need to tap partially defeats the purpose and adds complexity right before a major purchase.

One scenario where mega backdoor still makes sense even on this timeline: if you're highly confident you won't need to touch the earnings, you could use it as a parallel track — brokerage for the certain part of the down payment, Roth for extra savings that could become retirement money if the house purchase doesn't happen on schedule.

Raj A.

Author

This parallel track framing is actually how I'm starting to think about it. Keep the definite down payment amount in brokerage or HYSA, use Roth for stretch savings that have a backup purpose.

That's the split I'd go with. Roth contributions layer stays accessible, earnings stay quarantined for retirement. Keeps the optionality without betting the down payment on the tax structure.

My situation ended up being simpler: my employer plan didn't allow after-tax contributions at all so brokerage was the only real option outside the Roth IRA limit. Sometimes the plan just decides for you. But reading through this thread helped me understand why the rollout step matters so much in plans that do allow it.