The difference between tax-deferred and tax-free sounds simple but has enormous practical implications that took me a decade to fully internalize.
Tax-deferred (traditional 401k, traditional IRA): you avoid tax now, pay tax when you withdraw. The government is a silent partner who gets their cut at withdrawal time. The benefit is moving income from high-earning years (when your marginal rate is high) to lower-income retirement years.
Tax-free (Roth 401k, Roth IRA): you pay tax now, pay no tax ever on the growth. You're paying the government today's rate on a small amount in exchange for never owing them a percentage of the (hopefully much larger) future value.
The math depends on your current vs future tax rates, which you don't know with certainty. The most common guidance: Roth in early career when income and tax rates are lowest. Traditional when income peaks in mid-career. Roth conversion when income temporarily drops (career gap, early retirement years before Social Security).
Having both types of accounts gives you tax diversification — flexibility to draw from the most advantageous source depending on each year's tax situation.