The answer, before the arithmetic
No employer withholds for you, matches you, or enrolls you in anything. What replaces all of that is a three-layer stack you build and fund yourself, and the funding order — not the vehicle names — is the decision. Fund the HSA first if an HDHP makes it available, then the Solo 401(k) employee deferral with its flavor chosen at this year's bracket, then the employer profit share; whatever remains goes to a taxable account. The retirement layer caps how much you can shelter at all ($70,000 of plan dollars in 2025); the tax-structure layer decides whether those dollars are taxed on the way in or the way out; the medical layer is the smallest bucket in the stack and — spent on qualified care — the only one the tax code taxes zero times: not on the way in, not inside, not on the way out.
The whole guide runs on one worked owner — $120,000 of Schedule C net profit, sole proprietor, age 45, single filer, 24% marginal bracket, tax year 2025 — with every number computed by the same engines that power the Solo 401(k) Calculator, the Roth vs Traditional Calculator, and the HSA Advantage Calculator. Your numbers differ; the shape of the decisions does not.
The stack, in funding order
- HSA — the annual expiring room. Deductible going in, never taxed inside, never taxed out for qualified care ($4,300 self-only / $8,550 family in 2025, plus $1,000 at 55). The only account in the code with all three breaks.
- Solo 401(k) employee deferral — up to $23,500. Your own compensation, Roth or pre-tax, decided year by year at the bracket you are actually in.
- Employer profit share — 20% of (net profit − ½ SE tax). The flexible layer: sized and funded as late as the extended filing deadline.
- Taxable account — the residual. What is left after statutory room is filled is invested with no shelter at all, which is exactly why it goes last.
One vehicle is deliberately absent from that list: the SEP-IRA is not a layer of the stack, it is the third bullet standing alone — the Solo 401(k)'s employer bucket without the deferral bucket on top. When that trade is worth making is the first question below.
Layer 1: the retirement ceiling
Two owner-only plans matter, and they share more machinery than their marketing suggests. A Solo 401(k) fills from two buckets: an employee elective deferral of up to $23,500 in 2025 (IRC §402(g); IRS Notice 2024-80), plus an employer contribution. A SEP-IRA has exactly one bucket: the employer contribution, and nothing else at any age. The statutory employer rate is 25% of plan compensation — which, because the self-employed contribution shrinks its own base, solves to 20% of (net profit − ½ SE tax), the deduction-rate equivalent in IRS Publication 560's rate table for the self-employed. Both plans land under the same §415(c) annual-additions ceiling of $70,000, and catch-up deferrals sit outside that ceiling.
Sweep both engines across profit levels, deferring the full age-based limit (owner under 50, so no catch-up yet):
| Net profit (2025) | Solo 401(k) total | SEP-IRA | Solo advantage |
|---|---|---|---|
| $40,000 | $30,337 | $7,435 | $22,902 |
| $60,000 | $34,652 | $11,152 | $23,500 |
| $80,000 | $38,370 | $14,870 | $23,500 |
| $120,000 | $45,804 | $22,304 | $23,500 |
| $160,000 | $53,239 | $29,739 | $23,500 |
| $200,000 | $60,781 | $37,281 | $23,500 |
| $250,000 | $70,000 | $47,147 | $22,853 |
| $300,000 | $70,000 | $57,013 | $12,987 |
| $400,000 | $70,000 | $70,000 | $0 |
Read the middle rows first: from roughly $60,000 to $200,000 of profit the Solo advantage is exactly $23,500 at every income — the deferral bucket, no more and no less, because the two employer engines are the same engine (same rate, same base, same cap). In this band a Solo 401(k) is simply a SEP with a second bucket bolted on.
The top of the table bends twice. At $246,719 of profit the Solo 401(k) reaches its ceiling — the employer share fills the §415(c) headroom of $46,500 ($70,000 minus the deferral) and total capacity freezes at $70,000, while the SEP keeps climbing toward its own identical cap. The SEP finally catches up at $365,814 of profit — the convergence point the engine's bisection finds. Above it, both plans hold $70,000 and capacity stops being a reason to choose between them. If your profit lives permanently above $365,814, the plan decision is about administration and catch-ups, not room.
The bottom of the table bends too, in the other direction. Publication 560's deduction worksheet caps the self-employed employer share at ½ of net earnings after elective deferrals — a clawback that binds at low profits. At $40,000 of profit the plan base is $37,174, so 20% of it would allow $7,435 — but after the $23,500 deferral, the worksheet's cap leaves only $6,837 of employer room, a $598 haircut that fades to zero by $42,144 of profit — the exact breakpoint the engine bisects to, where the plan base reaches 5/3 of the deferral. The SEP has no such clawback (½ of its base always exceeds 20% of it), but at that income the comparison is $30,337 against $7,435 — the deferral bucket dwarfs the detail.
Age re-opens the gap that high income closes. Catch-up deferrals sit outside the §415(c) ceiling, and a SEP has no catch-up of any kind. At $400,000 of profit, above every threshold above:
| Owner age | Catch-up | Solo 401(k) total | SEP-IRA | Solo advantage |
|---|---|---|---|---|
| 45 | $0 | $70,000 | $70,000 | $0 |
| 52 | $7,500 | $77,500 | $70,000 | $7,500 |
| 62 | $11,250 | $81,250 | $70,000 | $11,250 |
At 50 the standard catch-up adds $7,500 of deferral room ($31,000 total deferrable); at 60–63 the SECURE 2.0 §109 enhanced catch-up replaces it with $11,250 ($34,750 total). Past the convergence income, the catch-up is the entire difference between the two plans — and it grows with age while the SEP stays flat at $70,000 forever.
Decision rule: open the Solo 401(k) unless something specific stops you. It weakly dominates the SEP at every income — same employer engine, plus a deferral bucket, plus Roth deferrals, plus catch-ups. The SEP earns its keep on simplicity alone: a one-page Form 5305-SEP and no plan document to maintain. Its retroactivity edge is narrower than it used to be, too — since SECURE 2.0 §317, a sole proprietor with no employees can adopt a new solo 401(k) as late as the un-extended filing deadline (April 15 for a calendar year) and still make first-year elective deferrals and employer contributions for the prior year; only employer dollars ride past that, to the extended deadline (IRC §404(a)(6)), and that half of the window is identical in both plans. Neither plan stays "solo" once you hire W-2 staff — coverage and nondiscrimination rules arrive with the first employee and change everything.
Layer 2: the flavor decision
Employer dollars are pre-tax by statute; the flavor choice belongs to the $23,500 deferral bucket, which a Solo 401(k) can take as Roth or pre-tax in any split. The Roth vs Traditional Calculator engine reduces the choice to one dial: the rate you avoid today versus the rate you pay at withdrawal. Hold the worked deferral constant — $23,500 a year for 25 years at a 6% return, saved in a 24% bracket — and vary only the retirement rate:
| Retirement rate | Traditional spendable | Roth spendable | Winner |
|---|---|---|---|
| 12% | $1,202,674 | $1,038,673 | Traditional, $164,001 |
| 18% | $1,120,673 | $1,038,673 | Traditional, $82,000 |
| 22% | $1,066,006 | $1,038,673 | Traditional, $27,333 |
| 24% | $1,038,673 | $1,038,673 | Tie |
| 28% | $984,006 | $1,038,673 | Roth, $54,667 |
| 32% | $929,339 | $1,038,673 | Roth, $109,334 |
The lines cross at exactly 24% — today's rate, as the algebra demands — and the stakes per point are $13,667 of spendable money per percentage point of rate gap. The 12% row is a 12-point error in one direction and costs $164,001; the same size error the other way pays the identical amount. Two consequences follow. First, precision about your retirement rate matters as much as knowing today's bracket — and real withdrawals fill brackets bottom-up from the standard deduction, so the effective rate on a Traditional balance usually sits below the retiree's top bracket, a point in favor of pre-tax that a flat-rate table understates. Second, a self-employed income that swings means the dial has a different setting each year: defer Roth in lean years when your marginal rate is cheap, pre-tax in fat years when the deduction is expensive, and split a year that straddles brackets.
Income phase-outs are the second half of this layer, and the two Roth doors behave differently. Direct Roth IRA contributions phase out for single filers between $150,000 and $165,000 of MAGI in 2025 (IRS News Release IR-2024-285) — a band one good consulting year crosses without noticing. At $158,000 of MAGI, only $3,267 of the $7,000 limit survives; at $165,000, none of it. The Roth side of a Solo 401(k) has no income phase-out at any MAGI, and the $23,500 deferral limit is one shared bucket across both flavors — so the practical route in a high-income year is to split the deferral: pre-tax dollars for the deduction, Roth deferral for the lean-year dollars, no IRA band in the way. (One more engine output worth knowing: when both accounts receive the same nominal dollars, the Roth column ends $300,668 ahead at a 22% retirement rate over 25 years. That edge is real only because limits are nominal — a Roth slot at the limit shelters more spendable value — not because Roth dollars grow faster. The engine states the caveat; carry it with the number.)
Layer 3: the HSA
The Health Savings Account is the only account in the tax code with three separate breaks: contributions inside the limit are deductible above the line even when you make them personally (IRC §223(a)); growth inside the account is never taxed (§223(e)); and withdrawals for qualified medical expenses are never taxed (§223(f)). The gate is coverage: you must be on an HSA-eligible high-deductible health plan. The 2025 room is $4,300 self-only, $8,550 family, plus $1,000 from age 55 (IRC §223(b)(3); limits per IRS Rev. Proc. 2024-25).
How you use the account is itself a decision, and the HSA Advantage Calculator engine prices all three usages against a taxable account fed the same pre-tax dollars ($4,300 a year, 24% bracket, 7% return, 30 years):
| Usage | What you do | Value at 30 years |
|---|---|---|
| Spend as you go | Each year's contribution pays that year's medical bills | $30,960 of income tax never paid on 30 years of medical dollars ($76,309 if the saved tax were itself invested) |
| Mixed | Spend 40% of each year's contribution on care, let the rest compound; 15% of the ending balance eventually cashed out non-qualified | $243,558 spendable vs $114,464 for the taxable twin — $129,094 ahead |
| Save to retire | Pay care from outside cash; the whole contribution compounds | $434,614 balance — $192,968 ahead of an annually-taxed twin, $104,307 ahead even if the twin's growth were never taxed |
That last number is the one to sit with: even granting the taxable account a zero-tax growth assumption the HSA can't match, the HSA still ends $104,307 ahead — exactly the 24% income tax the twin paid on the way in and the HSA never will. This is why the funding order puts the smallest bucket first: its advantage is structural, not a bet on returns.
The "save to retire" row is the stealth retirement account play. An HSA funded and never spent behaves like a traditional IRA with a better exit ladder: after 65, non-medical withdrawals owe income tax but no penalty, worth $330,307 spendable from the same $434,614 balance; qualified medical withdrawals stay free forever. Before 65 the exit is ugly — $10,000 pulled for a non-medical reason nets $5,600: income tax plus the 20% additional tax of §223(f)(4), 44 cents on the dollar at this bracket. And because qualified receipts never expire, the disciplined version is to pay current medical bills from outside cash and keep the receipts — each one is a withdrawal right you can exercise decades later, tax-free.
The funding order and cash flow
The order in the opening card is not about which layer is biggest — the HSA is the smallest. It is about which dollars are least replaceable. HSA room for a given year can be filled as late as April 15 — never on extension — and vanishes for good after that; a prior-year elective deferral is likewise possible only until the un-extended deadline, and only when adopting a new plan (SECURE 2.0 §317) — which is a reason to calendar the election rather than rely on the back-fill; the employer share can wait all the way to the extended deadline; and Roth-ness can be purchased later through conversion. Rank the layers by how badly a missed deadline hurts, fund top-down, and the order writes itself: HSA, deferral, employer share, taxable.
Now the cash-flow truth the stack sits on, at the worked owner. The full stack shelters $50,104 — $45,804 of plan dollars plus $4,300 of HSA — deferring $12,025 of income tax at 24%. But no contribution in any layer reduces self-employment tax: the $16,955 of SE tax on $120,000 of profit is owed in full, and quarterly estimates have to be sized with that line in mind — the Self-Employed Tax Calendar guide maps those deadlines and safe harbors. One more interaction to price before booking the full 24% as savings: pre-tax contributions also shrink the qualified-business-income base that the §199A deduction is computed on, so at the margin part of every deferral dollar's benefit comes back as lost QBI — run the QBI Deduction Calculator alongside the plan math before you spend the refund. Timing is the other honest constraint: the deferral is cash out the door during the year, while the employer share can be computed and funded by the filing deadline with extension — the natural home of the February decision, once you finally know what the year was. If you run an S corporation instead, the employer share keys to W-2 wages rather than profit, which makes the salary decision and the plan decision one decision — the Paying Yourself From Your Business guide works that interaction end to end.
Compressed to the situations the engines most often get asked about:
| Your situation | The move the math supports |
|---|---|
| Lean year — marginal rate in the teens | Roth deferral first. The deduction is worth only what this year's rate pays, and the break-even identity says the pre-tax route wins only if your retirement rate lands below this year's rate — whatever the lean year's rate actually is. |
| Fat year — profit above $365,814 | Capacity ties at $70,000 under 50, so flavor and timing decide: pre-tax deferral for the deduction, employer share by the extended filing deadline, catch-ups widening the Solo's edge from age 50. |
| No HSA-eligible health plan | Skip layer 3 without regret — the triple advantage is conditional on HDHP coverage, and a health-plan choice is a health decision, not a tax leak. |
| Standing in February, wishing you had funded last year | More time than you may think, but one hard wall: until April 15 a sole proprietor can still adopt a new solo 401(k) and defer for last year (SECURE 2.0 §317). Past that date only employer dollars remain open — to the extended deadline, in either plan — and the SEP's remaining edge is its one-page setup. |
| First W-2 employee hired | Both plans stop being "solo" — coverage and nondiscrimination rules arrive with the hire. Re-shop the plan with an administrator before the next plan year starts. |
What the engines do not model
Every figure above comes from the suite's 2025 federal engines, and each carries stated limits. Single owner, no employees — hiring W-2 staff voids the solo premise of both plans. No state income tax, and two states (CA and NJ) do not conform to HSA exclusion and tax HSA earnings. The §401(a)(17) compensation cap ($350,000 in 2025) is not modeled — at the self-employed 20% rate it exactly coincides with the $70,000 plan cap, so it changes no answer at or below the ceiling. There is no defined-benefit (cash balance) layer, which is how very high earners legitimately go past $70,000; no Required Minimum Distribution modeling (Traditional accounts force distributions from age 73/75; Roth IRAs never); and the Roth engine applies one flat retirement rate to the whole balance rather than filling brackets bottom-up. Contribution limits index most years — the 2026 HSA limits are already announced at $4,400 / $8,750 (Rev. Proc. 2025-19) — so re-run the instruments at your own numbers before acting. This is a decision framework with illustrative arithmetic, not tax advice.