Max Your 401k

RetirementDifficulty: ███░░

Contributing beyond employer match up to the $23,500 limit. Pre-tax vs Roth 401k. When maxing out beats other uses of the same dollars.

Interactive Visualization

t=0s

Many people stop at the employer match and leave decades of tax-advantaged growth on the table. Contributing beyond the match up to the $23,500 limit can change a $100,000 nest egg into roughly $200,000 or more over 20-30 years.

TL;DR: Maxing a 401k up to the $23,500 employee deferral limit can beat other uses of the same dollars when tax treatment, investment returns, time horizon, and liquidity needs align.

The Problem - What Goes Wrong When People Stop at the Match

Many workers view the employer match as the finish line. That leaves a repeatable tax-advantaged savings opportunity unused. Example: an employee earning 100,000getsa3100,000 gets a 3% employer match. Capturing the 3% means contributing 3,000 if salary is 100,000,andreceivinganextra100,000, and receiving an extra 3,000 from the employer. That is the "free money" covered in Employer 401k Match. If the employee stops there and invests an extra 10,000peryearintaxableaccountsinsteadoftheir401k,thelosttaxdeferralcanmatter.Assume5710,000 per year in taxable accounts instead of their 401k, the lost tax deferral can matter. Assume 5-7% real returns, 25 years horizon, and a 22% current federal marginal tax rate. Contributing 10,000 pre-tax into the 401k grows to 10,000 (1+0.06)^{25} = 10,000 (1.06)^{25} ≈ 42,900pretax.Ifwithdrawalsinretirementfacea1542,900 pre-tax. If withdrawals in retirement face a 15% combined tax, the after-tax value is 42,900 (1 - 0.15) ≈ 36,500.Putting36,500. Putting 10,000 after-tax into a taxable brokerage account instead will pay taxes on dividends and capital gains along the way and on eventual sale. With a 15% long-term capital gains rate and the same 6% gross return, the effective drag typically reduces long-run after-tax growth by roughly 0.5-1.0% per year versus tax-deferred growth. Over 25 years that drag can reduce the taxable account ending value by roughly 20-30% relative to the pre-tax 401k after tax outcome in many realistic cases. That is not always the case. If current tax rate is much lower than retirement rate, Roth-style savings can win. IF tax rates today are similar to tax rates expected in retirement AND investment returns are typical 5-7% real, THEN adding to the 401k up to the $23,500 employee limit may produce a larger after-tax nest egg than routing the same take-home dollars into a taxable account BECAUSE the growth compounds without annual tax leakage and withdrawals may be taxed at a lower effective rate later. Common behavioral costs also go wrong when people stop at the match. People fritter investable cash on durable goods or no-return activities. Locking money into tax-advantaged accounts forces discipline and harnesses compounding. This section assumes that the plan permits reasonable investment choices and charges fees in the 0.05% to 1.00% range; very high fees change the arithmetic significantly.

How It Actually Works - Mechanics, Formulas, and Rules

