How a 401(k) grows over time
A 401(k) is an employer-sponsored retirement account where you contribute pre-tax dollars from your paycheck, and your employer may add matching contributions. The balance grows through investment returns (typically in mutual funds or target-date funds you select). This calculator projects your future balance by combining your annual contributions, employer match, and compound investment growth.
The power of a 401(k) lies in three components: your contributions, your employer's free match, and decades of investment returns. Even small contributions grow significantly when compounded over 20, 30, or 40 years. The employer match is particularly valuable—it's immediate extra return on your contribution.
The formula
FV = (Annual Contribution + Employer Match) × [((1 + r)^n − 1) / r] × (1 + r)
Where:
- Annual Contribution = Salary × Your contribution %
- Employer Match = Salary × Employer match % (usually capped at your contribution %)
- r = Expected annual return (as a decimal)
- n = Number of years
- FV = Future value of your 401(k)
This formula assumes contributions and salary remain constant, and returns compound annually. In reality, salaries typically increase, which would boost the balance further.
Worked example
Let's project a 401(k) for someone with these details:
- Annual salary: $75,000
- Your contribution: 6%
- Employer match: 4% (they match dollar-for-dollar up to 4%)
- Expected return: 7% per year
- Years to retirement: 25 years
Step 1: Calculate annual contributions
- Your annual contribution: $75,000 × 6% = $4,500
- Employer match: $75,000 × 4% = $3,000
- Total added each year: $7,500
Step 2: Apply compound growth Using the formula with r = 0.07 and n = 25:
- Growth factor: [((1.07)^25 − 1) / 0.07] × 1.07 ≈ 63.25
- Future value: $7,500 × 63.25 ≈ $474,375
After 25 years of contributions and 7% annual returns, your 401(k) balance reaches approximately $474,000. Of this, you contributed $112,500 (6% × $75,000 × 25 years), your employer added $75,000 (4% × $75,000 × 25 years), and the remaining ~$287,000 came from investment growth.
Tips for maximizing your 401(k)
Capture the full match: If your employer offers a match, contribute at least enough to receive it all. Leaving free money on the table is leaving retirement savings on the table.
Increase contributions with raises: Whenever you get a salary increase, boost your 401(k) contribution by a percentage of that raise. You'll barely notice the difference in take-home pay, but your retirement balance will grow significantly.
Review your investment allocation: Your 401(k) balance depends partly on the funds you choose. Younger workers can typically afford more stock exposure (higher risk, higher long-term returns); those nearing retirement may shift toward bonds (lower volatility).
Adjust your return assumption: If you're uncertain about the 7% figure, run the calculator with 5% and 9% to see a realistic range. Market returns vary year to year, so a range is more honest than a single number.
This calculator provides an estimate based on your inputs and assumptions. It does not account for salary increases, tax implications, or changes in contribution rates. Consult a financial advisor for personalized retirement planning.