Question: is social security taken out before 401k?
Answer: Contributions to a 401k are subject to social security and medicare tax, but not to ordinary income tax. So your W-2 Box 1 amount will be lower than your actual gross salary by the amount of your 401k contributions and any Sect. 125 or "cafeteria" plan benefits.