HSA vs Solo 401(k) vs Roth IRA: Which Should a Freelancer Fund First? (2026 Worked Numbers)

Published: October 14, 2026 ยท Reading time: 10 min

TL;DR: If you have a qualifying high-deductible health plan, fund the HSA first (2026 limit $4,400 self-only, $8,750 family), then choose between a traditional Solo 401(k) and a Roth IRA (limit $7,500) based on your bracket today versus later. In the worked example below, a single freelancer with $95,000 net profit saves $774.40 of federal income tax with a $4,400 HSA deduction and $1,877.48 with the HSA plus a $7,500 traditional Solo 401(k) deferral. For the same $1,000 of take-home cost, an HSA used for medical costs grows to about $3,892 after 20 years at an assumed 6%, versus about $3,207 in a Roth IRA and $3,036 in a traditional account taxed at 22% later. These are illustrations built on stated assumptions, and none of these deductions reduces self-employment tax. This guide is general education, not tax advice.

Freelancers hit the same wall every autumn. There is $10,000 or $12,000 that could go into a tax-favored account, and three accounts that could take it: a Health Savings Account, a Solo 401(k) and a Roth IRA. Most guides explain each account on its own. Very few put them side by side and say which dollar should go where first.

This post does that with numbers. It works one 2026 example from start to finish, shows how the answer shifts at lower and higher income, and lists what each account does not do. For the account-by-account detail, see HSAs for freelancers, Roth vs traditional Solo 401(k) and traditional vs Roth IRA.


The Three Accounts at a Glance

HSASolo 401(k)Roth IRA
2026 contribution limit$4,400 self-only, $8,750 family (plus $1,000 from age 55)$24,500 employee deferral, plus an employer contribution$7,500
Deduction todayYes, on your personal returnYes if traditional; none if RothNone
GrowthTax-freeTax-deferred (traditional) or tax-free (Roth)Tax-free
WithdrawalsTax-free for qualified medical expensesTaxed if traditional; generally tax-free if a qualified Roth distributionGenerally tax-free if qualified
Who can use itOnly with a qualifying high-deductible health planSelf-employed with no full-time employees other than a spouseIncome limit: single filers phase out from $153,000 to $168,000
Reduces self-employment tax?NoNoNo

The limits come from the IRS. The HSA figures are in Rev. Proc. 2025-19, and the 401(k) deferral limit of $24,500, the IRA limit of $7,500 and the Roth IRA phase-out of $153,000 to $168,000 for single filers are in the IRS's 2026 retirement limits announcement. Publication 969 (2025 edition) lists the 2026 high-deductible health plan thresholds, and IRS Notice 2026-05 covers the 2026 treatment of bronze and catastrophic plans. We fetched each directly from IRS.gov and read the figures in the source text.

The HSA is the only one of the three whose money can leave tax-free and went in deductible. That is why it usually gets the first dollar. It is also the one with the strictest entry rule, because you need a qualifying plan.


A Worked Example: $95,000 Net Profit, Single, Age 38

Sam is a single freelance copywriter with $95,000 of 2026 net profit on Schedule C, no other income and no wages. Sam has a qualifying high-deductible plan with self-only coverage and wants to save $11,900 this year, which is the HSA limit of $4,400 plus the Roth IRA limit of $7,500. The federal-only numbers below ignore state tax.

Step 1: self-employment tax. $95,000 times 92.35% times 15.3% is $13,423.07. Half of it, $6,711.54, is an above-the-line deduction. Sam's AGI before saving anything is $88,288.46.

Step 2: taxable income with no contributions. Subtract the 2026 single standard deduction of $16,100 and the QBI deduction. Because Sam has no other income, the QBI deduction is limited to 20% of taxable income before QBI, which is lower than 20% of QBI itself. That gives a QBI deduction of $14,437.69 and taxable income of $57,750.77. The 2026 single brackets (Rev. Proc. 2025-32) put the 12% bracket up to $50,400 and the 22% bracket from there to $105,700, so Sam is $7,350.77 into the 22% bracket. Federal income tax is $7,417.17.

We checked the QBI deduction against ยง199A's three limits. Sam is far below the $201,750 single threshold, so the SSTB and W-2 wage limits do not apply, and the taxable-income cap is the one that binds. See the QBI deduction guide.

Step 3: compare placements. Each row below recomputes the full return.

