Retirement Accounts
Retirement accounts are tax-advantaged containers for your investments. The money inside them grows tax-free or tax-deferred, which means you keep more of your returns and compound faster than in a regular brokerage account. The US tax code offers several types, each with different rules, limits, and benefits. Understanding the order in which to fund them is one of the highest-leverage financial decisions you will make.
Most engineers leave thousands of dollars per year on the table by not maximizing these accounts. Employer matching alone is free money that roughly 25% of eligible employees do not fully capture.
The Account Types
401(k): Traditional vs Roth
Your employer's 401(k) is typically the largest tax-advantaged bucket available to you. The 2026 contribution limit is 7,500 in catch-up contributions.
Traditional 401(k):
- Contributions are pre-tax (reduces your taxable income today)
- Money grows tax-deferred
- You pay income tax when you withdraw in retirement
- Best if: your tax rate now is higher than it will be in retirement
Roth 401(k):
- Contributions are after-tax (no tax break today)
- Money grows tax-free
- Withdrawals in retirement are completely tax-free
- Best if: your tax rate now is lower than it will be in retirement
Example on $23,500 contribution at 32% marginal tax rate:
Traditional: $23,500 goes in, you save $7,520 in taxes today
In 30 years at 7%: ~$178,900. You owe tax on withdrawals.
If taxed at 24% in retirement: $178,900 - $42,936 = $135,964 after tax
Roth: $23,500 goes in, no tax savings today (it cost you $23,500 after-tax)
In 30 years at 7%: ~$178,900. All yours, tax-free.
After tax: $178,900
For most engineers in their 20s and 30s, the Roth 401(k) is the better choice. Your income — and likely your tax rate — will increase over your career. Paying taxes now at a lower rate and getting tax-free growth for decades is the mathematically stronger play.
If you are at peak earnings (say, a senior FAANG engineer in your 40s), Traditional may make more sense because your current tax rate is likely higher than your retirement tax rate.
IRA: Traditional vs Roth
An Individual Retirement Account (IRA) is a personal account you open yourself, separate from your employer. The 2026 contribution limit is 8,000 if 50+).
Traditional IRA:
- Contributions may be tax-deductible (depends on income and 401k coverage)
- Same tax-deferred growth as traditional 401k
- Income limits for deductibility: if covered by employer plan,
deduction phases out at $79,000-$89,000 (single) in 2026
Roth IRA:
- Contributions are after-tax
- Tax-free growth and tax-free withdrawals
- Income limits: phases out at $150,000-$165,000 (single) in 2026
- Can withdraw contributions (not gains) anytime, penalty-free
Most engineers earning over 165,000 cannot contribute directly to a Roth IRA. This is where the backdoor Roth comes in.
Backdoor Roth IRA
If your income exceeds the Roth IRA limits, you can still get money into a Roth IRA through a legal workaround:
Backdoor Roth IRA (step by step):
1. Contribute $7,000 to a Traditional IRA (non-deductible)
2. Convert the Traditional IRA to a Roth IRA
3. Pay tax on any gains between contribution and conversion
(convert quickly to minimize gains — ideally within days)
4. The money is now in a Roth IRA, growing tax-free forever
Important: this works cleanly only if you have NO other
Traditional IRA balances (the pro-rata rule). If you have
existing Traditional IRA money, the conversion is partially
taxable. Roll old Traditional IRA balances into your 401k
first to avoid this.
This is completely legal. The IRS explicitly allows it. Congress has discussed closing the loophole for years but has not done so.
HSA (Health Savings Account)
The HSA is technically a health account, but it is the most tax-advantaged investment vehicle available. It is the only account with triple tax benefits.
HSA tax advantages (the "triple tax benefit"):
1. Contributions are pre-tax (reduces taxable income)
2. Growth is tax-free
3. Withdrawals for medical expenses are tax-free
2026 contribution limits: $4,300 individual / $8,550 family
Requirement: you must be enrolled in a High Deductible Health Plan (HDHP)
The optimal HSA strategy is counterintuitive: do not use your HSA for current medical expenses. Pay medical bills out of pocket, keep the receipts, and let the HSA grow invested in index funds for decades. You can reimburse yourself from the HSA for those medical expenses at any time in the future — even 30 years later.
After age 65, HSA withdrawals for non-medical expenses are taxed as ordinary income (like a Traditional IRA), but there is no penalty. This makes it a strictly superior retirement account.
Mega Backdoor Roth
This is the advanced maneuver. Some employer 401(k) plans allow after-tax contributions beyond the 70,000 (including employer contributions) in 2026. These after-tax contributions can then be converted to Roth.
Mega Backdoor Roth:
Employee pre-tax/Roth 401k: $23,500
Employer match: varies (e.g., $9,000)
After-tax contributions: up to $70,000 total limit
Available for mega backdoor: $70,000 - $23,500 - $9,000 = $37,500
Convert that $37,500 to Roth (either in-plan Roth or rollover to Roth IRA)
Result: up to $37,500 additional Roth money per year
Not all 401(k) plans support this. Check if your plan allows after-tax contributions and in-plan Roth conversions (or in-service distributions to a Roth IRA). If it does, this is an enormous tax advantage. If it does not, lobby your benefits team — larger companies frequently add this feature when employees request it.
Employer Match
Your employer's 401(k) match is free money with an immediate 50-100% return. There is no investment on earth that guarantees this return.
Common match structures:
- 50% match on first 6% of salary
($150k salary: you contribute $9,000, employer adds $4,500)
- 100% match on first 3%, 50% on next 2%
($150k salary: you contribute $7,500, employer adds $6,000)
- Dollar-for-dollar up to 4%
($150k salary: you contribute $6,000, employer adds $6,000)
If you contribute less than the match threshold,
you are declining free money. Do not do this.
Some employers vest the match over 3-4 years. This means you only keep the match if you stay long enough. Even with vesting, contributing enough to get the full match is the right move. The expected value is strongly positive even accounting for the probability of leaving before full vesting.
The Order of Operations
This is the optimal sequence for funding your accounts. Follow it in order — each step should be completed before moving to the next.
Step 1: 401(k) up to employer match
Why: immediate 50-100% return (free money)
Cost: whatever your match threshold requires
Step 2: HSA (if eligible)
Why: triple tax advantage, no other account offers this
Cost: $4,300 individual / $8,550 family
Step 3: Roth IRA (or backdoor Roth if income too high)
Why: tax-free growth and tax-free withdrawals
Cost: $7,000
Step 4: Max 401(k) to $23,500
Why: large tax-advantaged space
Cost: remaining amount to reach $23,500
Step 5: Mega backdoor Roth (if your plan allows it)
Why: additional Roth space
Cost: up to ~$37,500 (varies by employer match)
Step 6: Taxable brokerage account
Why: no contribution limits, liquid, flexible
Cost: whatever you can afford after steps 1-5
Why This Order
The order maximizes tax advantage per dollar. The employer match gives you an immediate return that no other vehicle matches. The HSA's triple tax benefit makes it the most efficient account type. The Roth IRA provides tax-free growth in a flexible account (you can withdraw contributions anytime). Maxing the 401(k) captures the remaining tax-advantaged space. Only after all tax-advantaged space is full should you invest in a taxable account.
Real-World Example
A 29-year-old engineer earning $175,000 base salary with a 50% match on the first 6%. She has an HDHP and her 401(k) supports mega backdoor Roth.
Step 1: 401(k) match
Her contribution: 6% of $175,000 = $10,500
Employer match: $5,250
Subtotal saved: $15,750
Step 2: HSA
Contribution: $4,300 (invested in index funds, not spent)
Subtotal saved: $20,050
Step 3: Backdoor Roth IRA (income too high for direct Roth)
Contribution: $7,000
Subtotal saved: $27,050
Step 4: Max 401(k)
Additional contribution: $23,500 - $10,500 = $13,000
Subtotal saved: $40,050
Step 5: Mega backdoor Roth
Available space: $70,000 - $23,500 - $5,250 = $41,250
She contributes: $20,000 (does not have enough for the full amount)
Subtotal saved: $60,050
Step 6: Taxable brokerage
Remaining monthly savings: $500/month = $6,000/year
Total saved: $66,050
Total annual savings: $66,050 (37.7% of gross income)
Tax-advantaged savings: $60,050
She saves aggressively while still taking home enough for a comfortable lifestyle in a moderate cost-of-living city. The tax savings from pre-tax 401(k) and HSA contributions reduce her tax bill by roughly 10,000 per year.
Withdrawal Rules
Understanding when you can access money matters for planning:
Account Earliest Penalty-Free Access Penalty for Early Withdrawal
Traditional 401k Age 59.5 (or 55 if separated) 10% + income tax
Roth 401k Age 59.5 (contributions anytime) 10% on earnings
Traditional IRA Age 59.5 10% + income tax
Roth IRA Contributions: anytime 10% on earnings before 59.5
Earnings: age 59.5 + 5-year rule (contributions always penalty-free)
HSA Medical expenses: anytime 20% for non-medical before 65
Non-medical: age 65 (just income tax, no penalty)
Taxable Anytime Capital gains tax only
The Roth IRA's ability to withdraw contributions at any time with no penalty makes it a useful emergency backstop — though you should use your actual emergency fund first.
Common Pitfalls
- Not contributing enough to get the full employer match. This is the most expensive financial mistake engineers make. If your employer matches 50% on 6%, and you contribute only 3%, you are leaving thousands in free money on the table every year.
- Defaulting to Traditional when Roth is better. Many 401(k) plans default to Traditional contributions. For engineers early in their careers, Roth is usually the better choice. Actively select it.
- Ignoring the HSA. Engineers often choose a PPO health plan without considering the HDHP + HSA combination. For healthy individuals, the HDHP is often cheaper after accounting for the HSA tax savings.
- Leaving 401(k) money in a money market fund. Some plans default contributions to a money market or stable value fund. You need to actively select index funds within the plan. Check your allocations.
- Forgetting old 401(k) accounts at previous employers. Every job hop can leave an orphaned 401(k). Roll these into your current employer's plan or into an IRA. Consolidation reduces fees and simplifies management.
- Not doing the backdoor Roth because it "sounds complicated." It takes 15 minutes once per year. The tax-free growth over decades is worth hundreds of thousands of dollars.
- Withdrawing early from retirement accounts. The 10% penalty plus income tax on early 401(k) withdrawals makes this extraordinarily expensive. A 12,000 after penalties and taxes.
- Contributing to a Traditional IRA when you cannot deduct it. Non-deductible Traditional IRA contributions create tax complexity for no benefit. If you cannot deduct, do the backdoor Roth instead.
- Skipping the mega backdoor Roth when available. If your plan offers it, this is one of the most powerful wealth-building tools available. Do not leave it unused.
Key Takeaways
- The order of operations for funding accounts is: employer match, HSA, Roth IRA (or backdoor), max 401(k), mega backdoor Roth, then taxable brokerage. Follow this sequence to maximize tax advantages.
- Employer matching is free money with an immediate 50-100% return. Always contribute at least enough to get the full match. This is non-negotiable.
- Roth accounts (pay tax now, withdraw tax-free later) are usually better for engineers early in their careers. Traditional accounts are better at peak earnings.
- The HSA is the most tax-advantaged account available — triple tax benefit. Use it as a stealth retirement account by paying medical bills out of pocket and investing the HSA balance.
- The backdoor Roth IRA lets high-income engineers contribute to a Roth despite income limits. It takes 15 minutes per year and is worth doing every year.
- The mega backdoor Roth can add 40,000 of additional Roth space annually if your 401(k) plan supports it. Check with your benefits team.
- Roll over old 401(k) accounts when you change jobs. Consolidation reduces fees and prevents forgotten accounts.
- Every dollar in a tax-advantaged account compounds more efficiently than a dollar in a taxable account. Max your tax-advantaged space before investing in taxable.