You Can Borrow From a 401(k) to Buy a House, but You Can't Take All of It

A 401(k) is money your job sets aside for retirement, and some jobs let you borrow from it when you buy a house. You have to pay that money back, and you can't borrow the whole account. The most is usually half of the 401(k) money that already belongs to you, and it cannot be more than $50,000. Because the loan is for the house you live in, you might get more than five years to pay it back.

Published on

Share:

A 401(k) is money your job sets aside for retirement, and some jobs let you borrow from it when you buy a house. You have to pay that money back, and you can't borrow the whole account. That is the part that gets lost when a down payment feels short and the retirement account looks like cash you can spend. The most is usually half of the 401(k) money that already belongs to you, and it cannot be more than $50,000. Because the loan is for the house you live in, you might get more than five years to pay it back.

Borrowing the money and paying it back on time is different from cashing the account out. Cashing it out can be taxed. A loan that follows the rules is the version you pay back into the account, and the house you live in changes how long that payback can last, not how much of the account you can take.

A note before the numbers: This is general information, not a plan for one person or one job. A regular 401(k) and a Roth 401(k) use the same borrowing amount here. Your job can refuse loans, choose a lower amount, or charge a fee, and the loan rules from your plan are the ones that apply to you. The tax if you do not pay the loan back can differ when some of the money is Roth, and that is the only place the two accounts part ways in this post.

The most is the smaller of two numbers

The money that already belongs to you—what plan administrators call your vested balance—is the part you would keep if you left the job today. Money the employer added, which you would give up by leaving before you have stayed long enough, does not count toward the loan. Take half of the part that belongs to you, and then look at $50,000. The most you can borrow is the smaller of those two numbers, and your job can choose a number lower than that, or decide not to offer a loan at all.

If $80,000 already belongs to you, half is $40,000. That is under $50,000, so $40,000 is the most. If $200,000 already belongs to you, half is $100,000, but $50,000 is smaller, so you stop at $50,000. A larger balance still stops there. These two amounts are an example, not a promise of what your account will show.

There is a small opening in the tax rules for a modest account. If half of what belongs to you is under $10,000, a plan is allowed to lend up to $10,000, but not more than the amount that belongs to you. A plan does not have to offer that opening, so the number to expect is still half of what belongs to you, and not more than $50,000, unless the plan tells you otherwise.

Two example accounts. The smaller number is the most you can borrow.
Two examples. If $80,000 already belongs to you, half is $40,000, and that stack of four coins sits under a $50,000 ceiling. If $200,000 already belongs to you, half would be $100,000. Five coins are cut off above the ceiling, and five coins remain, so you stop at $50,000. Each coin is $10,000. A job can set a lower amount.Half, or $50,000, whichever is smaller$80,000 already yoursHalf is $40,000$50,000 ceilingStays under the ceilingMost: $40,000You can borrow the full half$200,000 already yoursHalf would be $100,000$50,000 ceilingCapped by the ceilingMost: $50,000The extra $50,000 is cut offThe smaller number is the most you can borrowBoth are examples. A job can set a lower amount.

A loan you already paid off can still count

Paying an old loan off does not give you a fresh $50,000 the next time you borrow. The 12 months before the day the new loan is made still count. Look through those 12 months and find the highest amount you still owed at any point. That high point is what comes off the $50,000. If the old loan is already paid down to nothing, the whole high point comes off. If you still owe part of it on the day the new loan is made, only the part you have paid down comes off, because the part you still owe is already a loan. If that sounds complicated, the example below shows the paid-off case.

Say the highest amount you still owed in the 12 months before the day the new loan is made was $30,000, and you have paid it off, so you owe nothing on that day. The whole $30,000 comes off the $50,000, and $20,000 is what is left of that $50,000. That $20,000 is about how much you are allowed to borrow after the old loan. It does not look at how big the account is. The half is a different limit. It is half of the money that already belongs to you, and you usually cannot borrow more than that half, no matter what is left of the $50,000. You do not cut the $20,000 in half, and you do not add the two numbers. The loan has to fit under both, so you use whichever is smaller.

If half of the money that already belongs to you is $12,000, the account limit is $12,000. That is smaller than the $20,000 left of the $50,000, so you stop at $12,000. If half of the money that already belongs to you is $40,000, the account would allow $40,000, but only $20,000 is left of the $50,000, so you stop at $20,000.

Some jobs have more than one retirement plan, such as two 401(k) plans or a 401(k) and another plan. For this limit, those plans are counted together, so you do not get a separate $50,000 from each one.

