Mortgage lenders allow you to borrow from your 401(k) for a home down payment, and because you are borrowing from yourself, they don't count the 401(k) repayment in your debt-to-income ratios. However, YOU need to consider the payment, because you must be certain that you can afford it.
Many employers allow homebuyers to borrow against the funds in their 401(k) plans. And because you're borrowing from yourself, it can be a less-expensive source of funds. However, this strategy also has a couple of downsides.
First, you can't contribute to the account (your retirement!) while you have a balance against it. If your employer matches contributions, this can be even more costly.
Second, if you lose your job, you typically must repay the loan within 60 days or you get hit with a massive tax bill -- your balance gets taxed as income, plus a 10 percent penalty.
Third, you may find yourself forced to turn down better job opportunities because you can't afford to leave your current job.
Before turning to your 401(k) for your down payment, I recommend checking out down payment assistance programs (DPA) https://themortgagereports.com/33553/complete-guide-to-down-payment-assistance-in-the-usa
In addition, consider programs with lower down payment requirements, which make the 401(k) loan less risky for you. https://themortgagereports.com/30204/low-down-payment-mortgage-options-you-have-never-heard-of