Retirement Contribution Optimizer

Execute the mathematical personal finance waterfall. Discover the exact order to deploy your monthly savings surplus across employer match, HSA, Roth IRA, 401(k), and brokerage accounts for maximum net wealth.

Tax Code:
Quick Career Presets

Cash Flow & Income

Unallocated cash left over after essential living expenses.

Employer 401(k) Match

e.g., matches up to 5%
100% or 50% match
Employer Matching Funds:+$4,750/year

Health Savings Account (HSA)

Safety Net & Debt

Credit cards >7% APR
50+ unlocks catch-up caps

Your Personalized Investment Waterfall

Allocating $1,800/month ($21,600/year)

2026 Legal Limits
1

Employer 401(k) Match

Immediate Employer Addition + Pre-Tax
$396/mo
$4,750/yr of $4,750 cap

Contribute 5% of salary to unlock $4,750/yr of direct employer matching contributions, subject to plan vesting.

2

Health Savings Account (HSA)

Triple Tax-Advantaged (Holy Grail)
$358/mo
$4,300/yr of $4,300 cap

Pre-tax contribution, tax-free compound growth, and 100% tax-free withdrawals for healthcare expenses.

3

Roth IRA (or Backdoor Roth)

100% Tax-Free Withdrawals in Retirement
$583/mo
$7,000/yr of $7,000 cap

Invest with maximum fund choice and zero capital gains or income tax upon withdrawal after age 59½.

4

Max Out Remaining 401(k)

Tax Deductible / Salary Sacrifice
$463/mo
$5,550/yr of $18,750 cap

Maximize your elective employee deferrals up to the legal statutory limit of $23,500/yr.

5

Taxable Brokerage / Mega Backdoor

Unrestricted Liquidity & Capital Gains Rates
$0/mo
$0/yr of $21,600 cap

Any remaining surplus builds long-term wealth with no early withdrawal penalties or contribution ceilings.

Projected Wealth Trajectory (7% Real Market Compound)

10 Years
$364,063
+$47,500 match
20 Years
$1,080,231
Compounding Accelerates
30 Years
$2,489,042
Retirement Freedom

Projections assume annual contributions of $21,600 plus $4,750 in employer matching funds compounding at a conservative 7% annual real (inflation-adjusted) equity return.

Author:Bharat Kumar(Founder & Lead Developer)
Privacy note:Calculations run locally in your browser. Your entered financial figures are not sent to our calculator server.

What is a Retirement Contribution Optimizer?

A retirement contribution optimizer applies the mathematical 'Financial Order of Operations' (FOO) to your personal cash flow. Instead of guessing whether to fund a Roth IRA, pay down a mortgage, or contribute to a 401(k), the optimizer prioritizes every dollar based on immediate return on investment (ROI), tax shields, and risk management.

Who Should Use This Tool?

Working professionals with unallocated paycheck surplus, tech employees managing company matches, and anyone seeking to maximize compound interest while minimizing federal, state, or capital gains tax drag. Pair this with our 401(k) match calculator and HSA growth calculator.

Examples

Early Career Starter ($65k Salary, $600/mo Savings)

Example Input

Salary: $65,000, Monthly Surplus: $600. 4% employer match dollar-for-dollar. HSA eligible (single). Target 6-mo emergency fund (has 3 mos).

Sample Output

Waterfall prioritizes: 1) $216.67/mo to 401(k) to capture $2,600/yr in free employer match; 2) $358.33/mo to HSA to capture pre-tax deduction and triple tax advantage; 3) Remaining $25/mo to emergency buffer. Over 30 years at 7% real return, this disciplined priority generates $742,000 in wealth.

Mid-Career Maximizer ($135k Salary, $2,600/mo Savings)

Example Input

Salary: $135,000, Monthly Surplus: $2,600. 6% employer match. Family HSA. Full 6-month emergency buffer in place. No high-rate debt.

Sample Output

Waterfall allocates: 1) $675.00/mo to 401(k) for $8,100 match; 2) $712.50/mo to family HSA ($8,550 annual cap); 3) $583.33/mo to Roth IRA ($7,000 annual cap); 4) Remaining $629.17/mo toward maxing out 401(k) elective deferrals. Unlocks $8,100 in free employer money and shields over $31,000 annually from taxation.