Understanding the math prevents mistaken trade-offs. The first rule is the contribution limit. For this lesson we use the 23,500employeedeferrallimit.Employermatchingcontributionstypicallydonotcountagainstthatemployeedeferrallimit;theycounttowardtheoverallemployerplusemployeecontributioncap,whichoftensitsintherange23,500 employee deferral limit. Employer matching contributions typically do not count against that employee deferral limit; they count toward the overall employer plus employee contribution cap, which often sits in the range 66,000 to 73,500dependingonyearandcatchuprules.Thesecondruleistaxtreatment.Pretax401kcontributionsreducetaxableincomenow,growtaxdeferred,andaretaxedatwithdrawal.Roth401kcontributionsaretaxednow,growtaxfree,andqualifiedwithdrawalsaretaxfree.Thesetwofactsconnectwithasingleformulaforequaldollarcomparisons.Use73,500 depending on year and catch-up rules. The second rule is tax treatment. **Pre-tax 401k** contributions reduce taxable income now, grow tax-deferred, and are taxed at withdrawal. **Roth 401k** contributions are taxed now, grow tax-free, and qualified withdrawals are tax-free. These two facts connect with a single formula for equal-dollar comparisons. Use Dforthegrosscontributionamounttheplanallowsforanemployeeinthepretaxcase.Ifgrowthrateis for the gross contribution amount the plan allows for an employee in the pre-tax case. If growth rate is gperyearfor per year for nyearsandtheretirementeffectivetaxrateis years and the retirement effective tax rate is t_{ret}whilecurrenttaxrateis while current tax rate is t_{now},then:Pretax401kaftertaxfuturevalue=, then: - Pre-tax 401k after-tax future value = D (1+g)^n (1 - t_{ret}).Roth401kaftertaxfuturevalue,forthesamenettakehomeimpact,requirescontributing. - Roth 401k after-tax future value, for the same net take-home impact, requires contributing D (1 - t_{now})today,soitsfuturevalue= today, so its future value = D (1 - t_{now}) (1+g)^n.Thegrowthterm. The growth term (1+g)^ncancelswhencomparingtaxrates,sothebreakevenconditionreducesto cancels when comparing tax rates, so the breakeven condition reduces to t_{now} = t_{ret}.IF. IF t_{now} < t_{ret}THENRothcontributionsmayproducehigheraftertaxwealthBECAUSEyoupaylesstaxnowandlettaxfreegrowthcompoundfor THEN Roth contributions may produce higher after-tax wealth BECAUSE you pay less tax now and let tax-free growth compound for nyears.IF years. IF t_{now} > t_{ret}THENpretaxcontributionsmayproducehigheraftertaxwealthBECAUSEyoudeferpayingthehighertaxrateuntilretirementwhenyourbracketmaybelower.Feeandinvestmentchoicematternumerically.Ifplanfeesexceedroughly0.50 THEN pre-tax contributions may produce higher after-tax wealth BECAUSE you defer paying the higher tax rate until retirement when your bracket may be lower. Fee and investment choice matter numerically. If plan fees exceed roughly 0.50% to 1.00% annual expense ratio compared to low-cost alternatives, the tax advantage can be offset. For example, a 1.00% higher fee on 23,500 invested for 30 years at 6% gross reduces the compound outcome by roughly 15-25% relative to a low-fee alternative. Liquidity and access matter too. 401k plans usually restrict distributions before age 59.5 unless rules apply; loans can sometimes be taken but may have risks when job changes occur. Finally, vesting schedules matter. IF an employer match is not fully vested for 2-3 years AND the employee plans to change jobs in that window, THEN capturing only the matched portion while channeling additional dollars elsewhere may be preferable BECAUSE the unvested portion could be forfeited on departure.

The Decision Framework - IF/THEN/BECAUSE Guide to When to Max

Start with essentials from prerequisites. In Employer 401k Match we covered capturing the match as the first priority. In Pre-Tax vs Post-Tax we covered comparing tax rates. Build the practical flow below. Step 1 - Emergency fund and high-rate debt. IF you have less than 3-6 months of essential expenses saved OR carry high-interest consumer debt greater than roughly 7-10% after-tax effective rate, THEN direct incremental dollars there before maxing the 401k BECAUSE eliminating guaranteed high-cost interest is typically a higher effective return than expected market returns. Step 2 - Capture full employer match. IF match exists, THEN contribute at least enough to capture 100% of the match every pay period BECAUSE that is typically a 50-100% immediate return on that portion of contributions. Step 3 - Compare marginal tax now versus expected retirement tax. IF tnow>trett_{now} > t_{ret} AND plan fees are reasonable (under 0.75% for comparable index funds) THEN favor pre-tax 401k contributions up to 23,500BECAUSEyoudeferhighertaxesuntilretirementwhenyourratemaybelower.IF23,500 BECAUSE you defer higher taxes until retirement when your rate may be lower. IF t_{now} < t_{ret}THENRoth401kcontributionsmaybepreferableBECAUSEyoulockinalowertaxratetodayandavoidhighertaxationlater.Step4Comparealternativeusesofmarginaldollarsaftermatchandemergencyfund.Considerthesenumbers:Iftaxablebrokerageyieldsanexpectedpretaxreturnof6 THEN Roth 401k contributions may be preferable BECAUSE you lock in a lower tax rate today and avoid higher taxation later. Step 4 - Compare alternative uses of marginal dollars after match and emergency fund. Consider these numbers: - If taxable brokerage yields an expected pre-tax return of 6% and long-term capital gains tax is 15%, the long-run drag may be 0.5-1.0% annually. - HSA contributions (if eligible) offer triple tax benefits and should be prioritized once emergency fund and match are satisfied, up to 3,850 individual or $7,750 family in 2024 where eligible. IF you have access to an HSA and expect medical expenses in retirement, THEN funding the HSA before maxing 401k can make sense BECAUSE it often provides a better tax profile than both Roth and pre-tax accounts. Step 5 - Account-specific constraints. IF your 401k plan has limited investment options and fees of 1.00% or higher AND you can access low-cost IRAs or taxable accounts, THEN evaluate a partial rather than full max BECAUSE high ongoing fees can negate tax advantages over 15-30 years. This flow handles the common cases. Edge cases appear next.