Where the $11,900 goesFederal income taxSaved vs. no contributions
Nothing (baseline)$7,417.17$0.00
A: HSA $4,400 + Roth IRA $7,500$6,642.77$774.40
B: HSA $4,400 + traditional Solo 401(k) $7,500$5,539.69$1,877.48
C: Traditional Solo 401(k) $11,900, no HSA$5,539.69$1,877.48
D: Traditional Solo 401(k) $7,500 only$6,097.17$1,320.00

Three things stand out.

The deduction is worth less than the bracket suggests. The first $7,350.77 of reduction comes off the 22% bracket, but the QBI deduction shrinks as taxable income falls, so each deducted dollar reduces taxable income by about 80 cents. That is why $7,500 of deferral saves $1,320.00, which is 17.6% of the contribution, not 22%. It is the same clawback described in the retroactive Solo 401(k) guide.

A large deduction straddles brackets. Rows B and C remove more than the $7,350.77 sitting in the 22% bracket, so part of the deduction is taxed at 12%. The $11,900 saves $1,877.48, which is 15.8%, below 17.6%. Stacking the HSA first or the 401(k) first does not change the total. It only changes which account you credit with the 22% dollars.

Row A saves the same as the HSA alone. The Roth IRA gives no deduction, so its benefit shows up later, not in this table.

None of the five rows changes self-employment tax, which stays at $13,423.07. Neither an HSA nor a Solo 401(k) deferral is a Schedule C expense, so both leave the profit that self-employment tax is computed from untouched. Our self-employment tax guide covers that calculation.


What the Deduction Misses: The Back End

Rows B and C tie today, so the decision between an HSA and a Solo 401(k) deferral is about what happens on the way out. Here is the same comparison per $1,000 of take-home cost.

Because the contribution is deductible at Sam's 17.6% effective rate, it takes $1,213.59 into the HSA or the traditional 401(k) to cost $1,000 after tax. The Roth IRA gets the full $1,000, with no deduction. All three grow at an assumed 6% for 20 years, a factor of 3.2071.

Value after 20 yearsIf tax on withdrawal is 12%If tax on withdrawal is 22%
HSA, used for qualified medical expenses$3,892$3,892$3,892
Traditional Solo 401(k)$3,892 before tax$3,425$3,036
Roth IRA$3,207$3,207$3,207

Under these assumptions the HSA wins in both columns, the traditional account wins if your future rate is 12% and the Roth IRA wins if it is 22%. The growth rate, the 20-year horizon and the future rate are all assumptions, not predictions. Change them and the ranking between the traditional account and the Roth IRA will flip, which is the usual trade-off in the Roth vs traditional question.

The HSA's lead, though, holds only if the money goes to qualified medical costs. For distributions that are not for qualified medical expenses, Publication 969 says you owe income tax, and before age 65, disability or death an additional 20% tax. From age 65 the 20% additional tax no longer applies, so a non-medical withdrawal then behaves like the 22% traditional column above: $3,036. The HSA's worst case in retirement is a traditional account. Its worst case before 65 is worse than that.


How the Answer Shifts With Income

The deduction's value depends on your bracket, so the ranking between traditional and Roth moves with income. The table below uses the same method as the example: single filer, no other income, 2026 brackets, the same standard deduction, the QBI taxable-income cap binding, and the value of the next $1,000 deducted.

Net profitTaxable incomeBracket of the next dollarFederal tax saved by $1,000 deducted
$38,000$15,372.3112%$96.00
$95,000$57,750.7722%$176.00
$180,000$120,946.7224%$192.00

At $38,000 a deduction saves under 10 cents on the dollar, so a Roth IRA, which gives up that small deduction in exchange for tax-free withdrawals, becomes attractive. At $180,000 the deduction saves 19.2 cents, which favors pre-tax saving. There is a wrinkle in the top row: at $180,000 of profit, AGI is roughly $167,283, which sits inside the $153,000 to $168,000 Roth IRA phase-out range, so the Roth IRA limit would be reduced. A traditional Solo 401(k) deferral lowers that figure.

At every income level the HSA keeps its place when you qualify, because it combines the deduction with the tax-free exit. The $180,000 row is under the $201,750 QBI threshold, so no wage limit applies. Above that, QBI gets more involved and a CPA's help is worth it.


A Decision Order for the Next Dollar