An example where the old loan is paid off and still lowers the next one.
Example. A stack of coins marks a $30,000 loan, the highest amount still owed in the 12 months before the new loan is made, and a stamp says it is paid off so you owe $0 today. On the measuring stick, that $30,000 still comes off the $50,000, which leaves $20,000. You do not cut that $20,000 in half. You compare it with half of the money that belongs to you and use whichever is smaller. If that half is $12,000, you stop at $12,000. If that half is $40,000, the $20,000 is smaller, so you stop there.Paid off, and the old loan still comes offHighest still owed in the 12 months before the loan is made: $30,000Paid off$0 owedYou owe nothing today.The old $30,000 stillshortens the next loan.$20,000 leftOld $30,000 still counts$20,000$30,000$50,000 minus the old $30,000 leaves $20,000 here.You do not cut this $20,000 in half.Compare that half with this $20,000 and use the smaller one.If that half is $12,000, you stop at $12,000.If that half is $40,000, the $20,000 is smaller, so you stop there.This is an example.

You pay it back, and the house can add years

You pay the loan back into your own account. The payments have to be spread out in amounts that stay about the same size, and you have to pay at least every three months. Many jobs take the payment out of the paycheck so the schedule does not depend on you remembering a due date. A loan that is not for the house you live in has to be paid off within five years.

Paying the money back is not the same as putting new retirement savings in for the year. The payback does not raise the amount you are allowed to contribute. The interest you pay goes back into the account, which can make the loan feel free, but the borrowed money is out of the investments while you repay it, and that interest is usually not a tax write-off the way interest on a bank mortgage can be.

The home you live in can lengthen the payback

If the loan is used to buy the home you will live in, the five-year limit can come off, and the plan can give you longer to pay it back. The plan decides how much longer. That extra time is for buying that home. It is not for a vacation home, and it is not for refinancing a home you already own. Replacing the mortgage on a home you already have is a different loan, which is the choice described in how a refinance replaces a mortgage, while a recast only redraws the payment. Borrowing from the 401(k) does not do either of those jobs.

The extra years do not increase the dollars. An example loan of $40,000 is still $40,000 if the reason is the house you live in. What can change is the number of years those same dollars are spread across, and only when the plan allows the longer payback.

One employer's 401(k), kept at Vanguard, shows both parts of that rule. The first capture puts the two loans side by side. The amount available matches, so the home loan does not add dollars. It limits the purchase to the main home, and this plan adds paperwork the other loan does not ask for. The second capture opens that home loan and shows the years this employer allows.

Employer 401(k) at Vanguard: two loan choices

Swipe horizontally or scroll to the right to view the full capture.

Partial capture of two loan choices in an employer's 401(k) kept at Vanguard. General purpose loan: can be used for any reason, typically paid back within 5 years, with a Start this loan button. Amount available is covered. No additional requirements are listed. Principal residence loan: can be used only to purchase a primary residence, the main home, not a secondary or vacation home, and cannot be used to refinance a home you already own, with a Start this loan button. Amount available is covered. Additional requirements: a copy of the mortgage or sale documents, and print and mail a signed copy of the loan application after completing it online.
This is a partial capture from one employer's 401(k), and that plan is kept at Vanguard. It is here to show how this plan describes the two loans, not the whole account. The account is at Vanguard. The employer sets these rules, so another employer, including another employer with Vanguard, can differ. The general-purpose loan can be used for any reason, and the maximum payback is typically five years. The principal-residence loan can be used only to buy the main home. It is not for a second home or a vacation home, and it is not for refinancing a home you already own. This plan also asks for a copy of the mortgage or sale documents, and for a signed application to be printed and mailed. Both loans showed the same amount available. Those amounts are covered because they belong to one account. The years for the home loan are in the next capture.

Same plan: the home loan runs from 1 to 10 years

Swipe horizontally or scroll to the right to view the full capture.