Edge Cases and Limitations - Where This Framework Breaks Down

This framework is useful broadly but fails in several important cases. Limitation 1 - Future tax law uncertainty. The model assumes stable tax brackets. IF lawmakers raise or lower tax brackets by 2-6 percentage points over a multi-decade horizon, THEN the pre-tax versus Roth calculus may flip BECAUSE the after-tax withdrawal rate trett_{ret} changes materially. Limitation 2 - Short horizons and liquidity needs. IF you plan to retire or need the money within 5-7 years, THEN maxing a 401k may be suboptimal BECAUSE early withdrawals face a 10% penalty plus ordinary income tax before age 59.5, and taxable or Roth accounts provide more flexible access. Limitation 3 - Poor plan choices and high fees. IF your 401k only offers funds with expense ratios of 0.75% to 1.50% and limited index options, THEN the tax advantage can be overwhelmed BECAUSE fee drag compounds over decades and can reduce returns by 15-40% over 20-30 years. Limitation 4 - Vesting and job mobility. IF a large employer match is subject to a 3- to 5-year vesting schedule and you plan to change employers in that period, THEN allocating beyond match may be less attractive BECAUSE you risk forfeiting the unvested portion and losing the effective return that assumes vesting. Limitation 5 - Non-income or alternative tax structures. This lesson does not account for state tax variability beyond examples. IF you live in a state with a 0% income tax versus a 5% state tax, THEN the Roth versus pre-tax decision shifts by roughly the state tax differential BECAUSE the combined effective tnowt_{now} versus trett_{ret} changes. Finally the model omits behavioral and employer-specific plan loan rules. Use this framework as a strong default, but check plan fees, investment choices, vesting, and personal liquidity needs before acting.

Worked Examples (3)

Example 1 - $10,000 Extra: 401k Pre-Tax vs Taxable Account Over 25 Years

Salary 100,000,employermatchcaptured.Extrainvestabledollars100,000, employer match captured. Extra investable dollars 10,000 per year for 25 years. Expected gross return 6% annually. Current marginal federal tax rate 22%. Long-term capital gains tax 15%. Retirement effective tax rate 15%. 401k plan fees negligible compared to taxable account.

  1. Step 1: Pre-tax 401k path. Contribute 10,000pretaxeachyear.Futurevalueafter25yearsusing10,000 pre-tax each year. Future value after 25 years using FV = P \frac{(1+g)^n - 1}{g}foranannuity.Here for an annuity. Here P=10,000$, $g=0.06$, $n=25.Compute. Compute (1.06)^{25} \approx 4.2919,so, so FV_{pre} = 10,000 \frac{4.2919 - 1}{0.06} \approx 10,000 \times 54.865 \approx $548,650 pre-tax.

  2. Step 2: After-tax 401k withdrawals. Apply retirement tax tret=15t_{ret}=15%. After-tax value = 548,650(10.15)=548,650 (1 - 0.15) = 466,352.

  3. Step 3: Taxable account path. Invest 10,000afterpayingincometaxnow.Afterpaying2210,000 after paying income tax now. After paying 22% now, annual after-tax contribution = 10,000 (1 - 0.22) = 7,800.Growat67,800. Grow at 6% for 25 years: FV_{taxable} = 7,800 \frac{(1.06)^{25} - 1}{0.06} \approx 7,800 \times 54.865 \approx $428,067.

  4. Step 4: Tax on gains at sale. Basis equals contributions 7,800×25=7,800 \times 25 = 195,000. Pretax gain = 428,067428,067 - 195,000 = 233,067.Capitalgainstaxat15233,067. Capital gains tax at 15% = 34,960. After-tax value = 428,067428,067 - 34,960 = $393,107.

  5. Step 5: Compare outcomes. After-tax 401k value ≈ 466,352.Taxableaccountaftertax466,352. Taxable account after-tax ≈ 393,107. Difference ≈ $73,245 in favor of the pre-tax 401k over 25 years, given these rates and assumptions.

