Direct answer: At ages 40-49, the priority account order is: 401(k) or 403(b) up to the employer match, then HSA (if eligible), then 401(k) to the annual limit, then Roth IRA or Backdoor Roth IRA, then 529 (if college funding applies), then taxable brokerage. Nonqualified deferred compensation (NQDC) plans are available at some employers and can add tax-advantaged deferral, but carry employer insolvency risk and should be evaluated carefully.
Which Investment Accounts Matter Most at Ages 40-49?
Account Priority Map for Ages 40-49
| Account | 2026 Limit | Priority | Key Note |
|---|---|---|---|
| 401(k)/403(b) to match | Up to match % | 1st | Always capture the full employer match |
| HSA | $8,550 (family) | 2nd (if eligible) | Triple tax advantage, must have HDHP |
| 401(k)/403(b) to limit | $23,500 | 3rd | Tax-deferred growth |
| Roth IRA / Backdoor Roth | $7,000 | 4th | Income limits apply to direct contribution |
| 529 plan | No federal limit | 5th (if applicable) | State deduction may favor in-state plan |
| NQDC plan | Varies by plan | Conditional | Employer insolvency risk, illiquid |
| Taxable brokerage | No limit | Last | No tax advantage but full liquidity |
The HSA Triple Tax Advantage
A Health Savings Account (HSA) offers three tax benefits: contributions are pre-tax (reducing taxable income), growth is tax-free, and qualified medical withdrawals are tax-free. After age 65, HSA funds can be withdrawn for any purpose (taxed as ordinary income, like a traditional IRA), making the HSA function as a backup retirement account. The triple tax advantage makes HSA contributions arguably more valuable than any other retirement account dollar.
To contribute to an HSA, you must be enrolled in a High Deductible Health Plan (HDHP). Not all employer health plans qualify. Check the plan details before assuming HSA eligibility.
Nonqualified Deferred Compensation
Some employers offer NQDC plans that allow high-income employees to defer additional compensation beyond 401(k) limits. Unlike 401(k) accounts, NQDC balances are not held in a protected trust. They are a general obligation of the employer. If the employer becomes insolvent, NQDC balances may be lost or reduced. This is not a theoretical risk: it has happened to participants in high-profile corporate bankruptcies. Use NQDC plans cautiously if the employer's financial health is uncertain, and never concentrate more in NQDC than you can afford to lose.
529 Plan: In-State vs. Out-of-State
Many states offer a tax deduction or credit for 529 contributions made to the home state's plan. This benefit can be worth 3-10% of contributions depending on the state and the tax rate. Before selecting a 529 plan, compare the value of the home-state deduction against the expense ratio advantage of a lower-cost out-of-state plan. In some states, the in-state deduction is so valuable that it outweighs higher fund costs. In other states, the deduction is small or nonexistent, making a low-cost national plan the better choice.
Frequently Asked Questions
What is nonqualified deferred compensation?
Nonqualified deferred compensation (NQDC) is an arrangement between an employer and an employee to defer payment of part of the employee's salary or bonus to a future date. Unlike a 401(k), NQDC balances are not held in a protected trust and are subject to employer insolvency risk. They are taxed as ordinary income when received. They can be valuable for high earners who have maxed all qualified retirement accounts, but the employer credit risk must be weighed carefully.
How does the HSA triple tax advantage work?
The HSA provides three tax benefits: (1) contributions reduce taxable income in the year made, (2) investment growth within the account is not taxed, and (3) withdrawals used for qualified medical expenses are not taxed. After age 65, non-medical withdrawals are taxed as ordinary income (like a traditional IRA), but still avoid the 20% penalty that applies before 65. This makes the HSA the most tax-efficient account available when you have HDHP eligibility.
Should I use a 529 or pay college costs from a brokerage account?
A 529 is generally superior to a taxable brokerage for college savings if the funds will actually be used for qualified education expenses. The 529 provides tax-free growth and tax-free withdrawals for qualified costs, while a brokerage account generates taxable dividends and capital gains along the way. The risk with a 529 is using it for non-qualified expenses, which triggers income tax plus a 10% penalty on earnings. If you are confident the funds will be used for education, use the 529. If flexibility is a priority, a taxable brokerage or Roth IRA (using contributions, not earnings) can also serve as a college funding vehicle.