401k withdrawals are actually taxed at a different rate than regular capital gains. it's a 20% federal tax rate on all cash withdrawn not just the gains. and there's another 8% for my state and then a 10% penalty because im under 65 for a total effective rate of about 38% on all cash withdrawn.