HELOC vs 401(k) Loan: The Real Comparison (2026)

Both let you borrow without tapping taxable investments or paying credit-card rates. The comparison most people read online is still based on a 60-day post-separation rule that changed in 2018. The actual rules make 401(k) loans less urgent in a job-loss scenario than most content implies, but the opportunity cost remains real and often outweighs the interest-paid-to-yourself benefit.

This page covers what actually applies in 2026: the corrected QPLO rollover rule, the real opportunity cost math, the job-loss scenario, borrowing limits, and which option fits which situation.

This calculator provides estimates for educational purposes only. It is not affiliated with any bank, lender, or financial institution. Results are not a loan offer or guarantee of terms. Consult a licensed mortgage professional for advice specific to your situation.

Quick answer

  • • HELOC usually wins on capacity, flexibility, and long-term cost.
  • • 401(k) loan wins on speed, simplicity, and no credit check.
  • • Job-loss trigger on 401(k) loans is real but less urgent than commonly stated (QPLO tax-filing deadline, not 60 days).
  • • The hidden cost of a 401(k) loan is forgone market returns on the borrowed amount, not the interest.
  • • Short timeline or no home equity: 401(k). Long timeline, large amount, or stable home equity position: HELOC.

The 60-Day Rule Is Outdated: What Actually Applies in 2026

Most online content comparing HELOC to 401(k) loan still says: "If you leave your job with an outstanding 401(k) loan, the full balance is due within 60 to 90 days or it becomes taxable income plus penalty." That rule was replaced in 2018 by the Tax Cuts and Jobs Act.

Under current law (post-TCJA, Internal Revenue Code §402(c)(3)(C)), if a 401(k) loan becomes a loan offset because of plan termination or severance from employment, the offset is classified as a "qualified plan loan offset" or QPLO. You have until the due date of your federal income tax return (including extensions) for the year the offset occurs to roll over the offset amount to an IRA or a new employer's qualified plan.

Practical timing example. Suppose you leave a job in March 2026 with a $30,000 outstanding 401(k) loan, and your plan treats that as a loan offset at separation. Your deadline to roll over the offset is April 15, 2027 (or October 15, 2027 with extension). That is roughly 13 to 19 months of runway. The pre-2018 rule of 60 days has been replaced by something much more forgiving, but failing to meet the deadline still means the balance is taxed as income plus (if you are under 59½) a 10% early-withdrawal penalty.

Side-by-Side Comparison

AttributeHELOC401(k) Loan
Typical rate (2026)~7% variable (tied to prime)Prime + 1% (~8.5–9%)
Max amountUp to 80–85% CLTV of homeLesser of $50,000 or 50% of vested balance
Credit check requiredYes (620+ typical)No
Time to fund3–6 weeks1–2 weeks (plan rules)
Application effortApplication, appraisal, income docsOnline form via plan provider
Repayment term10-year draw + 10–20 year repayUp to 5 years (longer for home purchase)
Interest goes toLenderYourself (back into your 401(k))
Opportunity costNone (assets stay invested)Real: borrowed amount not invested during loan term
CollateralYour homeYour retirement balance
Default consequencePotential foreclosureBalance treated as taxable distribution (plus 10% penalty if under 59½)
Job-loss triggerNone (not tied to employment)QPLO event; rollover by tax filing deadline to avoid tax
Tax treatment of interestNot deductible for most uses under TCJANot deductible

The Opportunity Cost of a 401(k) Loan (The Real Cost)

The "you pay interest to yourself" line is technically correct but misleading. The real cost of a 401(k) loan is the market returns you forgo on the borrowed amount during the loan term.

Worked example. You borrow $50,000 from your 401(k) for 5 years at an 8% interest rate. You repay the principal and interest back into your account over those 5 years. During the same 5 years, your remaining 401(k) balance earns, say, an 8% annualised return in the stock market.

ScenarioValue at end of 5 yearsCalculation
Took the 401(k) loan~$60,833$50K repaid at 8% = $60,833 account balance (repayment amortised)
Left the $50K invested (took HELOC instead)~$73,466$50K compounded at 8% for 5 years
Forgone growth~$12,633The opportunity cost of the 401(k) loan approach

If the HELOC interest on $50,000 at 7% over 5 years totals ~$9,500 in interest paid out of pocket, then the 401(k) loan still costs you ~$3,100 more in total wealth than the HELOC option. The math flips if market returns during the period fall below the 401(k) loan rate. In a flat or negative market, a 401(k) loan can come out ahead because you avoid the loss on the borrowed amount. This is a real but unpredictable factor.

The honest summary

Over long horizons where markets generally rise, HELOC preserves more lifetime wealth than a 401(k) loan of equal amount. Over short horizons or in specific market environments, the difference may narrow or reverse. Neither is free. Choose based on your specific situation, not based on which one sounds cleverer.

When Each Actually Wins

HELOC wins when

  • Amount needed exceeds $50,000 (401(k) loan cap)
  • Timeline is longer than 5 years (401(k) loans must repay within 5 years for non-home use)
  • You might change jobs within the loan term
  • Want to preserve market exposure on the retirement balance
  • Need revolving access (draw, repay, redraw) rather than a fixed lump sum
  • Use is for home improvement (some HELOC interest may be deductible)