Insight: With current tax rate 22% and expected retirement tax 15%, deferral into the 401k beats taxable investing by roughly 18-20% over 25 years in this scenario. IF retirement tax falls relative to current tax, the advantage grows BECAUSE the deferred tax rate is lower at withdrawal.

Example 2 - Pre-Tax vs Roth for a $23,500 Max Contribution Over 30 Years

Employee can contribute the $23,500 limit today. Current marginal tax rate 24%. Expected retirement effective tax rate 12%. Expected nominal return 6% per year for 30 years.

  1. Step 1: Pre-tax 401k scenario. Contribute 23,500pretax.Futurevaluepretax=23,500 pre-tax. Future value pre-tax = 23,500 (1.06)^{30}. Compute (1.06)305.7435(1.06)^{30} \approx 5.7435. So FV pre-tax ≈ 23,500×5.7435=23,500 \times 5.7435 = 135,044.

  2. Step 2: After-tax at withdrawal. Apply tret=12t_{ret}=12%. After-tax value = 135,044(10.12)=135,044 (1 - 0.12) = 118,840.

  3. Step 3: Roth 401k scenario for same net take-home effect. To match the same gross deferral 23,500,aRothcontributionrequirespaying2423,500, a Roth contribution requires paying 24% tax now. Net Roth contribution = 23,500 (1 - 0.24) = 17,860.Futurevalue=17,860. Future value = 17,860 (1.06)^{30} = 17,860×5.7435=17,860 \times 5.7435 = 102,560. Roth withdrawals are tax-free, so after-tax value = $102,560.

  4. Step 4: Compare. Pre-tax after-tax value 118,840vsRoth118,840 vs Roth 102,560. Difference ≈ $16,280 in favor of pre-tax contributions.

Insight: When current marginal tax rate 24% exceeds expected retirement rate 12%, pre-tax contributions produce a larger after-tax nest egg given 30 years at 6% growth. IF tax rates compress or reverse by retirement, the comparison would change BECAUSE the tax multiplier at withdrawal shifts the result.

Example 3 - High-Interest Debt vs Maxing 401k

Salary 80,000.Creditcardbalance80,000. Credit card balance 15,000 at 18% interest. Extra investable cash available 15,000.Employermatchcaptured.OptionA:use15,000. Employer match captured. Option A: use 15,000 to pay off the debt immediately. Option B: contribute $15,000 to 401k pre-tax and continue minimum payments on debt. Expected market return 6% for 10 years.

  1. Step 1: Cost of carrying debt. Paying minimums at 18% for 10 years on 15,000resultsintotalinterestfarlargerthantypicalmarketreturns.Effectivecostapproximatedbycompounding:15,000 results in total interest far larger than typical market returns. Effective cost approximated by compounding: 15,000 (1.18)^{10} ≈ 15,000×5.5599=15,000 \times 5.5599 = 83,398 owed in future-value terms if not paid, though real repayment schedules differ. The effective annual cost is 18%.

  2. Step 2: Opportunity of 401k investment. Invest 15,000at615,000 at 6% for 10 years: FV = 15,000 (1.06)^{10} ≈ 15,000×1.7908=15,000 \times 1.7908 = 26,862 pre-tax. After-tax at 15% retirement tax = $22,833.

  3. Step 3: Net comparison. Paying the debt avoids an 18% guaranteed cost, which dwarfs the expected 6% market return. Even after tax advantage, the net benefit of investing is unlikely to beat eliminating 18% interest. Roughly, paying the debt is equivalent to a guaranteed 18% return, versus expected 6% pre-tax compounded growth.

  4. Step 4: Decision implication. Using $15,000 to pay down 18% debt yields a superior guaranteed outcome for most reasonable investors.

