How to work backward from a retirement balance with PMT, RATE and NPER

This is not tax, legal, or investment advice. The 5% is a sample rate, not a forecast, and the match in this sample is 0%. The $24,500 is the 2026 elective deferral used in the retirement calculator. Check your plan’s limit and your own match.

The first page for this calculator, How to build a retirement calculator with inflation in Excel, goes forward: a deposit, a rate, and a number of years give a balance. This page goes backward. You know the balance you want, and you ask which deposit, which rate, or how many years gets you there. The same four numbers are in every one of these formulas, so one formula can check another.

The four numbers

Put them in cells you can point at:

Cell What Value
B1 Deposit at each year end 24,500
B2 Yearly rate 5%
B3 Years 10

Type the 5% as a percent, so Excel stores 0.05. Do not type 5 and divide by 100 somewhere else.

Forward: the balance

FV adds each year-end deposit and its growth:

=FV(B2,B3,-B1)

The deposit goes in as a negative number, so the balance comes out positive. The result is $308,158.37. Put it in B5. The growth factor is =(1+B2)^B3, which is about 1.6289. Ten years of deposits are worth more than ten times one deposit because each deposit grows for a different number of years.

Backward: the deposit

PMT with a future value solves for the yearly deposit:

=PMT(B2,B3,0,-B5)

The present value is 0, because the account starts empty in this sample. The future value is the balance as a negative number. The result is 24,500. The balance you typed into B5 is the one from FV, so the deposit comes back exactly. If you type a rounded $308,158.37 into B5 instead of pointing at the cell, the last decimals of the answer can move by a fraction of a cent.

Backward: the rate

RATE finds the yearly rate that connects a deposit and a balance:

=RATE(B3,-B1,0,B5)

It returns 5.00%, displayed with a percent format. Behind the format the value is 0.05 to many decimals. RATE searches for the answer, so the last digits can differ from a clean 0.05. Round the display, not the cell.

Backward: the years

NPER counts how many deposits it takes:

=NPER(B2,-B1,0,B5)

It returns 10. NPER does not round. If a goal falls between two year ends, it returns a decimal, and you read that as “more than that many deposits”. Deposits in this sample happen once a year, so a decimal is a signal to round up and look again.

Use one to check the others

The four functions are one equation. If FV, PMT, RATE, and NPER all point at the same cells and they do not agree, something is mistyped. A comparison that costs nothing is the deposit you started with:

=ROUND(PMT(B2,B3,0,-B5),2)=B1

It returns TRUE. ROUND keeps a stray fraction of a cent from turning a good check into FALSE.

What this does not say

A sample 5% for ten years is arithmetic, not a promise. The page does not model taxes, fees, or a match. A match changes the deposit that goes into the account, not the limit on what you may defer. The same balance, a made-up 3% inflation, and a four percent first-year draw are on the Retirement Calculator with the same $24,500, 5%, and ten years.


Template for this article

Retirement Calculator with Inflation

More from the blog