This is a heuristic, not a rule. Work down the list and stop when the money runs out.

  1. Cover your tax bill first. Money set aside for estimated payments is not available to save. See how much to set aside for taxes.
  2. Hold enough cash to pay your health plan's deductible. An HSA only makes sense if you can pay a bad year's costs without raiding it, or if you can afford to treat the HSA as the reserve.
  3. HSA to the limit if you qualify. $4,400 self-only or $8,750 family in 2026. Check the plan: HDHP vs PPO explains why a plan's label does not decide eligibility, and the HSA vs FSA guide covers the alternative.
  4. Choose the next account by bracket. Lower bracket now than you expect later: lean Roth IRA, up to $7,500. Higher bracket now: lean traditional Solo 401(k). Near the Roth IRA income range: lean the 401(k).
  5. Use the Solo 401(k) for everything beyond the IRA limit. The $24,500 deferral limit dwarfs the Roth IRA. For total capacity and the employer piece, see Solo 401(k) contribution limits. If you are above the Roth IRA range, see the backdoor Roth.
  6. Compare other plans only if the Solo 401(k) does not fit. SEP-IRA vs Solo 401(k) lays out the differences.

For a broader sequence that includes S-corp and QBI planning, see tax strategies for your first six-figure year.


What Each Account Does Not Do

  • The HSA is not a general-purpose account. Money used for non-medical costs is taxed, and before 65 carries a 20% additional tax. It also requires coverage that qualifies, and your eligibility is tested month by month; see the last-month rule.
  • A health plan can cost more than it saves. A high-deductible plan's deductible is generally at least $1,700 self-only for 2026 (bronze and catastrophic Exchange plans are the exception from 2026). If a lower-deductible plan costs less overall for your health needs, the HSA deduction is not worth choosing the plan for.
  • The Solo 401(k) deferral does not cut self-employment tax, and in the worked example the QBI deduction shrinks as the deferral lowers taxable income, which is why the tax saving was 17.6% rather than 22%.
  • The Roth IRA gives no deduction this year and has an income limit that a high-earning freelancer can pass.
  • State tax is not modeled. States can treat these accounts differently from the IRS, so check yours.
  • Premiums are separate. The deduction for your own health insurance premiums is a different benefit; see the self-employed health insurance deduction.

Timing in 2026

HSA contributions for a tax year can generally be made until the filing deadline for that year, without extensions; Publication 969 gives April 15, 2026 for 2025 contributions, so the 2026 equivalent falls in spring 2027. A new Solo 401(k) can often still be set up for the current year after it ends, as covered in the retroactive adoption guide, but the rules for the deferral differ from the employer piece, so confirm the plan's terms before relying on that.

Keep medical receipts either way. Publication 969 expects you to be able to show what an HSA withdrawal paid for, so a tidy folder of receipts matters as much as the contribution. See how to organize receipts for taxes.


Common Mistakes to Avoid

  1. Contributing to an HSA without a qualifying plan. Confirm the plan's deductible and eligibility first.
  2. Funding an IRA ahead of the HSA by default. The HSA often has the better tax shape; the point of the worked example is to check it against your own numbers.
  3. Assuming a deduction saves your top bracket. A large deduction straddles brackets, and QBI trims the saving.
  4. Treating HSA money as spending money. Non-medical use before 65 costs income tax plus 20%.
  5. Expecting a lower self-employment tax. None of these contributions affects it.
  6. Ignoring the Roth IRA income limit. Single filers phase out between $153,000 and $168,000 in 2026.
  7. Forgetting the receipts. A withdrawal you cannot document is a withdrawal you may have to explain.

How CentSense Helps

CentSense keeps the records behind these decisions in one place:

  • Scan business and medical receipts with AI the day you get them, so the date and amount are captured. The free tier includes 10 AI scans a month
  • Track your business expenses by category so your Schedule C profit, the number every calculation above starts from, is accurate before you decide how much to save
  • Export categorized expenses as CSV for your CPA or EA on the Solo plan ($5/month)

CentSense does not choose an account for you, decide whether your health plan qualifies, or compute your contribution limits. Those are judgment calls for you and your CPA or EA.


Frequently Asked Questions

Should a freelancer fund an HSA before a Solo 401(k) or Roth IRA?

Usually the HSA comes first, but only if you have a qualifying high-deductible health plan and can cover the deductible from other cash. In the 2026 worked example in this guide (single freelancer, $95,000 net profit, 22% bracket), $1,213.59 put into an HSA and used for medical costs grew to about $3,892 after 20 years at an assumed 6% return, compared with about $3,207 in a Roth IRA and about $3,036 in a traditional account taxed at an assumed 22% later, for the same $1,000 of take-home cost. Those figures rest on assumptions about growth, future tax rates and medical spending. An HSA is not a general savings account: withdrawals not used for qualified medical expenses are taxed, and before age 65 also carry a 20% additional tax. Ask a CPA or EA how it fits your plan.

