Get your taxes done using TurboTax

Did you simply sell from within the 401k, in which case there is no tax... or did you take a distribution, in which case there is ordinary income tax fo be paid 

 

on the date you took a taxable distributed from the 401k the state you were living in on that date is where any state tax would be owed.