Can a First-Time Home Buyer Use a 401(k)? Loans, Rollovers, Hardship

A first-time home buyer 401(k) withdrawal does not qualify for the IRS penalty exception that IRA holders get. Under 26 U.S.C. § 72(t)(2)(F), the up-to-$10,000 penalty-free homebuyer distribution is limited to “individual retirement plans,” meaning traditional IRAs, Roth IRAs, SEP IRAs, and SIMPLE IRAs.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Pull cash straight out of a 401(k) before age 59½ to buy a home and you owe ordinary income tax on the full amount plus the 10% early distribution penalty, regardless of how well you document the purchase. To use 401(k) money for a home without that penalty, you have three practical paths: borrow from the plan, roll funds into an IRA first and take the distribution from there, or accept the tax hit through a hardship withdrawal.

Why the Homebuyer Exception Skips 401(k) Plans

The IRS exceptions table draws a clean line between account types. The first-time homebuyer exception is marked “yes” for IRAs and “no” for qualified plans such as 401(k)s and 403(b)s.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions The statute grants the exception only for distributions “from an individual retirement plan.”1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

That distinction is the reason the strategies below exist. Two of them are about avoiding a distribution entirely (a loan) or moving the money into an account where the exception does apply (a rollover to an IRA). The third accepts the tax cost.

Taking a Loan Against Your 401(k)

A 401(k) loan is the most tax-efficient way to pull money from a retirement account for a home purchase. Because you’re borrowing from your own balance and repaying with interest, the IRS does not treat it as a distribution: no income tax, no 10% penalty, and no need to qualify as a first-time buyer.3Internal Revenue Service. Hardships, Early Withdrawals and Loans

The maximum is the lesser of $50,000 or 50% of your vested balance, with a floor of $10,000 if your vested balance is at least that amount. That cap covers all outstanding loans from the same plan and drops if you carried a higher loan balance in the prior 12 months. The standard repayment window is five years, but loans used to purchase a principal residence can run longer; many plans allow 10, 15, or even 25 years for a primary home purchase.4Internal Revenue Service. Retirement Plans FAQs Regarding Loans Payments come out of payroll, and the interest goes back into your own account.

Loan provisions are optional. Your employer’s plan document decides whether loans are offered and on what terms. Check with your plan administrator before building a strategy around this option.

The Job-Loss Trap

If you separate from your employer while a loan is outstanding, most plans require full repayment within a short window, often 60 to 90 days, though some plans allow until the next tax filing deadline. Fail to repay in time and the remaining balance becomes a “deemed distribution”: taxable income for the year, plus the 10% penalty if you’re under 59½.5Internal Revenue Service. Deemed Distributions – Participant Loans Missing a single installment can trigger the same result if you don’t cure the payment within your plan’s grace period.

A $40,000 deemed distribution could easily create a combined tax-and-penalty bill of $12,000 to $15,000. If a layoff is possible or you’re considering a career change, that risk is real.

Rolling 401(k) Money Into an IRA to Use the Exception

Because the $10,000 penalty-free homebuyer distribution applies only to IRAs, the workaround is to roll your 401(k) balance into a traditional IRA first, then take the distribution from the IRA. The rollover itself is not taxable as long as the funds land in the IRA within 60 days.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Once the money is in the IRA, you can withdraw up to $10,000 penalty-free for a qualified first-time home purchase under 26 U.S.C. § 72(t)(2)(F).1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Several catches shape whether this strategy works in practice:

  • You usually need to have left your employer. Most 401(k) plans do not allow in-service rollovers before age 59½. A few allow in-service rollovers of specific contribution types, but this varies. Confirm with your plan administrator.
  • Ask for a direct rollover, custodian to custodian. If the plan sends you a check instead, it must withhold 20% for federal taxes, and you’d need to make up that 20% from other funds to complete a full rollover within 60 days.
  • The $10,000 cap doesn’t grow with the rollover. Even if you move $100,000 into the IRA, the penalty-free homebuyer piece is still capped at $10,000 across your lifetime. Anything above that comes out with the 10% penalty attached if you’re under 59½.
  • The exception waives only the 10% penalty. The distribution is still taxable income for the year.

The dollar savings are meaningful but modest. On the full $10,000, avoiding the penalty saves you $1,000. Whether that justifies the paperwork depends on how much you’re pulling out and whether a loan is available to you.

Hardship Withdrawals

