Can You Buy Real Estate With a 401k? Loans, Withdrawals, and Rollovers

Yes, you can use your 401k to buy real estate, and federal tax law gives you three real routes: borrow from the account, take a distribution, or hold the property directly inside a self-directed retirement plan. Buying real estate with a 401k costs nothing in taxes if you use a loan correctly, can cost 30% or more of the withdrawn amount if you take cash, and can preserve the full tax shelter if you qualify to purchase inside a Solo 401k. The right choice depends on your age, your job stability, whether the home is your primary residence, and whether you have self-employment income.

Borrowing From Your 401k

A 401k loan is the cheapest way to move retirement money into a real estate purchase. You borrow from your own balance, repay yourself with interest, and owe the IRS nothing as long as you follow the schedule. The maximum is the lesser of $50,000 or 50% of your vested balance.1eCFR. 26 CFR 1.72(p)-1 – Loans Treated as Distributions With $80,000 vested, your ceiling is $40,000.

One rule catches people off guard. The $50,000 cap is reduced by the highest outstanding balance you carried on any plan loan during the 12 months before the new one.2Internal Revenue Service. Borrowing Limits for Participants With Multiple Plan Loans If you borrowed $30,000 last year and paid it down to $10,000, your new maximum drops to $30,000 even when your vested balance would support more. Avoid small plan loans in the year before a real estate purchase.

Standard 401k loans require level payments at least quarterly and must be paid off within five years. Buying a primary residence unlocks a specific exception: the plan can extend repayment to 15 or even 30 years, similar to a mortgage schedule.1eCFR. 26 CFR 1.72(p)-1 – Loans Treated as Distributions Interest is usually set at the prime rate plus one percent. Missed payments turn the outstanding balance into a deemed distribution, taxable as income plus a 10% early withdrawal penalty if you’re under 59½.

Not every plan allows loans, and not every plan that allows loans permits the extended primary-residence term. Check your Summary Plan Description before counting on this money.

What Happens if You Leave Your Job

This is where 401k loans get dangerous for buyers. Most plans require full repayment shortly after separation. If you can’t pay, the plan treats the remaining balance as a distribution and reports it on Form 1099-R.3Internal Revenue Service. Retirement Topics – Plan Loans You owe income tax on the whole unpaid amount, plus the 10% penalty if you’re under 59½.

There is one escape hatch. You can roll the unpaid loan balance into an IRA or another eligible retirement plan by the due date, including extensions, for filing your federal tax return that year.3Internal Revenue Service. Retirement Topics – Plan Loans Leave your job in 2026 and you’d have until roughly mid-October 2027 to come up with the cash and complete the rollover.4Internal Revenue Service. Plan Loan Offsets If your industry is volatile, layoffs are on the horizon, or a career change is likely, factor that risk in before signing loan paperwork.

Taking a Cash Withdrawal

If your plan permits it, you can take an outright distribution rather than a loan. Most plans restrict in-service distributions to participants who have reached 59½ or qualify for a hardship. After you separate from the employer the restriction usually lifts regardless of age.

A standard distribution is an eligible rollover distribution, which means the plan administrator withholds 20% for federal income tax before releasing the money. Withdraw $100,000 and you receive $80,000. The full $100,000 counts as taxable income for the year, and if you’re under 59½ a 10% early withdrawal penalty applies on top of the income tax.5Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts The penalty alone would be $10,000 on that $100,000 withdrawal. Because these distributions are rollover-eligible, you can reverse course within 60 days by depositing the money into an IRA.

Hardship Withdrawals for a Home Purchase

A hardship withdrawal is a separate category with tighter rules. It requires an immediate and heavy financial need, and your plan documents must specifically authorize it. The IRS recognizes several safe-harbor categories that automatically qualify, including costs of purchasing your principal residence. This covers a down payment and closing costs but not ongoing mortgage payments.6Internal Revenue Service. Retirement Topics – Hardship Distributions Preventing eviction or foreclosure on your primary home is a separate qualifying reason.7Internal Revenue Service. Retirement Plans FAQs Regarding Hardship Distributions

A hardship withdrawal cannot be rolled over into an IRA or any other retirement plan under any circumstances, so the tax hit is permanent.7Internal Revenue Service. Retirement Plans FAQs Regarding Hardship Distributions The full amount is ordinary income, and the 10% early withdrawal penalty applies if you’re under 59½.5Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts The 20% mandatory withholding does not apply because hardship distributions are not eligible rollover distributions. Withholding is voluntary, so more cash reaches you at the closing table, but the full tax bill still lands in April.

Buying Property Inside a Solo 401k

