| Feature | 401(k) loan | 401(k) withdrawal |
| Availability | Only if the plan permits loans | Depends on plan rules and eligibility |
| Repayment | Generally required under the loan agreement | Generally cannot be repaid as a loan |
| Taxes | Usually not taxable if rules are followed | Tax may apply to the taxable portion |
| Early-distribution tax | Generally not applicable to a compliant loan | May apply to an early taxable distribution |
| Retirement savings | Loan balance is repaid under plan rules | Distributed amount leaves the account |