Partial capture of a principal residence loan in an employer's 401(k) kept at Vanguard. The employer name and the available amount are covered. The principal residence loan is selected. The text says the loan can only be used to purchase a primary residence, the main home, not a secondary or vacation home, and cannot be used to refinance a home you already own. The interest rate is 8 percent. Payment frequency is 1 payment every other week. The borrow box shows an example of $1,000.00, and the slider ends are covered. The term says you can choose anywhere from 1 to 10 years, in 1-year increments, and 1 year is entered. The payment box says over 12 months, $40.08 per payment. The summary lists a requested loan amount of $1,000.00, a fee of $50.00, an amount you'll receive of $950.00, total interest of $92.08, and a final loan amount of $1,092.08. A note says you pay yourself back, with interest, through automatic paycheck deductions.
This is another partial capture from the same employer's 401(k), kept at Vanguard. The principal-residence loan is the one selected. The employer name and the amount available are covered. This plan lets that loan be paid back in anywhere from 1 to 10 years, in steps of one year. Ten years is the top of this plan's control. It is not a number the tax rules require, and another employer can choose a different top, or not offer the longer payback at all. The number entered here is 1 year. The payment box is the math for a $1,000 example over those 12 months, not a quote for 10 years. This plan's rate on that example is 8 percent, the payment comes out every other week, and a $50 fee comes off the $1,000 before the rest is received. The last line says the payback, including interest, comes out of the paycheck.

The figure below keeps an example at $40,000 either way. The years are the part that can change, and only when the plan allows the longer payback.

The example dollars stay the same. The years are what can change.
In this example the loan is $40,000 either way. The coin stacks match. A loan that is not for the home you live in is paid back in about five years, shown as five calendar pages. A loan used to buy the home you live in can take longer. On this plan the top is 10 years, shown as ten calendar pages. The dollars do not increase.Same dollars. The house can add years.Not the home you live inAbout five yearsThe home you live inUp to 10 years on this plan1234512345678910$40,000$40,000Paid back within five yearsMore years, if the plan allowsThe example stays $40,000. The years are what can change.Your job decides whether the longer payback is offered.

The bank's mortgage is a separate loan

The mortgage from a bank is built from the price of the house, the interest rate, and the number of years, which you can sketch with a mortgage calculator. That loan can include taxes, insurance, and other pieces of the monthly bill. The 401(k) loan does not replace it. You are borrowing retirement money and paying it back into the same account, while the bank loan is a debt against the house.

A bank mortgage also splits each payment between interest and the amount you still owe, which is explained in how amortization works on a mortgage and a car loan. A 401(k) loan has its own payback schedule. It is not that mortgage split, and it is not a second monthly bill added on top of the interest rate the bank already quoted.

If the payback stops, the unpaid part can be taxed

If a payment is missed, the plan can give you time to catch up, often through the end of the following quarter. After that window, the unpaid amount can be treated as money you took out of the account, and then it can be taxed as income. If you are under 59 and a half, an extra 10 percent tax can apply on top of the income tax, unless a tax exception fits your situation. The loan can also remain something you still owe the plan, so the tax and the debt are not always a swap.

Leaving the job can move the due date up. The plan can ask you to pay the rest back when you leave, instead of letting the old paycheck deduction continue. If the plan then pulls the unpaid loan out of the account, you may have until the deadline for that year's tax return, including an extension, to move that amount into another retirement account and avoid the tax. A default while you still work is harder to repair, because that unpaid amount is generally taxed, and moving the money to another retirement account later does not undo the tax.

A Roth 401(k) uses the same amount

A Roth 401(k) and a regular 401(k) let you borrow the same amount. You take half of the money that already belongs to you, and that amount cannot be more than $50,000. Roth money does not add a second $50,000 on top of that.

Roth and a regular 401(k) differ here only if you do not pay the loan back. Say $5,000 is never paid back. If that $5,000 came from a regular 401(k), the income tax on it was put off when the money went in, so it can be taxed now. If that $5,000 is money you contributed to a Roth 401(k), the income tax was already taken from your pay in the year you contributed, so it is not taxed again.

Your job can be stricter than the tax rules

The tax rules set a top, and that top is the most you can borrow: half of the money that already belongs to you, and not more than $50,000. Your job can stay under that. It can decline to offer loans, require a minimum amount, charge a fee to open the loan or to keep it open, ask a spouse to sign, or skip the longer payback even when you are buying the home you live in. Those choices are not the same at every job. Two people with the same account balance can be offered different loans because they work for different employers.

Before you count on a number for a down payment, read the loan rules your job actually uses. The half and the $50,000 are that top, the most the tax rules allow. The plan explains whether you can borrow at all, what it will cost to set the loan up, and how many years you get if the money is for the house you live in.

Before you borrow

  • You can't borrow the whole 401(k) to buy a house, and you have to pay the money back.
  • The most is usually half of the money that already belongs to you (your vested balance), and not more than $50,000. A job can set a lower amount.
  • A loan from the 12 months before the new loan is made can shrink the next one, even after you pay it off.
  • Buying the home you live in can give you more years to pay the loan back. Those extra years do not increase the amount you can borrow, and they are not for refinancing a home you already own.
  • If you don't pay the loan back as the plan requires, the unpaid amount can be taxed. A Roth 401(k) uses the same borrowing amount, and the tax is the only part that can differ.

