Borrowing from your 401(k) may be an alternative to a hardship withdrawal. The IRS limits the amount that an individual can borrow to 50 percent of their vested account balance or $50,000, whichever is less.