Hardship withdrawals are allowed when there is an immediate, pressing need. The amount on these withdrawals is dependent on how much you need for the financial situation, and the IRS will tax them. 401(k) loans are better for cases where the financial need is not dire. You'll be able to borrow half of whatever is in your account, but you will be required to pay it back.