An NPV and IRR calculator discounts a project's future cash flows back to today, then reports whether the total clears the initial investment. This walkthrough follows a capital-budgeting spreadsheet that runs three projects side by side, each with a 15-year discounted cash flow table, and derives net present value, internal rate of return, discounted payback, profitability index, and simple ROI from it. The worked example carries a $350,000 warehouse expansion, a $180,000 software platform, and a $120,000 equipment upgrade, ranked on a comparison sheet and stress-tested at nine discount rates. Our NPV & IRR Calculator Ultimate Spreadsheet Template ($29) ships the same structure ready-made for Excel and Google Sheets.
A capital decision is a timing problem. A business spends a known sum today and hopes to collect a stream of cash over the years that follow, and the awkward part is that a dollar arriving in Year 8 is worth less than a dollar in hand now. Add up the future cash flows as raw numbers and almost any project looks like a winner. Discount them back to today at an honest rate and some of those winners quietly turn into losers. Net present value and internal rate of return are the two numbers that do that discounting, and a spreadsheet is the natural place to run them, because the whole calculation is a table of years, a rate, and a handful of formulas.
That structure is six working sheets, plus a How to Use guide: one sheet per project holding a 15-year discounted cash flow model, a comparison sheet that ranks the projects side by side, a sensitivity sheet that re-runs each one at nine different rates, and a dashboard that reads the headline numbers back. The examples below come from our NPV & IRR Calculator Ultimate Spreadsheet Template ($29), which ships the whole thing ready-made for Excel and Google Sheets. Every formula in it is visible and editable, so the model is reproducible by hand if you would rather build your own NPV and IRR spreadsheet from scratch.
What an NPV and IRR calculator has to hold
A single present-value formula answers one narrow question: what is this one stream of cash worth today? A capital-budgeting tool has to answer more than that, because real decisions are comparative and uncertain. This workbook is built around three things a bare NPV formula leaves out.
- The full discounting shown year by year. Rather than collapsing everything into one function, each project sheet lays out a discount factor, a present value, and a running cumulative total for all fifteen years, so the arithmetic is on the page instead of hidden inside a cell.
- More than one decision measure. NPV alone can hide a slow project or flatter a large one, so each sheet also reports internal rate of return, discounted payback period, profitability index, and simple ROI, five lenses on the same cash flows.
- Comparison and stress-testing across projects. Capital is limited, so a dedicated comparison sheet ranks the three projects on four measures at once, and a sensitivity sheet re-runs each NPV at nine discount rates to show how robust it is.
The tier family reflects that scope. The free NPV & IRR Calculator template is a single working sheet that computes net present value and simple ROI across five years of cash flow for one project, and its own notes say the internal rate of return is not calculated there. The NPV & IRR Calculator Essentials ($19) adds IRR, payback period, and profitability index over ten years, on a dashboard with two charts. The Ultimate version described here is the one that carries three separate project sheets, the ranking comparison, and the sensitivity analysis, which is what turns a calculator into a capital-budgeting tool.
Build one project: the project sheet
Every project lives on its own sheet, and each is a complete, self-contained model. The walkthrough starts with the Warehouse Expansion sheet, because once one project sheet makes sense the other two are the same shape with different numbers.
At the top sits a short Investment Setup block with two inputs. Initial Investment is the upfront capital outlay, entered as a positive figure, $350,000 in the sample, with a note reminding you to enter it positive rather than as a negative. Discount Rate is the required rate of return, or hurdle rate, set to 10 percent here. Those two cells drive everything below them.
Below the setup, the Projected Cash Flows table is the heart of the sheet. It runs fifteen rows, Year 1 through Year 15, across five columns:
| Column | What it holds |
|---|---|
| Year | The label, Year 1 to Year 15 |
| Cash Flow ($) | The expected inflow that year, typed in |
| Discount Factor | 1 divided by (1 + rate) raised to the year number |
| Present Value ($) | Cash flow times the discount factor |
| Cumulative DCF ($) | The running total of present values, starting from minus the investment |
Only the Cash Flow column takes entries, and the three columns to its right are formulas. The warehouse’s inflows climb and then taper, $55,000 in Year 1, rising to a $95,000 peak in Year 4, then easing back down to $35,000 by Year 12, with Years 13 through 15 left at zero because the project’s useful life is shorter than the fifteen-year frame. The How to Use sheet is explicit that empty years should be left as zero rather than deleted, so the table structure stays intact.
The Discount Factor column is where the time value of money becomes visible. For Year 1 at a 10 percent rate it is 1 divided by 1.10, or 0.9091. For Year 2 it is 1 divided by 1.10 squared, or 0.8264, and so on down to 0.2394 in Year 15. Those factors shrink steadily, which is the whole idea: a dollar further out is discounted harder. Multiply each year’s cash flow by its factor and you get the Present Value column, so the warehouse’s $55,000 in Year 1 is worth $50,000 today, while its $80,000 in Year 6 is worth only $45,158.
The Cumulative DCF column then adds those present values up, starting from the negative of the initial investment. It opens deep in the red at minus $300,000 after Year 1 ($50,000 of value against the $350,000 outlay), climbs each year, and finally crosses from negative to positive between Year 6, at minus $12,360, and Year 7, at $23,561. The year it crosses zero is the discounted payback point, and reading straight down that one column tells you when the project has paid for itself in today’s dollars.
The five results, in plain terms
Below the cash flow table, the Results block distills the whole model into six lines. Each is a single number with a short definition beside it, and each measures the project differently.
Net Present Value (NPV) is the last figure in the Cumulative DCF column, $115,278 for the warehouse. It is the sum of all fifteen present values minus the initial investment, the total value the project adds above its 10 percent hurdle, expressed in today’s dollars. A positive NPV means the discounted inflows more than cover the outlay. Microsoft’s own NPV function documentation describes the same calculation, a discount rate applied to a series of future payments and income, and the sheet lays out the year-by-year version of it rather than hiding it in one cell.
Internal Rate of Return (IRR) is 16.89 percent here, and it answers a different question. Instead of discounting at a rate you choose, it solves for the rate that would drive NPV to exactly zero. The workbook computes it with the built-in IRR function reading a helper column that places the negative investment at Year 0 and the inflows after it. As Microsoft’s IRR function documentation puts it, IRR is the rate at which net present value equals zero. Because 16.89 percent sits above the 10 percent hurdle, the project clears its bar with room to spare, which is the same conclusion the positive NPV reached.
Payback Period is 6.34 years in the cell, which both the project sheet and the dashboard display as 6.3 yrs. This is the discounted payback, the point where the Cumulative DCF column crosses zero, interpolated between Year 6 and Year 7. It is worth reading as a companion to NPV rather than a replacement, because it says nothing about the value earned after the money comes back. The How to Use sheet notes that when discounted cash flows never cover the investment, this cell reads “No payback” rather than reporting a misleading number.
Profitability Index is 1.33, the present value of the inflows divided by the initial investment. A value above 1.0 means the project creates value, and 1.33 says the warehouse returns $1.33 of discounted value for every dollar put in. Where NPV is an absolute dollar figure, the profitability index is a ratio, which makes it useful for comparing projects of very different sizes.
Total Cash Flows is the undiscounted sum of every inflow, $775,000, and Simple ROI is that total over the investment minus one, or 121.4 percent. Both ignore timing entirely, so they run higher than the discounted measures and serve as a quick sanity check rather than a decision number. The gap between the $775,000 of raw cash and the $115,278 of net present value is the cost of time made visible.
The other two projects
The Software Platform and Equipment Upgrade sheets are the same model with their own inputs, and they are deliberately different in shape so the comparison later has something to say.
The Software Platform carries a $180,000 investment at a 12 percent discount rate. Its cash flows start slow at $15,000 in Year 1, build to a $90,000 peak in Year 6, and run through Year 10. That back-loaded, high-growth profile produces the strongest results in the file: an NPV of $139,107, an IRR of 25.72 percent, a profitability index of 1.77, and a simple ROI of 233.3 percent on $600,000 of total cash flows. Its discounted payback is 5.08 years.
The Equipment Upgrade is the smallest and steadiest, a $120,000 investment at an 8 percent discount rate with front-loaded cash flows that peak early at $35,000 in Years 2 and 3 and finish by Year 7. It returns the least in absolute terms, an NPV of $25,990 and a profitability index of 1.22 on $190,000 of total cash flows, with a simple ROI of 58.3 percent. But because its money comes back fastest, its discounted payback is the shortest of the three at 4.73 years. That tension, smallest total value but quickest recovery, is exactly what makes it interesting once the three sit next to each other.
Compare the projects: the Comparison sheet
The Comparison sheet pulls the headline figure from each project sheet into one table so the three can be read together. The upper block, Project Metrics Comparison, lines up initial investment, discount rate, total cash flows, NPV, IRR, payback, profitability index, and simple ROI in three columns, one per project. Nothing is retyped here; every cell references the source project sheet, so editing a cash flow on the Software Platform sheet updates its column on the comparison instantly. Each column header even carries a compact summary line, so the warehouse reads “350K / 10% / 12yrs” for its investment, rate, and number of active cash flow years.
Below it, the Project Ranking block is where the sheet earns its keep. It assigns each project a place, 1 through 3, on four measures: NPV, IRR, payback period, and profitability index. The ranking re-orders itself as the figures change, so it is a live verdict rather than a typed one. In the sample it reads:
| Ranking by | Warehouse Expansion | Software Platform | Equipment Upgrade |
|---|---|---|---|
| NPV | 2 | 1 | 3 |
| IRR | 2 | 1 | 3 |
| Payback Period | 3 | 2 | 1 |
| Profitability Index | 2 | 1 | 3 |
Three of the four rows agree completely: the software platform wins on NPV, IRR, and profitability index, and the equipment upgrade trails on all three. The payback row flips the order entirely, ranking the equipment upgrade first and the software platform second. That is not an error; it is the honest answer to a different question. NPV, IRR, and the profitability index all reward the total value a project creates over its life, while payback rewards only how fast the initial money comes back. The How to Use sheet says as much: a shorter payback ranks higher, so that row often disagrees with the other three. The ranking logic is also careful at the edges. A project with no initial investment entered is left out of the ranking rather than counted as best, and a project whose payback reads “No payback” takes no place on that row rather than being handed first.
Seeing the disagreement on one screen is more useful than any single winner would be. A business choosing between mutually exclusive options, or prioritizing a limited capital budget, can weigh total value against speed of recovery deliberately rather than picking whichever number it happened to look at first.
Stress-test the assumptions: the Sensitivity sheet
Every NPV rests on a discount rate, and that rate is an estimate. The Sensitivity sheet answers the natural follow-up: how much would the verdict change if the rate were different? It re-runs each project’s NPV at nine discount rates, from 5 percent up to 20 percent, and reports the NPV, the profitability index, and an Accept or Reject decision at each one.
The warehouse table tells a clear story. At a generous 5 percent rate its NPV is $240,762; at its actual 10 percent hurdle it is the familiar $115,278; and it keeps falling as the rate rises, reaching $12,175 at 16 percent before turning negative at $14,322 below zero at 18 percent. The Decision column flips from Accept to Reject somewhere between 16 and 18 percent, which is another way of pinpointing the internal rate of return: the rate where NPV crosses zero is the IRR, and the warehouse’s 16.89 percent sits right in that band. The How to Use sheet points this out directly, that the sensitivity table helps locate the approximate IRR as the rate where NPV crosses zero.
The three projects respond very differently to rate pressure, and that is the real value of the sheet. The software platform, with its high 25.72 percent IRR, stays firmly positive across the entire range and is still an Accept at 20 percent, where its NPV is $44,830. The equipment upgrade, with the thinnest margin, flips to Reject earlier, turning negative between 14 and 16 percent, consistent with its 14.82 percent IRR. A project that stays positive across a wide band of rates is more robust to a mis-estimated cost of capital than one that only clears the bar at low rates, and laying the three tables out together makes that difference obvious at a glance.
Read it back: the Dashboard
With three project models built, compared, and stress-tested, the Dashboard reads the whole file back through six KPI tiles and a summary table. The tiles across the top are:
| Tile | Sample value | What it reads |
|---|---|---|
| Best NPV | $139,107 | The highest NPV across the three projects |
| IRR (Software Platform) | 25.7% | The IRR read from the Software Platform sheet |
| Payback (Software Platform) | 5.1 yrs | The payback read from the Software Platform sheet |
| Total Invested | $650,000 | Combined initial outlay across all three |
| Total Cash Flows | $1,565,000 | Combined undiscounted inflows |
| Projects Analyzed | 3 | Count of projects with a positive investment |
The first tile finds the largest NPV of the three and names the project that produced it, the software platform at $139,107. The two tiles beside it are labelled for the Software Platform and read that sheet’s IRR and payback directly, so they stay pointed at that project whichever one ends up with the best NPV. The lower three tiles roll the file up: $650,000 of total capital at stake, $1,565,000 of undiscounted cash expected back, and three projects live. Below the tiles, a Project Summary table repeats each project’s investment, NPV, IRR, payback, profitability index, and an Accept or Reject decision keyed to whether its NPV is positive. In the sample all three clear the bar and read Accept. A bar chart headed NPV Comparison turns the three net present values into a picture. Because every tile and row references the project sheets, changing a single cash flow anywhere in the file moves the dashboard with it.
NPV versus IRR when they disagree
The two headline numbers usually point the same way, and the reason is worth stating plainly. When a project’s IRR is above the discount rate, its NPV is positive; when the IRR is below the rate, NPV is negative. So for a single project, accepting on positive NPV and accepting on an IRR above the hurdle are the same decision reached from two directions, one measured in dollars and one in a percentage.
Where they can part company is in ranking two projects against each other. A large project can have a lower percentage return but a much bigger dollar NPV than a small, high-percentage one, and NPV and IRR will then disagree about which is better. The How to Use sheet is careful about this: it states that NPV and IRR can rank two projects differently, that the sheet reports both and does not pick between them, and that IRR works best for comparing similarly sized investments with similar timing. It also flags the technical trap that projects with non-conventional cash flows, meaning sign changes partway through, can have multiple IRRs or none at all. The workbook’s stance is to lay all five measures out clearly rather than collapse them into a single verdict, which is the right posture for numbers that genuinely answer different questions.
Excel or Google Sheets for NPV and IRR
The template is an .xlsx file built on standard functions, with no macros and no add-ons, so it behaves the same in Microsoft Excel and in Google Sheets after upload, and the How to Use sheet notes it works in LibreOffice Calc too. Both applications carry native NPV and IRR functions, so nothing in the model depends on a feature only one of them has. Google Sheets suits a team that wants a finance lead and an owner to open the same live analysis from different places; Excel suits someone who prefers a local file they control. The tinted cells are the ones to fill in: the initial investment, the discount rate, and the annual cash flows. The white cells hold formulas and warn before being overwritten, so the structure survives a busy editing session. A currency selector on the Dashboard relabels every money column and KPI across the workbook, changing the symbol shown from the dollar to any of a long list of currencies without converting the underlying numbers.
Which template fits the job
- NPV & IRR Calculator Ultimate Spreadsheet Template ($29) is the workbook this walkthrough follows: three project sheets each carrying a 15-year discounted cash flow model, the five decision measures per project, the ranking comparison across all three, the nine-rate sensitivity analysis, and the six-KPI dashboard. It is the version built for choosing between competing capital projects. The tier family starts smaller, with a free NPV & IRR Calculator template covering net present value and simple ROI over five years and an NPV & IRR Calculator Essentials ($19) that adds IRR, payback period, and profitability index on a ten-year dashboard.
- Business Valuation Spreadsheet Template ($49) sits one level up the same discounting idea. Where this calculator discounts a project’s cash flows to judge a single investment, the valuation workbook applies discounted cash flow analysis to an entire company, layering in a terminal value and an enterprise-value multiple to put a price on the business as a whole. The math is a cousin of what the NPV sheet does; the object being valued is larger.
Related
- How to Value a Business in a Spreadsheet - the discounted cash flow method applied to a whole company rather than a single project
- How to Forecast Sales in a Spreadsheet - where the projected cash flows that feed an NPV model often start
- How to Calculate a Break-Even Point in a Spreadsheet - the shorter-horizon question of when a project’s revenue covers its costs
Frequently asked questions
What is the difference between NPV and IRR?
They read the same cash flows from two angles. NPV (net present value) discounts every future cash flow back to today at a rate you choose, then subtracts the initial investment, so it answers the question in dollars: how much value does this project add above its hurdle rate? IRR (internal rate of return) turns the question around and solves for the single discount rate that would make NPV exactly zero, so it answers in a percentage: what return does the project itself earn? In the sample the warehouse expansion shows an NPV of $115,278 and an IRR of 16.89 percent. When the IRR sits above the discount rate, NPV is positive, which is why the two usually agree on accept or reject even though they are measured in different units.
Which discount rate does the calculator use?
Whichever one you type. Each project sheet has its own Discount Rate cell, set to 10 percent for the warehouse, 12 percent for the software platform, and 8 percent for the equipment upgrade in the sample. The How to Use sheet notes that the rate stands in for a required rate of return or cost of capital, and mentions the weighted average cost of capital and a target hurdle rate as common reference points. It is an input, not a recommendation. A higher rate discounts future cash flows more heavily and lowers NPV, which is exactly what the Sensitivity sheet is built to show.
Why does the payback ranking disagree with the NPV and IRR rankings?
Because payback measures a different thing. NPV, IRR, and profitability index all reward total value created over the project's life, and in the sample they all rank the software platform first. Payback measures only how fast the initial outlay comes back, so it favors the smallest, quickest project, the $120,000 equipment upgrade at 4.73 years, and ranks it first while the other three rows rank it last. The How to Use sheet flags this directly: a shorter payback ranks higher, so that row often disagrees with the other three. Seeing the disagreement laid out is the point, because speed of recovery and total value are genuinely separate questions.
How many projects and years can it handle?
Three projects and fifteen years each. The workbook ships with a dedicated sheet for each of the three projects, and every project sheet carries a cash flow table running from Year 1 to Year 15. Projects that finish sooner leave the later years at zero rather than deleting rows, so the warehouse fills 12 years, the software platform 10, and the equipment upgrade 7. The comparison and sensitivity sheets and the dashboard all read from those three project sheets, so the structure is fixed at three; a fourth project would be a second copy of the file or an added sheet wired in by hand.
Does the template decide which project to fund?
No. It computes NPV, IRR, payback, profitability index, and simple ROI for each project, ranks them on four of those measures, and marks each Accept or Reject based on whether its NPV is positive, but it stops there. The How to Use sheet says plainly that NPV and IRR can rank two projects differently and that the sheet reports both and does not pick between them. It also notes that projects with sign changes in their cash flows can have multiple IRRs or none, and that IRR works best for comparing similarly sized investments. The file lays the evidence out; the funding decision stays with the reader and, where the stakes warrant it, a finance professional.
Sources
- NPV function - Microsoft
- IRR function - Microsoft
About this article
Sheets, inputs, formulas, number formats, charts and every quoted figure checked on 2026-09-10 against the published NPV & IRR Calculator Ultimate workbook (Dashboard, Warehouse Expansion, Software Platform, Equipment Upgrade, Comparison, Sensitivity, How to Use), the exact file customers download. Tier differences checked on 2026-09-10 against the published free and Essentials NPV & IRR Calculator workbooks. Microsoft NPV and IRR function references checked against the live Microsoft support pages on 2026-09-10. Last reviewed September 2026.



