For 2024, you can contribute up to $23,000 to a 401(k) unless you're 50 or older, in which case you can contribute an additional $7,500, or $30,500 total. You can also contribute up to $7,000 to an IRA unless you're 50 or older—in that case, you can contribute an additional $1,000, or $8,000 total.