How to Calculate 401k Contribution
Calculate 401k contribution limits, employer match, and projected balance.
The Formula
balance = contributions * (1+r)^nThe 401k contribution formula uses the mathematical relationship: balance = contributions * (1+r)^n. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the 401k contribution formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Annual Salary | Input (you provide) | $75,000 |
| Your Contribution | Input (you provide) | 10 % |
| Employer Match Rate | Input (you provide) | 50 % |
| Employer Match Cap | Input (you provide) | 6 % |
| Current Balance | Input (you provide) | $25,000 |
| Years to Retirement | Input (you provide) | 30 |
| Expected Annual Return | Input (you provide) | 7 % |
| Your Annual Contribution | Result (calculated) | — |
| Employer Annual Contribution | Result (calculated) | — |
| Total Annual Contribution | Result (calculated) | — |
| Projected Retirement Balance | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Annual Salary, Your Contribution, Employer Match Rate, Employer Match Cap, Current Balance, Years to Retirement, Expected Annual Return.
- 2Substitute your known values into the formula: balance = contributions * (1+r)^n.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive 401k Contribution Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: annual salary = $40,000, with the other inputs at the typical values from the variables table above. Substituting into the formula gives your annual contribution = 4000.00, employer annual contribution = 1200.00, total annual contribution = 5200.00, projected retirement balance = 592690.29. These numbers are solved by the same engine that powers the 401k Contribution calculator, so you can reproduce them exactly by entering the same inputs there.
| Annual Salary | Your Annual Contribution | Employer Annual Contribution | Total Annual Contribution | Projected Retirement Balance |
|---|---|---|---|---|
| $20,000 | 2000.00 | 600.00 | 2600.00 | 296348.95 |
| $40,000 | 4000.00 | 1200.00 | 5200.00 | 592690.29 |
| $60,000 | 6000.00 | 1800.00 | 7800.00 | 889039.23 |
| $80,000 | 8000.00 | 2400.00 | 10400.00 | 1185388.18 |
| $90,000 | 9000.00 | 2700.00 | 11700.00 | 1333558.85 |
| $100,000 | 10000.00 | 3000.00 | 13000.00 | 1481729.52 |
| $200,000 | 20000.00 | 6000.00 | 26000.00 | 2963466.65 |
| $300,000 | 30000.00 | 9000.00 | 39000.00 | 4445196.17 |
How each result changes as annual salary changes, holding the other inputs constant.
Practice Problems
1. Standard match: With Annual Salary $75,000, Your Contribution 10%, Employer Match Rate 50%, Employer Match Cap 6%, Current Balance $25,000, and 2 more more inputs, what are the results?
Answer: The calculator returns Your Annual Contribution $7,500.00, Employer Annual Contribution $2,250.00, Total Annual Contribution $9,750.00, Projected Retirement Balance $1,111,299.04 for Annual Salary $75,000, Your Contribution 10%, Employer Match Rate 50%, Employer Match Cap 6%, Current Balance $25,000, and 2 more more inputs.
2. Annual Salary $125,000, Your Contribution 15%, Employer Match Rate 100%, Employer Match Cap 4%, Current Balance $50,000, and 2 more more inputs — work it out, then check the answer.
Answer: With Annual Salary $125,000, Your Contribution 15%, Employer Match Rate 100%, Employer Match Cap 4%, Current Balance $50,000, and 2 more more inputs, the results are Your Annual Contribution $18,750.00, Employer Annual Contribution $5,000.00, Total Annual Contribution $23,750.00, Projected Retirement Balance $1,167,127.17.
Frequently Asked Questions
What is the formula for 401k contribution?
The formula is: balance = contributions * (1+r)^n. Calculate 401k contribution limits, employer match, and projected balance.
What values do I need to calculate 401k contribution?
You need annual salary, your contribution, employer match rate, employer match cap, current balance, years to retirement, expected annual return. The calculator produces your annual contribution, employer annual contribution, total annual contribution, projected retirement balance from those inputs.
What is the 401k contribution when annual salary is $40,000?
With annual salary = $40,000, the result is your annual contribution = 4000.00, employer annual contribution = 1200.00, total annual contribution = 5200.00, projected retirement balance = 592690.29. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free 401k Contribution calculator.
