How does a 401(k) work?
When you enroll in your employer's 401(k) plan, you choose a contribution rate, the percentage of your salary that gets deposited into the account each pay period. That money is deducted from your paycheck before income taxes are applied, which lowers your taxable income for the year.
For example, if you earn $60,000 a year and contribute 10%, you're putting $6,000 into your 401(k) annually. But because those contributions are pre-tax, you're not actually losing a full $6,000 from your take-home pay -- the tax savings offset some of the difference.
Once the money is in your account, you invest it. Your plan will offer a menu of investment options, typically mutual funds, index funds, and target-date funds. Your money then grows tax-deferred, meaning you don't owe taxes on dividends, interest, or gains until you withdraw funds in retirement.