Generally, an individual must be 59 ½ or older to withdraw from a 401k. If funds are withdrawn before that age, a 10% penalty may be applied. Some exceptions to this rule include first-time home purchases, medical expenses, and certain educational costs. Funds withdrawn from a 401k are taxed as ordinary income.