Each rung earns its position for a reason, and the reasons are what tell you when to deviate. A typical employer match is an instant 50–100% return on the matched contribution — nothing else on the list competes, which is why capturing the full match is almost universally step one even for people carrying debt; skipping it is declining part of your compensation. High-interest debt comes next because paying off a card charging around 22% is a guaranteed, tax-free return no diversified portfolio can promise. The emergency fund follows (or partially precedes, as a small starter buffer) because without it any setback gets financed at card rates, undoing the rungs above it.
The middle of the waterfall is tax arbitrage. An HSA, for those with qualifying high-deductible coverage, ranks near the top of the tax-advantaged rungs because it is the only account with a potential triple tax benefit: deductible going in, growing untaxed, and untaxed coming out for qualified medical expenses. IRAs and workplace plans then defer or eliminate tax on decades of growth, and the traditional-versus-Roth choice inside those rungs is its own decision about current versus future tax rates. Annual contribution limits are set by the IRS and adjust over time, which is why the hierarchy speaks in order rather than dollar amounts. Taxable brokerage investing lands last: not because it is bad, but because it is the same investment with fewer benefits.
Two honest limits. First, the middle of the list is genuinely debatable: moderate-rate debt such as a car loan or some student loans versus extra investing is a judgment call involving rates, risk tolerance, and psychology, and frameworks differ on where insurance, college savings, and mortgage prepayment slot in. Second, and more fundamental, the framework optimizes purely for long-term return and tax efficiency. Real households also have medium-term goals (a down payment, a career break, education) that legitimately claim dollars before the bottom rungs are full, and the ladder has nowhere obvious to put them. Treat any published order, including this one, as a strong default; a financial plan is where you decide your exceptions.