Typically, you have five years to repay a 401(k) loan. However, if you’re using the loan to purchase a primary residence, that time frame may be extended. The exact time frame you’ll have for repayment will depend on your plan, but in some cases, it can last up to 25 years.
In either case, you must make payments on the loan at least quarterly and each payment must be of a similar size.