Business owners and independent contractors without full-time W-2 employees can use a strategy that avoids taxes entirely: buying the property inside a Solo 401k. The 401k trust takes title, not you personally. The trust signs the purchase contract, and all rental income flows back into the trust and continues growing tax-deferred. As trustee, you can write checks directly from the plan’s bank account, a setup often called checkbook control.

The tradeoff is strict compliance with prohibited transaction rules. The property must be held purely for investment. You cannot live in it, vacation there, let family members use it, or perform repairs yourself. Every property expense, including taxes, insurance, maintenance, and HOA fees, must be paid from the Solo 401k’s own bank account. Paying a bill from your personal checking account can be treated as a contribution of personal funds and trigger a prohibited transaction.

IRC Section 4975 bars direct or indirect transactions between the plan and disqualified persons, a category that includes you, your spouse, your parents, your children, and their spouses. The penalty is an excise tax of 15% of the amount involved for each year the violation goes uncorrected, and if you still haven’t fixed it by the end of the taxable period the penalty jumps to 100% of the amount involved.8Office of the Law Revision Counsel. 26 USC 4975 – Tax on Prohibited Transactions Letting a family member stay in the rental for a weekend can carry consequences far larger than the value of the favor.

Leveraged Purchases and the UDFI Exemption

If the Solo 401k doesn’t have enough cash to buy outright, it can take a mortgage, but the financing must be non-recourse. The lender’s only remedy on default is the property itself; the lender cannot pursue you personally or any other plan assets. A personal guarantee would be a prohibited transaction because you’d be extending credit to the plan.

This is where the Solo 401k has a decisive edge over a self-directed IRA. When an IRA uses mortgage financing, income attributable to the leveraged portion triggers Unrelated Debt-Financed Income, a type of Unrelated Business Taxable Income taxed at trust rates. Qualified employer plans, including Solo 401k trusts, are specifically exempt under IRC Section 514(c)(9).9Office of the Law Revision Counsel. 26 USC 514 – Unrelated Debt-Financed Income The exemption holds as long as the plan doesn’t lease the property back to the seller or to any disqualified person.

Rolling Over to a Self-Directed IRA

If you’re a W-2 employee or you have full-time staff, you can’t use a Solo 401k. The alternative is to roll your 401k balance into a self-directed IRA and buy through the IRA. This generally works after you’ve left the employer sponsoring the 401k, since most plans don’t allow in-service rollovers of the full balance. The rollover itself is tax-free if you complete it within 60 days or arrange a direct trustee-to-trustee transfer.

The IRA custodian holds legal title in a format like “ABC Custodian FBO [Your Name] IRA.” You select the property and negotiate the deal, but the custodian signs the closing documents. The same prohibited transaction rules apply: no personal use, no dealings with disqualified persons, and every expense paid from IRA funds.8Office of the Law Revision Counsel. 26 USC 4975 – Tax on Prohibited Transactions

The major disadvantage is the tax treatment of leveraged property. If the IRA takes out a non-recourse mortgage, rental income and capital gains attributable to the financed portion are subject to Unrelated Business Taxable Income. The IRA trustee files Form 990-T and pays tax at trust rates once gross unrelated business income reaches $1,000 or more.10Internal Revenue Service. Instructions for Form 990-T For all-cash purchases inside an IRA this isn’t a concern; for leveraged deals, the Solo 401k saves real money.

Paperwork and Steps

For a loan or withdrawal, start with your plan’s Summary Plan Description, available through your employer’s benefits portal or from human resources. Request a current vested balance statement at the same time. Submit the application through the plan administrator’s portal or by certified mail. Expect it to ask for the amount, the legal description of the property, and the expected closing date. Hardship withdrawals require documentation of the purchase price and evidence the funds are going toward a qualifying expense. Processing typically takes five to ten business days, and funds are released by electronic transfer or cashier’s check to the title company or escrow agent.

Distributions and deemed distributions from failed loans are reported on Form 1099-R, which you’ll need at tax time.11Internal Revenue Service. Instructions for Forms 1099-R and 5498 Keep loan documents, withdrawal confirmations, and closing paperwork together. The IRS can audit the transaction years later, and proving qualifying use is your responsibility.

For a Solo 401k or self-directed IRA purchase, the paperwork burden is heavier. You’ll need the trust or custodial agreement, a dedicated bank account in the plan’s name, a purchase contract executed by the trustee or custodian, and proof that every dollar of earnest money and closing costs came from plan funds. Many Solo 401k providers and IRA custodians publish real estate transaction checklists. Use one. A single mistake in how funds are titled or moved can turn the deal into a prohibited transaction and cost far more than the property is worth.