TVM, NPV, IRR, XIRR & MIRR calculator
Solve PV, FV, PMT, NPER or RATE with Excel sign conventions, then get NPV, IRR (all roots), MIRR, payback and XIRR for dated cash flows.
- Spreadsheet version: tvm.xlsx (p.mba/templates/#tvm)
When you’ll use this
- Corporate Finance, weeks 1-3: annuity, perpetuity and loan problem sets (solve for any one TVM variable)
- Corporate Finance, weeks 3-5: capital budgeting cases comparing NPV, IRR, MIRR and payback
- Valuation or PE/VC electives: XIRR on dated fund or deal cash flows
- Finance recruiting season: checking technical-interview answers on NPV vs IRR and multiple IRRs
- Before graduation: amortization schedule for an MBA loan or a mortgage
TVM, NPV, IRR, XIRR & MIRR calculator tool
Payment per period (PMT)
-$1,798.65
Rate per payment period
0.5000%
Effective annual rate
6.1678%
(1 + rate per period)^(P/Y) − 1
Total of payments
$647,514.57
paid out over the schedule
Total interest
$347,514.57
interest cost
Excel / Sheets check: =PMT(0.06/12, 360, 300000, 0, 0)
Amortization schedule
Data table
| Period | Balance owed |
|---|---|
| 0 | $300K |
| 1 | $299.7K |
| 2 | $299.4K |
| 3 | $299.1K |
| 4 | $298.8K |
| 5 | $298.5K |
| 6 | $298.2K |
| 7 | $297.9K |
| 8 | $297.6K |
| 9 | $297.3K |
| 10 | $296.9K |
| 11 | $296.6K |
| 12 | $296.3K |
| 13 | $296K |
| 14 | $295.7K |
| 15 | $295.4K |
| 16 | $295K |
| 17 | $294.7K |
| 18 | $294.4K |
| 19 | $294.1K |
| 20 | $293.7K |
| 21 | $293.4K |
| 22 | $293.1K |
| 23 | $292.7K |
| 24 | $292.4K |
| 25 | $292.1K |
| 26 | $291.7K |
| 27 | $291.4K |
| 28 | $291K |
| 29 | $290.7K |
| 30 | $290.4K |
| 31 | $290K |
| 32 | $289.7K |
| 33 | $289.3K |
| 34 | $289K |
| 35 | $288.6K |
| 36 | $288.3K |
| 37 | $287.9K |
| 38 | $287.5K |
| 39 | $287.2K |
| 40 | $286.8K |
| 41 | $286.4K |
| 42 | $286.1K |
| 43 | $285.7K |
| 44 | $285.3K |
| 45 | $285K |
| 46 | $284.6K |
| 47 | $284.2K |
| 48 | $283.8K |
| 49 | $283.5K |
| 50 | $283.1K |
| 51 | $282.7K |
| 52 | $282.3K |
| 53 | $281.9K |
| 54 | $281.5K |
| 55 | $281.1K |
| 56 | $280.8K |
| 57 | $280.4K |
| 58 | $280K |
| 59 | $279.6K |
| 60 | $279.2K |
| 61 | $278.8K |
| 62 | $278.4K |
| 63 | $277.9K |
| 64 | $277.5K |
| 65 | $277.1K |
| 66 | $276.7K |
| 67 | $276.3K |
| 68 | $275.9K |
| 69 | $275.5K |
| 70 | $275K |
| 71 | $274.6K |
| 72 | $274.2K |
| 73 | $273.8K |
| 74 | $273.3K |
| 75 | $272.9K |
| 76 | $272.5K |
| 77 | $272K |
| 78 | $271.6K |
| 79 | $271.2K |
| 80 | $270.7K |
| 81 | $270.3K |
| 82 | $269.8K |
| 83 | $269.4K |
| 84 | $268.9K |
| 85 | $268.5K |
| 86 | $268K |
| 87 | $267.5K |
| 88 | $267.1K |
| 89 | $266.6K |
| 90 | $266.2K |
| 91 | $265.7K |
| 92 | $265.2K |
| 93 | $264.7K |
| 94 | $264.3K |
| 95 | $263.8K |
| 96 | $263.3K |
| 97 | $262.8K |
| 98 | $262.4K |
| 99 | $261.9K |
| 100 | $261.4K |
| 101 | $260.9K |
| 102 | $260.4K |
| 103 | $259.9K |
| 104 | $259.4K |
| 105 | $258.9K |
| 106 | $258.4K |
| 107 | $257.9K |
| 108 | $257.4K |
| 109 | $256.9K |
| 110 | $256.3K |
| 111 | $255.8K |
| 112 | $255.3K |
| 113 | $254.8K |
| 114 | $254.3K |
| 115 | $253.7K |
| 116 | $253.2K |
| 117 | $252.7K |
| 118 | $252.1K |
| 119 | $251.6K |
| 120 | $251.1K |
| 121 | $250.5K |
| 122 | $250K |
| 123 | $249.4K |
| 124 | $248.9K |
| 125 | $248.3K |
| 126 | $247.8K |
| 127 | $247.2K |
| 128 | $246.6K |
| 129 | $246.1K |
| 130 | $245.5K |
| 131 | $244.9K |
| 132 | $244.4K |
| 133 | $243.8K |
| 134 | $243.2K |
| 135 | $242.6K |
| 136 | $242K |
| 137 | $241.4K |
| 138 | $240.8K |
| 139 | $240.3K |
| 140 | $239.7K |
| 141 | $239.1K |
| 142 | $238.5K |
| 143 | $237.8K |
| 144 | $237.2K |
| 145 | $236.6K |
| 146 | $236K |
| 147 | $235.4K |
| 148 | $234.8K |
| 149 | $234.1K |
| 150 | $233.5K |
| 151 | $232.9K |
| 152 | $232.3K |
| 153 | $231.6K |
| 154 | $231K |
| 155 | $230.3K |
| 156 | $229.7K |
| 157 | $229K |
| 158 | $228.4K |
| 159 | $227.7K |
| 160 | $227.1K |
| 161 | $226.4K |
| 162 | $225.7K |
| 163 | $225.1K |
| 164 | $224.4K |
| 165 | $223.7K |
| 166 | $223K |
| 167 | $222.3K |
| 168 | $221.7K |
| 169 | $221K |
| 170 | $220.3K |
| 171 | $219.6K |
| 172 | $218.9K |
| 173 | $218.2K |
| 174 | $217.5K |
| 175 | $216.8K |
| 176 | $216K |
| 177 | $215.3K |
| 178 | $214.6K |
| 179 | $213.9K |
| 180 | $213.1K |
| 181 | $212.4K |
| 182 | $211.7K |
| 183 | $210.9K |
| 184 | $210.2K |
| 185 | $209.4K |
| 186 | $208.7K |
| 187 | $207.9K |
| 188 | $207.2K |
| 189 | $206.4K |
| 190 | $205.7K |
| 191 | $204.9K |
| 192 | $204.1K |
| 193 | $203.3K |
| 194 | $202.5K |
| 195 | $201.8K |
| 196 | $201K |
| 197 | $200.2K |
| 198 | $199.4K |
| 199 | $198.6K |
| 200 | $197.8K |
| 201 | $197K |
| 202 | $196.1K |
| 203 | $195.3K |
| 204 | $194.5K |
| 205 | $193.7K |
| 206 | $192.9K |
| 207 | $192K |
| 208 | $191.2K |
| 209 | $190.3K |
| 210 | $189.5K |
| 211 | $188.6K |
| 212 | $187.8K |
| 213 | $186.9K |
| 214 | $186.1K |
| 215 | $185.2K |
| 216 | $184.3K |
| 217 | $183.4K |
| 218 | $182.6K |
| 219 | $181.7K |
| 220 | $180.8K |
| 221 | $179.9K |
| 222 | $179K |
| 223 | $178.1K |
| 224 | $177.2K |
| 225 | $176.3K |
| 226 | $175.3K |
| 227 | $174.4K |
| 228 | $173.5K |
| 229 | $172.6K |
| 230 | $171.6K |
| 231 | $170.7K |
| 232 | $169.7K |
| 233 | $168.8K |
| 234 | $167.8K |
| 235 | $166.9K |
| 236 | $165.9K |
| 237 | $164.9K |
| 238 | $164K |
| 239 | $163K |
| 240 | $162K |
| 241 | $161K |
| 242 | $160K |
| 243 | $159K |
| 244 | $158K |
| 245 | $157K |
| 246 | $156K |
| 247 | $155K |
| 248 | $154K |
| 249 | $152.9K |
| 250 | $151.9K |
| 251 | $150.9K |
| 252 | $149.8K |
| 253 | $148.8K |
| 254 | $147.7K |
| 255 | $146.7K |
| 256 | $145.6K |
| 257 | $144.5K |
| 258 | $143.4K |
| 259 | $142.4K |
| 260 | $141.3K |
| 261 | $140.2K |
| 262 | $139.1K |
| 263 | $138K |
| 264 | $136.9K |
| 265 | $135.8K |
| 266 | $134.6K |
| 267 | $133.5K |
| 268 | $132.4K |
| 269 | $131.2K |
| 270 | $130.1K |
| 271 | $129K |
| 272 | $127.8K |
| 273 | $126.6K |
| 274 | $125.5K |
| 275 | $124.3K |
| 276 | $123.1K |
| 277 | $121.9K |
| 278 | $120.8K |
| 279 | $119.6K |
| 280 | $118.4K |
| 281 | $117.1K |
| 282 | $115.9K |
| 283 | $114.7K |
| 284 | $113.5K |
| 285 | $112.3K |
| 286 | $111K |
| 287 | $109.8K |
| 288 | $108.5K |
| 289 | $107.3K |
| 290 | $106K |
| 291 | $104.7K |
| 292 | $103.5K |
| 293 | $102.2K |
| 294 | $100.9K |
| 295 | $99.6K |
| 296 | $98.3K |
| 297 | $97K |
| 298 | $95.7K |
| 299 | $94.4K |
| 300 | $93K |
| 301 | $91.7K |
| 302 | $90.4K |
| 303 | $89K |
| 304 | $87.7K |
| 305 | $86.3K |
| 306 | $84.9K |
| 307 | $83.6K |
| 308 | $82.2K |
| 309 | $80.8K |
| 310 | $79.4K |
| 311 | $78K |
| 312 | $76.6K |
| 313 | $75.2K |
| 314 | $73.7K |
| 315 | $72.3K |
| 316 | $70.9K |
| 317 | $69.4K |
| 318 | $68K |
| 319 | $66.5K |
| 320 | $65.1K |
| 321 | $63.6K |
| 322 | $62.1K |
| 323 | $60.6K |
| 324 | $59.1K |
| 325 | $57.6K |
| 326 | $56.1K |
| 327 | $54.6K |
| 328 | $53.1K |
| 329 | $51.5K |
| 330 | $50K |
| 331 | $48.4K |
| 332 | $46.9K |
| 333 | $45.3K |
| 334 | $43.8K |
| 335 | $42.2K |
| 336 | $40.6K |
| 337 | $39K |
| 338 | $37.4K |
| 339 | $35.8K |
| 340 | $34.2K |
| 341 | $32.5K |
| 342 | $30.9K |
| 343 | $29.2K |
| 344 | $27.6K |
| 345 | $25.9K |
| 346 | $24.3K |
| 347 | $22.6K |
| 348 | $20.9K |
| 349 | $19.2K |
| 350 | $17.5K |
| 351 | $15.8K |
| 352 | $14.1K |
| 353 | $12.3K |
| 354 | $10.6K |
| 355 | $8.9K |
| 356 | $7.1K |
| 357 | $5.3K |
| 358 | $3.6K |
| 359 | $1.8K |
| 360 | $0 |
| Period | Payment | Interest | Principal | Balance (Excel sign) |
|---|---|---|---|---|
| Year 1 | -$21,583.82 | -$17,899.78 | -$3,684.04 | -$296,315.96 |
| Year 2 | -$21,583.82 | -$17,672.56 | -$3,911.26 | -$292,404.71 |
| Year 3 | -$21,583.82 | -$17,431.32 | -$4,152.50 | -$288,252.21 |
| Year 4 | -$21,583.82 | -$17,175.21 | -$4,408.61 | -$283,843.60 |
| Year 5 | -$21,583.82 | -$16,903.29 | -$4,680.53 | -$279,163.07 |
| Year 6 | -$21,583.82 | -$16,614.61 | -$4,969.21 | -$274,193.86 |
| Year 7 | -$21,583.82 | -$16,308.12 | -$5,275.70 | -$268,918.16 |
| Year 8 | -$21,583.82 | -$15,982.72 | -$5,601.10 | -$263,317.06 |
| Year 9 | -$21,583.82 | -$15,637.26 | -$5,946.56 | -$257,370.50 |
| Year 10 | -$21,583.82 | -$15,270.49 | -$6,313.33 | -$251,057.17 |
| Year 11 | -$21,583.82 | -$14,881.10 | -$6,702.72 | -$244,354.45 |
| Year 12 | -$21,583.82 | -$14,467.69 | -$7,116.13 | -$237,238.32 |
| Year 13 | -$21,583.82 | -$14,028.78 | -$7,555.04 | -$229,683.28 |
| Year 14 | -$21,583.82 | -$13,562.80 | -$8,021.02 | -$221,662.27 |
| Year 15 | -$21,583.82 | -$13,068.08 | -$8,515.74 | -$213,146.53 |
| Year 16 | -$21,583.82 | -$12,542.85 | -$9,040.97 | -$204,105.57 |
| Year 17 | -$21,583.82 | -$11,985.22 | -$9,598.59 | -$194,506.97 |
| Year 18 | -$21,583.82 | -$11,393.20 | -$10,190.61 | -$184,316.36 |
| Year 19 | -$21,583.82 | -$10,764.67 | -$10,819.15 | -$173,497.21 |
| Year 20 | -$21,583.82 | -$10,097.37 | -$11,486.45 | -$162,010.76 |
| Year 21 | -$21,583.82 | -$9,388.91 | -$12,194.91 | -$149,815.85 |
| Year 22 | -$21,583.82 | -$8,636.75 | -$12,947.06 | -$136,868.78 |
| Year 23 | -$21,583.82 | -$7,838.21 | -$13,745.61 | -$123,123.17 |
| Year 24 | -$21,583.82 | -$6,990.41 | -$14,593.41 | -$108,529.76 |
| Year 25 | -$21,583.82 | -$6,090.32 | -$15,493.50 | -$93,036.26 |
| Year 26 | -$21,583.82 | -$5,134.71 | -$16,449.11 | -$76,587.16 |
| Year 27 | -$21,583.82 | -$4,120.17 | -$17,463.65 | -$59,123.51 |
| Year 28 | -$21,583.82 | -$3,043.05 | -$18,540.77 | -$40,582.73 |
| Year 29 | -$21,583.82 | -$1,899.49 | -$19,684.32 | -$20,898.41 |
| Year 30 | -$21,583.82 | -$685.41 | -$20,898.41 | $0.00 |
| Total | -$647,514.57 | -$347,514.57 | -$300,000.00 | $0.00 |
Interest and principal match Excel's IPMT and PPMT. The balance is the FV after each period: negative means you still owe it, positive means it is saved or owed to you. The last balance equals FV.
How this works
Formulas
The TVM equation. Every solve on the first tab finds the one unknown that makes this equation balance, where is the rate per payment period, the number of payment periods and the timing flag (0 for end of period, 1 for beginning):
When the annuity factor collapses to , so the equation becomes .
PV, FV and PMT have closed-form solutions. NPER also has one:
RATE has no closed form. The tool runs Newton’s method from a 10% starting guess per period, then scans rates between -99% and 1,000% per period and refines every sign change by bisection. If the equation has more than one solution, the extra rates are listed.
Rate per period. You enter a nominal annual rate , payments per year and compounding periods per year . The rate per payment period is
When this is simply . The effective annual rate is .
Amortization. The schedule tracks the balance with Excel’s FV sign, starting from . For end-of-period payments the interest in period is . For beginning-of-period payments it is , because the payment leaves before interest accrues. Then , and the principal portion is .
NPV, two ways. For flows at discount rate :
IRR is any rate where . The tool tries Newton’s method from 10% first, then scans for every root between -99% and 1,000%.
MIRR grows the positive flows forward to period at the reinvestment rate and discounts the negative flows back to at the finance rate :
Payback is the first point where cumulative cash flow reaches zero. If that happens partway through period , the fraction is the remaining shortfall divided by that period’s flow. Discounted payback does the same with each flow first divided by .
XNPV and XIRR. With amounts on dates and the first row’s date as :
XIRR is the annual rate where XNPV equals zero. It is solved the same way as IRR.
Conventions & assumptions
- Sign convention. The tool follows Excel: cash you receive is positive and cash you pay is negative. For a loan you take out, PV is positive and the payments are negative. For a savings plan, the deposits are negative and the FV you collect is positive. If PV, PMT and FV all have the same sign, no rate or term can work, and the tool tells you so.
- Timing. Type 0 means payments at the end of each period, which is Excel’s default and the usual loan convention. Type 1 means payments at the beginning of each period, as with rent or an annuity due.
- Rates. On the TVM tab the rate is a nominal annual rate (APR-style), converted with the payments-per-year and compounding-per-year settings. NPER counts payment periods, not years. On the cash-flow tab every rate is a rate per period, so annual flows need an annual rate.
- Cash-flow timing. Row 0 is today () and row falls at the end of period . The tool labels the two NPV conventions separately. Excel’s NPV function discounts the first value a full period, so it treats row 0 as falling one period from now. Most textbooks and the t0 figure here leave row 0 undiscounted.
- Payback interpolation. Payback assumes the flow inside the crossing period arrives evenly. If cumulative cash goes negative again later, the tool flags it.
- Day count. Dated flows use Actual/365 from the first row’s date, the same as Excel and Google Sheets. Leap days count as real days, and the divisor stays 365. Every later row must be on or after the first row’s date (Excel returns an error otherwise), but they do not have to be in order.
- Solvers. Newton’s method uses a numerical derivative, stops after 100 iterations or once a step changes the rate by less than about 1e-10, and must stay above -100%. Bisection refines each bracket until it is narrower than about 1e-13. Each result carries a converged flag.
- Amortization display. The schedule shows whole periods only. A fractional NPER is flagged, and very long schedules are cut off at 1,200 rows.
Worked example
The tool opens with these three examples already filled in.
Example: TVM: a 30-year monthly loan
Borrow $300,000 at a 6% nominal annual rate with 12 payments and 12 compounding periods per year, 360 payments at the end of each month and nothing left at the end (FV = 0). Solve for PMT.
- Rate per period: .
- Growth factor: .
- Payment: per month. It is negative because it is cash you pay.
- First month: interest is , so goes to principal.
- After 60 payments the balance still owed is about . Over the life of the loan you pay about in interest.
The effective annual rate is .
Example: Cash flows: a five-year project at 8%
The flows are -50,000 today, then 12,000, 15,000, 18,000, 21,000 and 9,000 at the end of years 1 through 5. The discount rate is 8% per year, the MIRR finance rate is 7% and the MIRR reinvestment rate is 9%.
- NPV with undiscounted: .
- Excel-style NPV, which discounts the first flow too: . The two figures differ only in convention.
- IRR: about 15.08%. The flows change sign once, so there is a single IRR.
- MIRR at 7% / 9%: about 12.38%, below the IRR because it assumes reinvestment at 9% rather than at 15.08%.
- Payback: the cumulative total is -5,000 after year 3, and year 4 brings in 21,000, so payback is years.
- Discounted payback: the discounted shortfall after year 3 is about 11,739.83, and year 4 is worth about 15,435.63 in today’s money, so discounted payback is about 3.76 years.
Example: Dated cash flows: irregular dates at 8%
The rows are -25,000 on 2026-01-15, then 4,000 on 2026-07-01, 9,000 on 2027-03-31, 8,000 on 2027-12-15 and 12,000 on 2028-09-30.
- Days from the first date: 0, 167, 440, 699 and 989.
- XNPV at 8%: each amount is divided by , which totals about 3,709.17.
- XIRR: about 16.83% a year.
Limitations
- Multiple or missing IRRs. When flows change sign more than once, NPV can cross zero more than once, or never. The tool lists every root it finds between -99% and 1,000% per period and warns you. A root where NPV only touches zero without crossing, or one outside that range, can be missed. Use the NPV profile chart and NPV at your actual cost of capital to decide.
- IRR ranks projects poorly. IRR ignores scale and assumes interim flows earn the IRR itself. For mutually exclusive projects, compare NPVs, and use MIRR when the reinvestment rate matters.
- Regular periods only on the cash-flow tab. Every row is assumed to be one period apart. For uneven gaps, use the dated tab.
- One rate for every period. There are no term structures, changing rates or inflation adjustments. Discount real flows at a real rate and nominal flows at a nominal rate.
- Starting guess. Newton’s method starts at 10%, as Excel’s default does. With several roots, Excel may return a different one than the tool shows first, depending on the guess you give it, so compare against the full list of roots.
- Not advice. Loan payments shown here exclude fees, insurance, taxes and lender-specific day counts. Check real loan terms with your lender or servicer.
Excel/Sheets equivalents
A ready-made time value of money workbook preloads this worked example, and the loan amortization schedule lays out a month-by-month loan table.
The same formulas work in Excel and Google Sheets.
- Payment:
=PMT(6%/12, 360, 300000)returns -1,798.65. A test case:=PMT(0.05/12, 360, -200000)returns 1,073.64. - Other TVM solves:
=PV(rate, nper, pmt, [fv], [type]),=FV(rate, nper, pmt, [pv], [type]),=NPER(rate, pmt, pv, [fv], [type])and=RATE(nper, pmt, pv, [fv], [type], [guess]). RATE returns a rate per period, so multiply by payments per year for a nominal annual rate. - Interest and principal for one period:
=IPMT(rate, per, nper, pv)and=PPMT(rate, per, nper, pv). These match the schedule’s first rows for end-of-period payments. - NPV with undiscounted:
=B2 + NPV(8%, B3:B7), where B2 holds the time-0 flow. - Excel-convention NPV:
=NPV(8%, B2:B7), which discounts B2 by one period. =IRR(B2:B7),=MIRR(B2:B7, 7%, 9%),=XNPV(8%, B2:B6, A2:A6)and=XIRR(B2:B6, A2:A6). Put the dates in column A with the earliest one first.
Runs entirely in your browser; inputs are saved only on this device. Last updated .