UK Professional (£65k Salary, £1,200/mo Savings)

Example Input

Salary: £65,000, Monthly Surplus: £1,200. 5% workplace pension match. 6 months emergency savings. Age 30.

Sample Output

Waterfall allocates: 1) £270.83/mo to workplace pension to unlock £3,250 annual employer match; 2) £929.17/mo (£11,150/year) into a Stocks & Shares ISA for 100% tax-free capital growth and dividend compounding. Zero capital gains tax for life.

Strategic Financial Allocation Scenarios

Determine how much to contribute to your 401(k) before diverting funds to an HSA or backdoor Roth IRA. Calculate whether excess cash flow should be used to eliminate consumer debt or invested in an employer retirement vehicle. For UK savers, optimize between workplace auto-enrolment pensions and Stocks & Shares ISAs.

The Mathematical Hierarchy of Money

The optimal wealth-building hierarchy follows rigorous mathematical efficiency: 1) Essential Emergency Buffer; 2) Employer Match (immediate 50% to 100% employer addition); 3) High-Interest Toxic Debt (>7% APR); 4) Health Savings Account (triple tax-advantaged); 5) Roth IRA / Stocks & Shares ISA (flexible tax-free growth); 6) Maxing Out 401(k) to the statutory limit ($23,500 in 2026); 7) Taxable Brokerage or Mega Backdoor Roth.

Common Wealth-Building Traps

The costliest mistake is investing in a standard taxable brokerage account before capturing your full employer 401(k) match, effectively throwing away thousands of dollars in earned employer compensation. Another frequent error is neglecting the HSA, which is the only account offering a deduction going in, tax-free compounding, and tax-free withdrawals for healthcare.

FAQ

Why does the employer match always come first in the waterfall?

An employer match provides an immediate contractual return of 50% to 100% through employer contributions. No standard investment asset can consistently compete with dollar-for-dollar employer matching funds.

Why is an HSA prioritized before a Roth IRA?

The HSA is triple tax-advantaged: contributions are pre-tax (reducing your income tax and FICA taxes when funded through payroll), interest and investments grow tax-free, and withdrawals for qualified medical expenses are completely tax-free at any age. After age 65, non-medical withdrawals are taxed just like a traditional IRA.

What are the 401(k) and IRA contribution limits for 2026?

For 2026, the standard employee elective deferral limit for 401(k), 403(b), and most 457 plans is $23,500 ($31,000 for workers aged 50+). The IRA contribution limit is $7,000 ($8,000 for workers aged 50+). The individual HSA limit is $4,300, and the family HSA limit is $8,550.

What should I do after maxing out both my 401(k) and IRA?

Once you have maxed out tax-advantaged space ($23,500 401k + $7,000 IRA + $4,300/$8,550 HSA), options include the Mega Backdoor Roth (if your 401k plan allows after-tax contributions and in-service distributions) or a taxable brokerage account invested in low-cost, tax-efficient index funds.

Why Use PenGenie's Contribution Optimizer?

Our optimizer updates automatically for 2026 IRS and HMRC statutory limits. All calculations process client-side in your browser with zero data logging, account creation, or financial advisor sales pitches.

Workflow Sequence

Recommended Next Step Workflow

Follow this 3-step planning sequence to compare the current calculator with the next useful financial or career check.

Related Calculators

People Also Calculate

Pair this calculator with related tools to compare salary, tax, savings, and career outcomes.

All Tools →
Financial Planning Guide
Pillar Documentation12 min read • 2,061 words

How to Calculate Your Net Worth (And Why It Matters More Than Salary in 2026)

Discover why net worth is the ultimate measure of total financial health. Learn how to track liquid vs. illiquid assets, assess liabilities, and cross major wealth milestones.

Read Pillar Guide →
Complete Toolkit Collections

Upgrade Your Financial & Career Planning Workflow

Explore our dedicated calculators to systematically plan your career, estimate taxes, and manage your financial growth.