Shaleen Shah is the Founder and Technical Product Manager of Definitive Calc™. He is also a Sr. Analyst of SEO Operations at JD Power, specializing in systems and data behind modern search and information discovery.

Driven by technical rigor, Shaleen breaks down the practical math of whatever life brings, from homeownership nuances to long-term wealth building. He has a decade of investing experience, and the calculators run on a stateless, database-free architecture anyone can use without an account.

Continue Reading

Explore more insights on finance and investing

FinanceReal Estate

October 2, 2026

How the Interest Rate and the APR Differ on a Home Loan, a Car Loan, and a Credit Card

On a home loan, the APR can be higher than the interest rate. On a car loan, the two numbers are often the same. On a credit card, the APR is the interest rate, and cash can use a higher one than a purchase.

Read article
Finance

October 1, 2026

Why a High-Yield Savings Account Can Add Less Interest Than You Expected

The percent on a high-yield savings account is for a full year if that percent stays put and the money stays in. Interest is usually based on how much was in the account each day. A deposit that arrives late in the month can earn less than you expected.

Read article
Real EstateFinance

September 23, 2026

The First Home Insurance Check Can Be the Worn Value. A Second Check Can Come After the Repair.

On many home insurance policies, the first check is the worn value minus the deductible. If the policy pays to replace the damage, the held-back part can come in a second check after the work is done and the receipts are in.

Read article
Real EstateFinance

September 22, 2026

An Escrow Surplus Check in Harris County, Texas, Is Usually Not Extra Money

In Harris County, Texas, a surplus check is usually leftover after the tax bills, not extra sitting in the account today. Not true of every loan.

Read article
Real EstateFinance

September 19, 2026

In Texas, Homeowners and Landlord Insurance Usually Exclude Flood. That Is Why Flood Is Its Own Policy.

In Texas, standard homeowners and landlord policies usually exclude flood. A burst pipe is not a flood. You might pay flood in escrow, or once a year.

Read article
Real EstateFinance

August 19, 2026

A Mortgage Recast Reprints the Monthly Coupon. A Refinance Tears the Loan Up.

A mortgage recast applies extra principal and redraws the monthly on the original loan, at the original rate and remaining term. A refinance replaces the mortgage. See when extra principal should redraw the payment, and when the mortgage itself should be replaced.

Read article

Try Our Finance Calculators

Put these insights into practice with our free financial calculators

0% APR Payoff Planner

Optimize balance transfers & simulate debt payoff. Build a battle plan using the avalanche method to see how much time and money you'll save.

Try calculator

Compound Interest Calculator

Calculate compound interest on savings, investments, and loans. See how your money grows over time.

Try calculator

Currency Converter

Convert between currencies using real-time exchange rates. Support for 100+ world currencies.

Try calculator

Debt-to-Income (DTI) Calculator

Calculate both front-end and back-end DTI ratios to see your bank approval odds and true net affordability.

Try calculator

Dividend Reinvestment Calculator (DRIP)

Model share accumulation, yield-on-cost, and the dividend flywheel. Professional-grade DRIP auditor with tax-drag simulation.

Try calculator

Margin Loan & Portfolio Risk Calculator

See exactly how much your stocks can drop before triggering a margin call. Calculate your safety net and protect your portfolio from a market crash.

Try calculator

Mortgage Calculator

Calculate your monthly mortgage payments with taxes, insurance, and HOA fees included. Get a detailed amortization schedule.

Try calculator

Paycheck Calculator

Calculate your true take-home pay after federal taxes, state taxes, Social Security, and Medicare. Plan your budget with confidence.

Try calculator

ROI Calculator

Calculate Return on Investment (ROI) for your investments and business ventures. Understand your profit margins.

Try calculator

True Annualized Return Calculator

Calculate your true annualized investment returns. Easily switch between automated CAGR and IRR math to audit your portfolio with inflation, fees, and cash flows included.

Try calculator

True Effective Hourly Rate Calculator

Stop taking your salary or hourly wage at face value. Calculate your true net hourly pay after commute time, unpaid hours, work expenses, and taxes.

Try calculator

The information provided in this blog post is for educational and informational purposes only and does not constitute financial, investment, or legal advice. Always consult with a qualified professional before making any financial decisions. Past performance is not indicative of future results.