When Is a 401(k) Tax-Free? Roth Distributions, Rollovers, and Loans

A 401(k) withdrawal is tax-free in a narrow set of situations: a qualified distribution from a Roth 401(k), a properly structured loan against your balance, a direct rollover into another retirement account, and the return of after-tax contributions you already paid income tax on. Outside those paths, money leaving a traditional 401(k) is taxable, and some of the common exceptions people rely on only waive the 10% early withdrawal penalty — not the income tax.

Qualified Roth 401(k) Distributions

A Roth 401(k) is the clearest route to tax-free retirement income. You fund it with money that has already been taxed through payroll, and both the contributions and the investment growth come out tax-free once the withdrawal qualifies.1Office of the Law Revision Counsel. 26 USC 402A – Optional Treatment of Elective Deferrals as Roth Contributions

Two conditions must both be met. First, the account has to satisfy the five-taxable-year rule. The clock starts on January 1 of the tax year you make your first Roth contribution to that employer’s plan. A first contribution in October 2026 starts the period on January 1, 2026, and ends it after December 31, 2030. Earnings withdrawn before the period closes are taxed as ordinary income.1Office of the Law Revision Counsel. 26 USC 402A – Optional Treatment of Elective Deferrals as Roth Contributions

Second, a qualifying event has to occur. The usual one is reaching age 59½. Once both conditions are satisfied, every dollar you pull out — contributions, interest, dividends, capital gains — is exempt from federal income tax.2Internal Revenue Service. Retirement Plans FAQs on Designated Roth Accounts A retiree with $500,000 in a Roth 401(k) that meets both tests can withdraw the entire balance without owing federal tax.

Two other qualifying events replace the age threshold. A distribution qualifies if it is made after the account holder’s death or is the result of a total and permanent disability. The five-year rule still applies. For an inherited Roth 401(k), it is the original owner’s age, death, or disability — not the beneficiary’s — that determines whether the distribution qualifies.2Internal Revenue Service. Retirement Plans FAQs on Designated Roth Accounts

Non-Qualified Roth Withdrawals

Take money out of a Roth 401(k) before meeting both requirements and only part of the withdrawal stays tax-free. Your original contributions come out untaxed because you already paid tax on them. The earnings portion is taxed as ordinary income, and if you are under 59½ with no exception, the earnings can also face the 10% early withdrawal penalty.3Internal Revenue Service. Roth Comparison Chart

401(k) Loans

Borrowing against your 401(k) balance is not a distribution. A properly structured plan loan is treated as a loan for tax purposes, so no income tax and no early withdrawal penalty apply as long as you follow the rules.4Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

The loan is capped at the lesser of $50,000 or 50% of your vested balance. If half your vested balance is under $10,000, some plans allow borrowing up to $10,000, but plans are not required to offer this.5Internal Revenue Service. Retirement Topics – Plan Loans The $50,000 ceiling is also reduced by your highest outstanding loan balance from the same plan during the previous 12 months.4Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Three structural rules keep the loan tax-free:

  • The loan must be fully repaid within five years, unless it is used to buy your primary home, in which case the plan can set a longer term.
  • Payments of principal and interest must be substantially equal and made at least quarterly.
  • A written loan agreement setting the amount, interest rate, and repayment schedule must be on file with the plan administrator.

Stay on schedule and the borrowed money is tax-free cash you can use for any purpose.4Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Leaving Your Job With an Outstanding Loan

Separating from your employer while you still owe a loan balance is where 401(k) loans go wrong. If you cannot repay under the plan’s terms after you leave, the outstanding balance and accrued interest are treated as a deemed distribution, taxable in the year of default, and typically subject to the 10% early withdrawal penalty if you are under 59½.6eCFR. 26 CFR 1.72(p)-1 – Loans Treated as Distributions

There is a safety valve. You can roll the outstanding loan balance into an IRA or another eligible retirement plan by the due date of your federal tax return (including extensions) for the year the loan is treated as a distribution. Completing that rollover avoids both the income tax and the penalty.5Internal Revenue Service. Retirement Topics – Plan Loans

Rollovers to Another Retirement Account

Moving money from one retirement account to another is not a withdrawal. Done correctly, a rollover is a non-taxable transfer that keeps your balance growing inside the tax-advantaged system. How you complete the rollover determines whether taxes get withheld along the way.

Direct Rollovers