Insight: High-interest debt above roughly 7-10% commonly dominates expected market returns. IF debt interest exceeds net expected after-tax investment returns, THEN prioritizing debt repayment often produces a higher guaranteed financial outcome BECAUSE the interest saved compounds as a risk-free return equal to the debt rate.

Key Takeaways

  • Capture the full employer match before any other allocation; that typically yields a 50-100% immediate return on the matched portion.

  • Compare current marginal tax rate to expected retirement rate: if current rate is higher by several percentage points, pre-tax 401k often wins; if lower, Roth often wins.

  • Maxing up to the $23,500 limit compounds advantage when investment returns are 5-7% and time horizon is 15-30 years, because tax deferral or tax-free growth multiplies over time.

  • Prioritize eliminating high-interest consumer debt above roughly 7-10% and maintaining a 3-6 months emergency fund before full 401k maximization.

  • Check plan specifics: if 401k fees exceed ~0.50%-1.00% annual or investment menus are poor, the tax advantage can be reduced or reversed.

  • Consider HSA and Roth IRAs as parallel priorities; HSA often offers the best tax profile for healthcare savings if eligible.

Common Mistakes

  • Treating the employer match as the end goal rather than the starting point. Why wrong: the match is the baseline free return. Stopping there ignores an additional $23,500 of employee deferral opportunity per year.

  • Comparing gross contribution amounts incorrectly between pre-tax and Roth. Why wrong: confusing 23,500pretaxwith23,500 pre-tax with 23,500 after-tax Roth contributions ignores current taxes and produces misleading comparisons. Use the formula comparing D(1tret)versusD (1 - t_{ret}) versus D (1 - t_{now}).

  • Ignoring plan fees and limited investment choices. Why wrong: high fees in the 0.75%-1.50% range can reduce long-run growth by 15%-40% over 20-30 years, which can outweigh tax benefits.

  • Prioritizing small taxable investing while carrying high-interest debt. Why wrong: paying down 8%-18% interest is effectively a guaranteed return that usually beats expected market returns of 5-7%.

Practice

easy

Easy: Salary 90,000,employermatchcaptured.Youhave90,000, employer match captured. You have 5,000 extra this year. Current marginal tax rate 22%. Expected retirement tax 15%. Expected nominal return 6% for 25 years. Compare after-tax outcomes of contributing 5,000pretaxtothe401kversusinvesting5,000 pre-tax to the 401k versus investing 5,000 after-tax in a taxable account (long-term capital gains 15%). Which yields higher after-tax value and by how much?

Hint: Compute annuity FV for one lump sum: FV = P (1+g)^n. For taxable, remember contribution is after paying 22% now. Apply capital gains tax on gains at the end.

Show solution

Pre-tax: FV_pre = 5,000 (1.06)^{25} ≈ 5,000 \times 4.2919 = 21,459pretax.Aftertaxat1521,459 pre-tax. After-tax at 15% = 18,240. Taxable: after-tax contribution = 5,000 (1 - 0.22) = 3,900.FVtaxable=3,900(1.06)253,900×4.2919=3,900. FV_taxable = 3,900 (1.06)^{25} ≈ 3,900 \times 4.2919 = 16,755. Basis = 3,900.Gain=3,900. Gain = 12,855. Capital gains tax = 0.15 \times 12,855 = 1,928.Aftertaxtaxable=16,7551,928=1,928. After-tax taxable = 16,755 - 1,928 = 14,827. Difference = 18,240 - 14,827 = $3,413 in favor of pre-tax 401k.

medium

Medium: You can contribute either 15,000toyour401kpretaxor15,000 to your 401k pre-tax or 15,000 to a Roth 401k. Current marginal tax rate 24%. Expected retirement tax 18%. Expected return 7% for 30 years. Which option likely produces a larger after-tax nest egg?

Hint: For equal gross contribution DD, compare D(1+g)n(1tret)D (1+g)^n (1 - t_{ret}) for pre-tax to D(1tnow)(1+g)nD (1 - t_{now}) (1+g)^n for Roth. The (1+g)n(1+g)^n term cancels when comparing tax rates.

Show solution

