The IRS limits the maximum loan amount to the lesser of 50% of your vested account balance or $50,000.