CalcUnit Logo

How to Calculate 401k Contribution

Calculate 401k contribution limits, employer match, and projected balance.

The Formula

balance = contributions * (1+r)^n

The 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:

VariableTypeExample value
Annual SalaryInput (you provide)$75,000
Your ContributionInput (you provide)10 %
Employer Match RateInput (you provide)50 %
Employer Match CapInput (you provide)6 %
Current BalanceInput (you provide)$25,000
Years to RetirementInput (you provide)30
Expected Annual ReturnInput (you provide)7 %
Your Annual ContributionResult (calculated)—
Employer Annual ContributionResult (calculated)—
Total Annual ContributionResult (calculated)—
Projected Retirement BalanceResult (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Annual Salary, Your Contribution, Employer Match Rate, Employer Match Cap, Current Balance, Years to Retirement, Expected Annual Return.
  2. 2Substitute your known values into the formula: balance = contributions * (1+r)^n.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 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 SalaryYour Annual ContributionEmployer Annual ContributionTotal Annual ContributionProjected Retirement Balance
$20,0002000.00600.002600.00296348.95
$40,0004000.001200.005200.00592690.29
$60,0006000.001800.007800.00889039.23
$80,0008000.002400.0010400.001185388.18
$90,0009000.002700.0011700.001333558.85
$100,00010000.003000.0013000.001481729.52
$200,00020000.006000.0026000.002963466.65
$300,00030000.009000.0039000.004445196.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

401kretirementcontributionemployer match

Use the Interactive Calculator

Skip the manual math — get instant results with our free 401k Contribution calculator.

Open Calculator

Related Calculators