If you retire or lose your job when you're age 55 or older and maintain your 401(k) with your former company, you can take penalty-free withdrawals between ages 55 and 59 1/2. (This only applies to the 401(k) from the employer you just left.) This is known as the IRS Rule of 55.