What are the 2026 contribution limits for an HSA, a 401(k) and a Roth IRA?

For 2026 the HSA limit is $4,400 for self-only high-deductible coverage and $8,750 for family coverage (Rev. Proc. 2025-19), with an extra $1,000 from age 55. The 401(k) employee deferral limit, which applies to a Solo 401(k), is $24,500, and the IRA limit is $7,500 (IRS 2026 limits release). A Solo 401(k) also allows an employer contribution on top of the deferral, so its total capacity is larger. Roth IRA contributions phase out for single filers between $153,000 and $168,000 of income. Eligibility rules apply to each account, so confirm yours with a CPA or EA.

Does an HSA or Solo 401(k) contribution reduce self-employment tax?

No. Both are deducted on your personal return, not on Schedule C, so they lower income tax but not the 15.3% self-employment tax, which is figured from your Schedule C profit. In the guide's $95,000 example, self-employment tax is $13,423.07 whether you contribute nothing or $11,900. Contributions also do not change your Schedule C profit. Ask a CPA or EA if you also have wages or a spouse's return in the picture.

Is it better to put money in a traditional or Roth Solo 401(k) than a Roth IRA?

It depends on your bracket now versus later, and on how much you want to save. A Roth IRA is capped at $7,500 for 2026 and phases out for single filers between $153,000 and $168,000 of income, while a Solo 401(k) deferral can go to $24,500 and, if the plan offers a Roth option, can be made as Roth. The deduction is worth less at lower income: in this guide's examples, the next $1,000 deducted saved about $96 at $38,000 net profit, $176 at $95,000 and $192 at $180,000, because the next dollar sits in the 12%, 22% and 24% bracket respectively, and the QBI taxable-income cap trims each saving by about a fifth. That lower deduction tilts toward Roth when your income is low, and toward traditional when it is high. This is a judgment area, so ask a CPA or EA.

What happens if I withdraw HSA money for something that is not medical?

You owe regular income tax on the amount, and before age 65 you also owe a 20% additional tax, except after disability or death (Publication 969). From age 65 the 20% additional tax no longer applies, but non-medical withdrawals are still taxed as income, so the HSA then behaves much like a traditional retirement account. Withdrawals used for qualified medical expenses remain tax-free. Keep receipts for the medical costs in case you need to show what a withdrawal paid for. Ask a CPA or EA about your situation.

Can a freelancer contribute to an HSA without a high-deductible health plan?

No. To contribute you generally must be covered by a qualifying high-deductible health plan, which for 2026 means a minimum annual deductible of $1,700 for self-only coverage or $3,400 for family coverage, with out-of-pocket limits of $8,500 and $17,000 (Publication 969). From 2026, a bronze or catastrophic plan available as individual coverage through an Exchange is also treated as a qualifying high-deductible plan even if it misses those figures (IRS Notice 2026-05). Other coverage, Medicare enrollment or being claimed as someone's dependent can also stop you. Whether a plan qualifies depends on its terms, not on whether it is called a PPO. Confirm with the insurer or a CPA or EA before contributing.

Does this ranking change if I earn more than about $150,000 as a freelancer?

The order may shift. At $180,000 of net profit in the guide's example, the next $1,000 deducted saved about $192 because the taxable income sits in the 24% bracket, and AGI of roughly $167,283 sits inside the $153,000 to $168,000 single-filer Roth IRA phase-out range, so the Roth IRA limit would be reduced. That tilts toward traditional pre-tax saving, and the HSA keeps its place when you are eligible. It is a judgment area that also depends on other income, state tax and the QBI limits that apply at higher incomes, so ask a CPA or EA.


Authoritative References


Know your profit before you pick the account. Start a free CentSense account, scan your receipts with AI as you go, and export a CPA-ready breakdown at tax time. The free tier includes 10 AI receipt scans a month, no credit card required, and the Solo plan is $5/month for unlimited scans, mileage tracking and CSV export.


This guide is general education for U.S. freelancers filing a Schedule C in 2026. It is not personalized tax advice. Which account to fund, whether your health plan qualifies, how a deduction interacts with the QBI limits and what your bracket will be later are judgment areas, and the facts that drive your numbers should be confirmed by a CPA or EA based on your full situation.

Related reads

Continue learning with more tax and expense guides for freelancers.

Compare alternatives

See how CentSense stacks up to other expense and receipt tools for freelancers.