How to calculate NPV in Excel (and the year-0 mistake)
Excel's NPV discounts the first number you give it. If that number is today's investment, your answer is wrong. Here's the fix, worked through, and a sheet that grades yours.
Use =PMT(B2/12,B3*12,-B1): the yearly rate divided by 12, because the payments are monthly, the years times 12 for the number of payments, and the loan with a minus in front so the payment comes out positive. A loan of 40,000 at 6.9% a year over 6 years costs 680.04 a month. Multiply by the number of payments and take away the loan, and the total interest is 8,962.96.
“A customer borrows 40,000 at 6.9% a year, repaid monthly over six years. What’s the monthly payment? And how much do they pay in interest over the life of the loan?”
In finance, banking and FP&A interviews this often opens the Excel part, because it shows in under a minute whether you understand periods and signs.
The loan, rate and term are in B1:B3. The payment in B5, then the totals below it:
| Row | A | B |
|---|---|---|
| 1 | Loan amount | 40,000 |
| 2 | Annual rate | 6.9% |
| 3 | Years | 6 |
| 4 | ||
| 5 | Monthly payment | 680.04 |
| 6 | Total paid | 48,962.96 |
| 7 | Total interest | 8,962.96 |
PMT’s required arguments are the rate per period (B2/12), the number of payments (B3*12) and the present value, the amount borrowed (-B1). The total interest in B7 is every payment added up, minus the loan:
=B6-B1 → 8,962.96Forget to divide the rate and Excel charges 6.9% every month, which makes the payment about four times too big:
=PMT(B2,B3*12,-B1)2,782.81=PMT(B2/12,B3*12,-B1)680.04The mirror image is the number of periods: =PMT(B2/12,B3,-B1) pays a 40,000 loan off in six monthly payments. Both come from the same rule: the rate and the number of periods must use the same unit, months here.
Without the minus, PMT returns a negative payment:
=PMT(B2/12,B3*12,B1) → -680.04That’s not an error. Excel’s finance functions follow the cash flow: you receive the loan (positive), so you pay the instalments (negative). Saying this out loud in the interview shows you know the convention instead of fighting it.
The next finance question is usually NPV: “This project costs 12,000 today and brings in 4,000, 5,000 and 6,000 over the next three years. At 8%, is it worth it?”
| Row | A | B |
|---|---|---|
| 1 | Discount rate | 8% |
| 2 | ||
| 3 | Year | Cash flow |
| 4 | 0 | -12,000 |
| 5 | 1 | 4,000 |
| 6 | 2 | 5,000 |
| 7 | 3 | 6,000 |
| 8 | ||
| 9 | NPV | 753.39 |
NPV discounts every value it’s given by at least one period, so the money spent today (year 0, in B4) is added outside the function. The NPV is positive, so the project earns more than 8% a year. Putting B4 inside NPV is the classic mistake; How to calculate NPV in Excel works through it.
=PMT(6.9%/12,72,-40000) gives the right answer once and can’t be changed from the sheet.A different loan, laid out in a row the way a list of loans would be, so the cells differ from the example above. We check your payment, then change the rate, the amount and the term.
Your task: In D2, return the monthly payment on the loan in A2, at the yearly rate in B2, over the years in C2, as a positive amount (not rounded: the cell shows two decimals).
Graded live| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Loan | Annual rate | Years | Monthly payment |
| 2 | 18,000 | 7.2% | 4 |
Write the formula in the bar above, then press Check or Enter.
PMT takes the rate per period, the number of payments and the loan: B2/12, C2*12 and -A2 (the minus makes the payment positive).
=PMT(B2/12,C2*12,-A2) Any formula that returns the same result passes.
“Monthly payments, so the rate per period is the yearly rate over 12 and the number of periods is years times 12. PMT returns the payment as a negative cash flow, so I put a minus before the loan. Total interest is the payment times the number of payments, minus the loan.” Then offer the NPV or IPMT follow-up before they ask. More questions like this one: Excel interview questions.
Excel's finance functions treat money you receive as positive and money you pay as negative. You receive the loan, so the payments come out negative. Enter the loan as a negative, or put a minus before PMT, to show the payment as a positive amount.
IPMT gives the interest part of any one payment. For the first month of the loan above, =IPMT(B2/12,1,B3*12,-B1) is 230.00; the rest of the 680.04 pays down the loan.
PMT covers the loan and its interest only. Work out the total paid as above, then add the fees and insurance as their own line, so the interviewer can see each part.
Give PMT 1 as its fifth argument, the type: =PMT(B2/12,B3*12,-B1,0,1). Each payment is made a month sooner, so the balance gathers a little less interest and the payment is slightly smaller.
Guides that build on this one.
Excel's NPV discounts the first number you give it. If that number is today's investment, your answer is wrong. Here's the fix, worked through, and a sheet that grades yours.
Turn a raw sales list into a summary by region and product, without a pivot table. The formula interviewers expect, the $ signs that make it copy, and a sheet that grades yours.
Extra spaces, names in the wrong order, numbers stored as text and dates that aren't dates: the cleaning task interviewers love, solved with formulas, and a sheet that grades yours.
Practise in a live grid that grades what your formula calculates, with a specific hint when it's wrong.
Runs in your browser · Graded on your result · No install