Breakeven reduces to comparing (1 - t_{ret}) vs (1 - t_{now}). Here 1 - t_{ret} = 0.82 and 1 - t_{now} = 0.76. Since 0.82 > 0.76, pre-tax yields more. Numerically: Pre-tax FV pre-tax = 15,000 (1.07)^{30} ≈ 15,000 \times 7.6123 = 114,185.Aftertax=114,185(10.18)=114,185. After-tax = 114,185 (1 - 0.18) = 93,640. Roth net contribution = 15,000 (1 - 0.24) = 11,400.RothFV=11,400(1.07)3011,400. Roth FV = 11,400 (1.07)^{30} ≈ 86,783. Difference ≈ $6,857 favoring pre-tax.

hard

Hard: Salary 200,000,inastatewith5200,000, in a state with 5% income tax. Current combined marginal tax rate 32% federal + state. Expected retirement combined tax rate 22% federal + state. Your 401k plan offers only target-date funds with expense ratio 1.10% and no index funds. You are eligible for an HSA and a backdoor Roth IRA. You have 23,500 available to allocate right now, plus $7,750 HSA contribution available. How would this framework guide the allocation if your horizon is 25 years and expected gross return 6%? Show the math comparing pre-tax 401k at 1.10% extra fee drag against Roth via backdoor IRA invested in a low-cost ETF at 0.05% expense, and HSA invested at 0.10% expense. Assume retirement tax 22% and Roth conversions later possible.

Hint: Compute after-fee growth by replacing g with g - fee. Treat the backdoor Roth IRA as Roth-equivalent for after-tax outcomes. Prioritize HSA if eligible because of triple tax benefit. Compare net after-tax outcomes for 25 years.

Show solution

Step 1: Prioritize HSA up to 7,750becauseitofferstaxdeductiblecontributions,taxfreegrowth,andtaxfreequalifiedwithdrawals.Invest7,750 because it offers tax-deductible contributions, tax-free growth, and tax-free qualified withdrawals. Invest 7,750 at net return 6% - 0.10% = 5.90%. FV_HSA = 7,750 (1.059)^{25} ≈ 7,750 \times 4.240 ≈ 32,860taxfree.Step2:Remainingfunds=23,5007,750=32,860 tax-free. Step 2: Remaining funds = 23,500 - 7,750 = 15,750. Option A: Put 15,750pretaxinto401kwithfeedrag1.1015,750 pre-tax into 401k with fee drag 1.10%. Net return = 6% - 1.10% = 4.90%. FV_pre = 15,750 (1.049)^{25} ≈ 15,750 \times 3.315 ≈ 52,200 pre-tax. After-tax at retirement rate 22% = 40,716.OptionB:DobackdoorRothIRAwithaftertaxdollars.Sincecurrentcombinedtaxis3240,716. Option B: Do backdoor Roth IRA with after-tax dollars. Since current combined tax is 32%, to get 15,750 of Roth contribution equivalently would require gross income converted pre-tax? Backdoor Roth typically uses post-tax dollars, so assume you use 15,750posttaxintoRoth.Netreturn=615,750 post-tax into Roth. Net return = 6% - 0.05% = 5.95%. FV_roth = 15,750 (1.0595)^{25} ≈ 15,750 \times 4.212 ≈ 66,370 tax-free. Step 3: Compare totals including HSA. With pre-tax 401k route total after-tax = 32,860 + 40,716 = 73,576.WithbackdoorRothroutetotaltaxfree=32,860+66,370=73,576. With backdoor Roth route total tax-free = 32,860 + 66,370 = 99,230. The Roth route produces materially higher after-tax wealth given the high 401k fee and the 10 percentage point tax gap. Decision implication: Favor HSA first, then backdoor Roth into low-fee vehicle, and avoid high-fee 401k contributions unless other constraints exist.

Connections

Prerequisites referenced: /money/employer-401k-match and /money/pre-tax-vs-post-tax. This lesson enables better decisions in downstream topics: Roth conversions and Roth ladders (/money/roth-conversion), tax-efficient withdrawal sequencing in retirement (/money/tax-efficient-withdrawals), and asset location strategies between taxable, tax-deferred, and tax-free accounts (/money/asset-location). Understanding maxing a 401k also unlocks optimization of HSA funding and backdoor Roth maneuvers because it clarifies marginal tax impacts and effective long-run growth trade-offs.