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.
Sources: IRS Plan Loan Offsets, Federal Register TD 9937 (Final QPLO rules, 2021), IRC §402(c)(3)(C) and §72(p).
Side-by-Side Comparison
| Attribute | HELOC | 401(k) Loan |
|---|---|---|
| Typical rate (2026) | ~7% variable (tied to prime) | Prime + 1% (~8.5–9%) |
| Max amount | Up to 80–85% CLTV of home | Lesser of $50,000 or 50% of vested balance |
| Credit check required | Yes (620+ typical) | No |
| Time to fund | 3–6 weeks | 1–2 weeks (plan rules) |
| Application effort | Application, appraisal, income docs | Online form via plan provider |
| Repayment term | 10-year draw + 10–20 year repay | Up to 5 years (longer for home purchase) |
| Interest goes to | Lender | Yourself (back into your 401(k)) |
| Opportunity cost | None (assets stay invested) | Real: borrowed amount not invested during loan term |
| Collateral | Your home | Your retirement balance |
| Default consequence | Potential foreclosure | Balance treated as taxable distribution (plus 10% penalty if under 59½) |
| Job-loss trigger | None (not tied to employment) | QPLO event; rollover by tax filing deadline to avoid tax |
| Tax treatment of interest | Not deductible for most uses under TCJA | Not 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.
| Scenario | Value at end of 5 years | Calculation |
|---|---|---|
| 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,633 | The 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.