Plan participants under 50 can contribute up to $20,500 a year to a 401(k) in 2022, and $6,500 more if they are over 50 as catch-up contributions.