401(k) loan wins when

  • Amount needed is under $50,000 and under 50% of vested balance
  • Timeline is short (under 2 years)
  • Speed matters: funding in 1 to 2 weeks vs 3 to 6 weeks for HELOC
  • You have insufficient home equity for a meaningful HELOC
  • Credit score issues make HELOC difficult
  • Job is very stable and you are confident you will not trigger a QPLO event
  • You are worried about market volatility and want the borrowed amount out of the market temporarily

What NOT to do with either

Neither option should be used to fund lifestyle consumption that you cannot otherwise afford. A vacation, a wedding, a new car in the luxury tier, or discretionary spending financed by either a HELOC or a 401(k) loan means you are substituting secured debt (against your home or retirement) for unsecured spending restraint. The math almost always comes out worse than you expected. Both instruments are genuine tools for specific purposes (renovation, investment, divorce buyout, one-time large known expenses), not general-purpose spending credit.

Tax Treatment Compared

HELOC interest

Under the Tax Cuts and Jobs Act, HELOC interest is deductible on Schedule A only when proceeds are used to buy, build, or substantially improve the home securing the loan. Interest on HELOC proceeds used for other purposes (debt consolidation, tuition, investment, emergency, divorce buyout) is not deductible as home mortgage interest. If proceeds are used for a rental property or business, interest may be deductible on Schedule E or Schedule C under the interest tracing rules, but that is a different path than Schedule A.

401(k) loan interest

401(k) loan interest is paid into your own account, not to an external lender. Because the interest does not leave your own hands, it is not deductible to you as a borrower. The interest also does not generate taxable income to you as the recipient (the interest going back into your 401(k) grows tax-deferred like any other retirement contribution would). So the interest is tax-neutral: not deductible, not taxable.

Tax consequence if you fail to repay

HELOC default: foreclosure risk on the home securing the loan. The unpaid debt itself is not treated as taxable income unless the lender forgives the debt (in which case the cancelled debt may be taxable as income, with exceptions under IRC §108).

401(k) loan default (or QPLO not rolled over): the outstanding balance is treated as a distribution. Taxable as ordinary income in the year of the offset, plus (if you are under 59½) a 10% early-withdrawal penalty. No credit impact since the loan was never on your credit report. But the combined tax plus penalty can easily reach 40 to 50% of the outstanding balance depending on your tax bracket.

Frequently Asked Questions

What happens to a 401(k) loan if I leave my job?
This is the rule most comparisons still get wrong. Pre-2018, an outstanding 401(k) loan had to be repaid within 60 days of separation or it became a taxable distribution. The Tax Cuts and Jobs Act (TCJA) changed this. Now, if your loan becomes a 'qualified plan loan offset' (QPLO) because of severance from employment or plan termination, you have until the due date of your federal income tax return (including extensions) for the year the offset occurs to roll over the offset amount to an IRA or new employer plan. Practically, that can be a 12 to 22 month window depending on when in the year you leave. If you fail to roll over by the deadline, the balance is treated as taxable income plus (if you're under 59½) a 10% early-withdrawal penalty.
Can I borrow more from a HELOC or a 401(k) loan?
Typically HELOC. A 401(k) loan is capped at the lesser of $50,000 or 50% of your vested account balance (per IRC §72(p)). A HELOC is limited by your home equity and the lender's CLTV cap (usually 80 to 85%), so on a $600,000 home with a $300,000 mortgage, your HELOC limit would be roughly $180,000 to $210,000. For large cash needs (renovation, divorce buyout, investment), HELOC typically offers more capacity.
Which has lower interest cost?
Depends on your situation. HELOC rates in 2026 sit around 7% variable (tied to prime). 401(k) loan rates are set by the plan and commonly are prime plus 1% (so also around 8.5 to 9%). The unique feature of a 401(k) loan is that you are paying interest to yourself, since the interest goes back into your own account. But the principal itself is out of the market while borrowed, which is the real cost (see opportunity cost question).
What is the real 'cost' of a 401(k) loan beyond the interest?
The opportunity cost of money not invested. If you borrow $50,000 for 5 years and the market returns an average of 8% during that period, the forgone growth on the borrowed amount is approximately $23,000. You pay interest back to yourself, but the interest rate is typically lower than long-run market returns, so your 401(k) balance is smaller at the end than if you had never borrowed. A HELOC does not carry this opportunity cost because your invested assets stay invested.
Which has less risk?
Different risks, not less or more. HELOC risk: your home is collateral, so default leads to foreclosure. Rate is variable, so payments can rise. 401(k) loan risk: your retirement balance is smaller during the loan term. If you leave the job and fail to meet the QPLO rollover deadline, you face income tax plus penalty. Market volatility during the loan term can affect your recovery. HELOC risks are more visible; 401(k) loan risks are more subtle but real.
When is a 401(k) loan the better choice?
Short timelines (under 2 years), strong job stability (so you're unlikely to trigger a QPLO event), no home equity available or desire to preserve it, and a plan loan rate lower than current HELOC rates. Also when speed matters: 401(k) loans typically fund in 1 to 2 weeks while HELOCs take 3 to 6 weeks.