Can I Use My 401(k) to Buy a House?

So, you’re dreaming of homeownership and you’ve got a 401(k) sitting there, maybe with a decent balance. The question pops up: “Can I use my 401(k) to buy a house?” The answer is yes—but let’s slow down and talk through what that really means, the options you have, and the pitfalls that rarely get mentioned.

1. The Most Common Route: The 401(k) Loan

First up, the 401(k) loan. This is the path most people take if their plan allows it. You can typically borrow up to $50,000 or half your vested balance (whichever is less). You pay yourself back—with interest—through payroll deductions. Sounds simple, right?

But here’s the catch: if you leave your job (or lose it), you’ll have to pay back the loan fast (usually within 60-90 days). If you can’t, the outstanding balance is treated as a withdrawal, and you’ll owe income taxes plus a 10% penalty if you’re under 59½. Plus, while you’re paying yourself back, that money is missing out on potential investment growth.

2. What About Just Withdrawing the Money?

You can take money out of your 401(k) for a home purchase, but if you’re under 59½, you’ll owe regular income tax and a 10% early withdrawal penalty. There’s no “first-time homebuyer” exception for 401(k)s like there is for IRAs. After 59½, you can withdraw without penalty, but you’ll still pay income tax. But be careful, not every 401k allows for withdrawals before 59 ½.

There’s also the “hardship withdrawal” route, which some plans allow for buying a primary residence. But again, you’ll pay taxes, and usually the penalty, and you can’t put the money back.

3. Thinking About Buying Real Estate Inside Your 401(k)?

Here’s where it gets tricky—and risky. Some people with self-directed 401(k)s consider buying property inside the plan. Yes, it’s legal, but it’s loaded with complications:

You can’t live in it or rent it to family. The property must be a true investment, rented out to unrelated parties at market rates.

All expenses must be paid from the 401(k). Need a new roof? The money has to come from the plan. You can’t just write a personal check if the 401(k) is short—contribution limits apply, and you can’t “bail out” the plan if a big repair pops up.

No depreciation or capital gains break. When you sell, your profit is taxed as ordinary income when you withdraw it in retirement—not at the lower capital gains rate, and you can’t deduct depreciation along the way.

Legal liability is real. If someone gets hurt on the property, the 401(k) trust is the owner and gets sued. But as trustee, you could be personally liable if you didn’t maintain the property properly or breached your fiduciary duty. Insurance is a must, but it’s not a perfect shield.

UBTI and UDFI taxes. If you use a loan to buy the property, part of your rental income or gain could be hit with Unrelated Business Taxable Income (UBTI) or Unrelated Debt-Financed Income (UDFI) taxes—unless you’re using a Solo 401(k), which is generally exempt for real estate.

4. The Cash Flow Headache

Let’s say the furnace dies or the roof leaks and the repair bill is $20,000. If your 401(k) doesn’t have enough cash, you can’t just “top it off”—the IRS limits how much you can contribute each year. If you can’t cover the cost, you might be forced to sell the property, possibly at a bad time or a loss.

5. So, Should You Do It?

Most financial pros say: tread very carefully. For most people, borrowing from your 401(k) is less damaging than withdrawing, but both options shrink your retirement nest egg and risk your future security. Not to mention that buying a house breaks the Integrated 401k Administration. Many 401(k)s are integrated with payroll, employee benefits, and HR. This brings ease of administration as everything is connected. Looking to hire a new employee, an Integrated plan can notify the financial advisor of the new hire in real time so the financial advisor can enroll them into the 401k and help pick investments. Buying property breaks that integration as the property would have to be managed individually by the trustee.

6. Are There Better Alternatives?

Look for other ways to pick up real estate. Perhaps loan money to people. If they don’t pay, you can foreclose on the property. Or you can Save up outside your retirement plan if you can.

Bottom Line

Yes, you can use your 401(k) to buy a house, but it’s not as simple—or as smart—as it might sound. Weigh the long-term cost to your retirement, the tax and legal risks, and the practical headaches before you make a move. And definitely talk to a financial advisor or tax pro before you do anything.

Want to dig deeper?