There are substantial penalties for doing this. Not only will you lose some of your invested money directly, but the tax consequences are very dire. It is almost never a good idea to cash out a 401(k) prematurely. Many 401(k)s will let you get a loan from the balance, which is almost always cheaper.