If your plan offers no loans and you can’t roll over (because you’re still employed), a hardship withdrawal is the remaining route. IRS safe harbor rules treat costs of purchasing a principal residence, excluding mortgage payments, as an automatic qualifying hardship.6Internal Revenue Service. Retirement Topics – Hardship Distributions

This is the most expensive option. You owe ordinary income tax on the full amount plus the 10% penalty if you’re under 59½, and the homebuyer exception offers no relief because it doesn’t apply to 401(k) distributions.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions On a $20,000 withdrawal, someone in the 22% bracket loses roughly $6,400 between income tax and the penalty, leaving about $13,600 for the home.

Hardship distributions can’t be repaid to the plan and can’t be rolled into another retirement account.6Internal Revenue Service. Retirement Topics – Hardship Distributions The amount is limited to the need, and your administrator may require you to show that other resources have been exhausted. You are not, however, required to take a plan loan first if doing so would jeopardize your mortgage approval.

Who Actually Counts as a First-Time Home Buyer

The IRS definition is more forgiving than the name suggests. You qualify if you (and your spouse, if married) had no ownership interest in a principal residence during the two-year period ending on the date you acquire the new home.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Someone who sold a home three years ago and has been renting since qualifies.

A few points that trip people up:

  • Both spouses must qualify. If your spouse owned a principal residence within the two-year lookback, neither of you can use the exception, even if you personally never owned a home.
  • Investment properties don’t count. The lookback covers only principal residences, so past rental property or a vacation home you never lived in as your primary home doesn’t disqualify you.
  • The date of acquisition is the date you sign a binding purchase contract, not the closing date.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts
  • You can buy for certain relatives. The distribution can go toward a principal residence for your spouse, child, grandchild, parent, or grandparent.

Each spouse has a separate $10,000 lifetime limit, so a married couple who both qualify can withdraw up to $20,000 combined. The cap is lifetime, not annual; if you used $6,000 of the exception five years ago, only $4,000 remains.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Qualified Costs and the 120-Day Window

The IRA distribution must be spent on qualified acquisition costs within 120 days of the day you receive the funds. The statute defines these broadly to include buying, building, or rebuilding a residence, along with standard settlement charges, financing costs, and other closing costs.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts That covers the down payment, title insurance, appraisal fees, recording fees, and loan origination charges, as well as the cost of land you build on.

The 120-day clock is strict. If your purchase falls through or slips past the deadline, the distribution becomes fully subject to the 10% penalty. The statute does provide a safety valve: you can roll the money back into an IRA within 120 days (not the usual 60-day rollover window), and the distribution is treated as if it never happened. This corrective rollover is also exempt from the once-per-year IRA rollover limit.1Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts

Claiming the Exception on Your Tax Return

Any distribution from a retirement account is reported to the IRS on Form 1099-R, with a distribution code in Box 7 indicating the type of transaction.7Internal Revenue Service. About Form 1099-R Custodians don’t always code the homebuyer exception correctly. Either way, claiming the waiver is on you.

File IRS Form 5329 with your tax return and enter exception number 09, which covers IRA distributions for a first home purchase up to $10,000. That removes the qualifying amount from the 10% penalty calculation.8Internal Revenue Service. Instructions for Form 5329 (2025) Skip Form 5329 and the IRS will assess the penalty automatically based on the 1099-R code.2Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Form 5329 waives only the 10% penalty; you still report the full distribution as taxable income on your Form 1040, and any penalty amount that does apply flows to Schedule 2, Line 8.

Keep your closing disclosure or settlement statement, proof of how the funds were applied to acquisition costs, and any documentation showing you did not own a principal residence during the two-year lookback.

Choosing Among the Three Paths

The right approach depends on whether you’re still employed, how much you need, and how much tax cost you’re willing to absorb.

  • A 401(k) loan avoids income tax and penalty entirely, up to $50,000, but must be repaid, and job loss can trigger a full tax bill on the balance. It’s the strongest option when your employment is stable.
  • A 401(k)-to-IRA rollover followed by a homebuyer distribution avoids the 10% penalty on the first $10,000 but still leaves you owing income tax on the withdrawal. It usually requires separating from your employer first, so it fits people who have already left their job.
  • A 401(k) hardship withdrawal is available while employed and allowed for a home purchase, but it carries both income tax and the 10% penalty and cannot be repaid or rolled over. Treat it as a last resort.

For most people saving for a down payment inside a 401(k), the loan option does the most work. The $10,000 penalty exception has not been adjusted for inflation since 1997, and a $1,000 penalty savings rarely justifies the complexity of a rollover when a plan loan is available.