You have money left over at the end of the month and a dozen accounts you could feed with it. So which one gets the next dollar?
For most Bay Area tech professionals, the honest answer is whichever one their employer set up by default, plus a brokerage account that collects whatever is left. That is not a strategy, it is an accident. And at your income, the difference between a deliberate order and an accidental one compounds into a very large number over a career.
The good news is that there is a defensible priority order, and once you understand the logic behind it you can apply it to your own situation in an afternoon. The order is not about which account is best in the abstract. It is about getting the most after-tax growth per dollar, while keeping enough flexibility to fund the life you actually want before traditional retirement age.
This is the piece on that order. We will walk the sequence from the first dollar to the last, the employer match, the HSA, the pre-tax 401(k), the Mega Backdoor Roth, the taxable brokerage, and the 529, and explain the tradeoff at each step so you can adjust it to fit your own goals.
Start with free money and the triple tax break
The first dollar is the easiest call in all of personal finance. Contribute to your 401(k) at least up to the full employer match. A match is an immediate, guaranteed return on your money before it is even invested, and nothing else on this list comes close. Skipping it is the one mistake with no defense.
Right behind the match, if you are enrolled in a high-deductible health plan, comes the health savings account. The HSA is the only account that is triple tax-advantaged. Money goes in pre-tax, grows tax-free, and comes out tax-free for medical costs. For 2026 the limits are modest, around forty-four hundred dollars for self-only coverage and roughly eighty-seven hundred for a family, so this is not where the big money goes. But dollar for dollar it is the most tax-efficient account you have access to. If you can pay current medical bills out of pocket and let the HSA invest and grow, it quietly becomes one of the best retirement accounts you own.
Then fill your pre-tax 401(k)
Once the match and the HSA are handled, return to the 401(k) and fill the rest of your own contribution. For 2026 the employee deferral limit is around twenty-four thousand five hundred dollars, and for a high earner in the top brackets, every pre-tax dollar you put in is shielded from both federal and California tax at your marginal rate. In a high-tax state, that deduction is worth more to you than to almost anyone else in the country, a theme we covered in the piece on why the Bay Area high earner’s tax situation is different.
The pre-tax versus Roth question comes up here, and for most high earners in their peak years the pre-tax deduction wins, because you are likely in a higher bracket now than you will be when you draw the money down. That is not universal. If you expect your income to climb further, or you are early in your career, the Roth side of the 401(k) can make sense. The deferral limit is the same either way. What changes is whether you take the tax break now or later.
The Mega Backdoor Roth is the high earner’s edge
This is the step most people never reach, and it is the single biggest opportunity on the list. The total that can go into your 401(k) from all sources in 2026, your contributions plus the employer match plus after-tax contributions, is capped at around seventy-two thousand dollars. The gap between that ceiling and what you and your employer have already put in is space you can fill with after-tax contributions and then convert to Roth.
Done right, that can move tens of thousands of additional dollars a year into a Roth account that grows and is withdrawn entirely tax-free, which is exactly the strategy we detailed in the piece on sheltering an extra amount each year in a Roth. The catch is that your specific plan has to allow both after-tax contributions and either in-plan Roth conversions or in-service withdrawals. Not every plan does. Check yours, because if it offers this and you are not using it, you are leaving the most valuable space on this entire list empty. While you are at it, the backdoor Roth IRA is a smaller version of the same idea and worth doing alongside it.
The taxable brokerage is the flexibility layer
After the tax-advantaged accounts are full, the next dollar goes to a plain taxable brokerage account. People treat this as the consolation prize. For a tech professional, it is closer to the centerpiece.
Here is why. Every account above this one locks your money away until retirement age or ties it to a specific use. The taxable account has no contribution limit, no withdrawal age, and no penalty. It is the bridge that funds a sabbatical, a career change, or early independence years before you can touch a retirement account, which is the optionality we have written about as the real goal for tech employees. It is also where your vesting RSUs should land as you diversify out of concentrated stock. The trade is taxes along the way, but the freedom this account buys is the whole reason to build wealth in the first place.
529s come last, and on purpose
Education savings matters, but it comes near the end of the sequence for a deliberate reason. A 529 is the most restricted account on this list. The money is fully tax-advantaged only if it is used for education, and as we discussed in the look at the real cost of raising a family in the Bay Area, California gives high earners no meaningful state deduction for funding one. You contribute for the tax-free growth, nothing more.
That does not make it unimportant, it makes it specific. Fund it after the accounts that benefit you directly and flexibly, not before. The exception is timing. Because 529 growth compounds tax-free, money added when a child is young has the most years to work, so once your own retirement and flexibility buckets are on track, front-loading a 529 early is reasonable. Just keep the order intact. Your oxygen mask first, then the education fund.
The bottom line
The sequence is the strategy. Capture the match, max the HSA, fill the pre-tax 401(k), exploit the Mega Backdoor Roth if your plan allows it, build the taxable account that buys your freedom, and fund the 529 last. The exact order can flex with your goals, more weight on the taxable account if early independence is the priority, but the logic stays the same: most after-tax growth per dollar, with enough flexibility to live the life the money is for.