If your work-based retirement plan allows loans, you typically can borrow up to the lesser of 50% of your vested balance or $50,000. Most loans must be repaid within five years, but if the money is used to purchase a primary residence, the repayment period may be longer. The...