In a direct (trustee-to-trustee) rollover, the plan administrator sends your balance straight to an IRA, a new employer’s 401(k), or another eligible retirement plan. You never take possession, the IRS does not treat the transfer as a distribution, no tax is owed, and nothing is withheld.7eCFR. 26 CFR 1.401(a)(31)-1 – Requirement to Offer Direct Rollover of Eligible Rollover Distributions Send $100,000, receive $100,000 in the new account. Every qualified plan is required to offer this option for any eligible rollover distribution.8Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans

Indirect (60-Day) Rollovers

If the distribution comes to you first, you have 60 days to deposit the money into another eligible retirement account to avoid tax.9Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust The plan is required to withhold 20% for federal income taxes before cutting the check. On a $100,000 distribution you receive $80,000. To roll over the full $100,000, you have to add the missing $20,000 out of your own pocket and deposit the whole amount within the 60-day window.10Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions

If you only roll over the $80,000, the $20,000 withheld is treated as a taxable distribution. You owe income tax on it, and if you are under 59½, the 10% penalty may hit as well. The IRS can waive the 60-day deadline in limited circumstances where you missed it for reasons beyond your control, but that relief is not something to plan around.10Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions A direct rollover avoids the whole problem.

After-Tax Contributions

Some 401(k) plans let you make after-tax contributions on top of your regular pre-tax or Roth deferrals. Those dollars were already taxed, so withdrawing your contribution basis comes out tax-free. The catch is that the investment earnings on those contributions were never taxed, and they are taxable income when you take them.4Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Withdrawals are split pro-rata between tax-free basis and taxable earnings. If the account holds $9,000 in after-tax contributions and $1,000 in earnings, 90% of any distribution is tax-free and 10% is taxable.11eCFR. 26 CFR 1.72-1 – Introduction That proportional split continues on every withdrawal until you have recovered your entire basis. Keep records of your after-tax contributions; the burden of proving which dollars were already taxed is on you.

Converting After-Tax Money to Roth

After-tax contributions also feed a strategy that can turn a lot of savings into permanently tax-free money. The overall 2026 limit on everything that can go into a defined contribution plan — your elective deferrals, employer match, and after-tax contributions combined — is $72,000, or $80,000 at age 50 and older.12Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 The elective deferral limit in 2026 is $24,500. If your employer adds $10,000 in matching, that leaves $37,500 of room under the overall cap for after-tax contributions, if the plan allows them.

IRS guidance confirms that after-tax contributions can be rolled into a Roth IRA tax-free because tax was already paid on them, while the associated earnings can be directed to a traditional IRA to keep the tax on that portion deferred.13Internal Revenue Service. Rollovers of After-Tax Contributions in Retirement Plans Once inside a Roth account, future growth and qualified withdrawals are tax-free. Not every plan permits after-tax contributions or in-service distributions, so check the plan documents before counting on this approach.

What Isn’t Tax-Free

A few situations look like they should belong on this list and don’t.

Ordinary traditional 401(k) withdrawals. Pre-tax balances are tax-deferred, not tax-free. Every dollar you eventually withdraw is taxed as ordinary income, and starting at age 73 the IRS requires annual required minimum distributions from traditional 401(k) accounts. Designated Roth accounts in a 401(k) are no longer subject to lifetime RMDs, which is one reason the Roth side stays tax-free for as long as you live.14Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs

Early withdrawal penalty exceptions. Federal law waives the 10% early withdrawal penalty in a long list of situations — separation from service at 55 or later, disability, death, substantially equal periodic payments, medical expenses over 7.5% of adjusted gross income, qualified domestic relations orders, birth or adoption expenses up to $5,000, federally declared disasters up to $22,000, terminal illness, domestic abuse, a $1,000 annual emergency personal expense, and IRS levies.15Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions These exceptions only remove the 10% penalty. For pre-tax money, ordinary income tax still applies.

In-plan Roth conversions. If your plan allows it, you can convert pre-tax 401(k) money to a Roth 401(k) inside the plan. The converted amount is added to your taxable income for the year — you pay the tax now to make future growth and qualified withdrawals tax-free.16Internal Revenue Service. In-Plan Roth Rollovers It is not a way to get money out tax-free today.

State income tax. Federal tax treatment and state tax treatment are separate questions. Most states follow the federal rule for qualified Roth distributions and do not tax them, but state rules for traditional 401(k) distributions vary widely, with some states charging no income tax at all and others offering partial exemptions tied to age or dollar amounts. Check your own state’s rules before planning a large distribution.