Skip to main content
engineering

NPV / IRR Calculator

Enter initial investment and annual cash flows to compute NPV, IRR (bisection), payback period, and discounted payback. NPV vs discount rate chart.

By Christopher FloiedPublished Updated

The example below uses these same controls. Shared inputs stay in the URL fragment; anyone with the link can read them.

Drag to try rates from 0% to 50%; type any other rate in the field.

Year 1
Year 2
Year 3
Year 4
Year 5

NPV

$24,088.02

IRR

25.86%

Payback

2.85 yrs

Disc. Payback

3.43 yrs

NPV vs Discount Rate

Tip: hover to read values, click to pin a point for export

NPV changes sign at IRR ≈ 25.86%: it is positive at lower discount rates and negative at higher ones.

NPV at nearby discount rates
Discount rateChangeNPV at this rate
0%−10 points$50,000.00
5%−5 points$35,576.61
10%Entered rate$24,088.02
15%+5 points$14,812.38
20%+10 points$7,230.58

Cash-flow timeline

Bars: each year's cash flow (the investment, at year 0, is negative) and its present value at the entered rate. Line: the cumulative present value, which ends at the NPV. The year-by-year table below lists the same values.

Tip: hover to read values, click to pin a point for export

Year-by-Year Cash Flow

YearCash FlowPV @ rCumulative PV
0 (init)-$50,000-$50,000-$50,000
1$15,000$13,636.36-$36,363.64
2$18,000$14,876.03-$21,487.6
3$20,000$15,026.3-$6,461.31
4$22,000$15,026.3$8,564.99
5$25,000$15,523.03$24,088.02

Learn with a worked scenario

Annual end-of-period cash flows, NPV sensitivity and a bounded IRR search for conventional sign patterns.

Question

Invest 1,000 at time zero; receive 600 at the end of years one and two; discount rate 10%.

  1. Year-one PV = 600/1.10 = 545.4545.
  2. Year-two PV = 600/1.10² = 495.8678.
  3. NPV = −1,000 + 545.4545 + 495.8678 = 41.3223.

NPV is about 41.32 in the entered currency; IRR is about 13.0662%.

Precision: NPV and the dollar amounts in the cards and tables are rounded to the cent, the IRR to 2 decimal places of a percent and payback periods to 2 decimals; chart labels are rounded further. Intermediate values are not rounded.

Load this example in the calculator

Try a variation

Raise the discount rate from 10% to 20% with the same cash flows. Does NPV stay positive? Predict the answer before you reveal it.

Predict, then reveal

No: NPV falls to about −83.33. The receipts are now worth 500.00 + 416.67 = 916.67 today, less than the 1,000 cost, because 20% is above the IRR of about 13.07%.

Change one input and compare
Discount rateNPV
0%200.00
10%41.32
20%−83.33
Load the variation in the calculator

Check the assumptions

  • Periods are annual and receipts occur at period end.
  • The rate and cash flows use consistent inflation and tax assumptions.
  • An unresolved IRR is not proof that no mathematical root exists.

Common mistake: Using an annual discount rate with monthly cash flows without converting the rate.

Method reference: OpenStax Principles of Finance: NPV. These examples illustrate the method; they do not validate every possible input.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the NPV / IRR Calculator. Follow the units and input format printed next to each field. Where a unit selector is available, choose the units that match your data.

2

Review your inputs

Double-check that all values are correct and match the units or format shown for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The NPV / IRR Calculator computes the output in your browser and displays the results, with units clearly labeled, as soon as they are ready — no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • •Use the NPV / IRR Calculator to check your hand calculations on homework or exam problems — comparing its result with your own working helps identify arithmetic errors before they propagate.
  • •Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
  • •Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
  • •Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
  • •Use it in the field when a quick estimate is needed and a full engineering software package is not available.

About This Calculator

The NPV / IRR Calculator is a precision engineering calculation tool designed for students, engineers, and technical professionals. Enter initial investment and annual cash flows to compute NPV, IRR (bisection), payback period, and discounted payback. NPV vs discount rate chart. All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Follow the units printed beside each field. Where a unit selector is provided, the selected unit is converted internally. Results are computed in your browser without sending data to a server, which keeps your inputs private. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.

The Theory Behind It

Net Present Value (NPV) is the sum of all cash flows (inflows and outflows) discounted to present value at a specified discount rate: NPV = Σ [CF_t / (1 + r)^t], where CF_t is the cash flow in period t and r is the discount rate. NPV > 0 means the investment creates value; NPV < 0 means it destroys value; NPV = 0 means it exactly meets the required rate of return. NPV is the standard method for capital investment decisions because it correctly accounts for the time value of money and gives a direct measure of value creation. Internal Rate of Return (IRR) is the discount rate at which NPV = 0: NPV(r = IRR) = 0. IRR represents the 'yield' of an investment — the effective return it earns on money invested. An investment is acceptable if IRR > required rate of return (cost of capital). IRR is computed numerically (bisection or Newton-Raphson) because there's no closed-form solution for general cash flow patterns. Complications: (1) multiple IRRs can exist when cash flows change sign more than once; (2) IRR assumes reinvestment at the IRR rate, which may be unrealistic for high-IRR projects; (3) comparing mutually exclusive projects by IRR alone can give wrong decisions — use NPV or the incremental IRR method. The payback period is the time to recover the initial investment from undiscounted cash flows — simpler but ignores the time value of money.

Real-World Applications

  • •Capital investment decisions: evaluate whether to purchase a new machine, build a new facility, or acquire a company using NPV and IRR analysis.
  • •Project prioritization: rank multiple potential projects by NPV (highest NPV first) when capital is constrained.
  • •Acquisition valuation: compute the NPV of a target company's projected cash flows to determine maximum reasonable acquisition price.
  • •Equipment replacement analysis: compare keeping existing equipment vs buying new using NPV of the incremental cash flows.
  • •Public infrastructure evaluation: NPV of benefits minus costs for public projects (roads, bridges, schools), often using social discount rates lower than private.

Frequently Asked Questions

What is NPV?

Net Present Value is the sum of all project cash flows discounted to present value at the required rate of return. If NPV > 0, the project creates value beyond the cost of capital. If NPV < 0, it destroys value. If NPV = 0, it exactly meets the required return. NPV is the gold standard for investment decisions because it correctly accounts for time value of money and provides a direct measure of value.

What's the difference between NPV and IRR?

NPV gives the value of a project as a dollar amount at today's date. IRR gives the rate of return as a percentage. For independent projects (accept or reject), both methods give the same decision: accept if NPV > 0, or equivalently if IRR > cost of capital. For mutually exclusive projects, NPV is more reliable because IRR can give wrong rankings when projects have very different sizes or cash flow patterns.

What's a reasonable discount rate?

The discount rate should equal the opportunity cost of capital — the return available on alternative investments of equivalent risk. For low-risk projects: 4-6% (roughly corporate bond rates). For average corporate investments: 8-12% (weighted average cost of capital for typical firms). For risky ventures: 15-25%. For startups and high-risk R&D: 25-50%. The risk profile of the specific project determines the appropriate rate.

How do I compute IRR?

IRR is the discount rate at which NPV = 0. There is no closed-form solution for general cash flow patterns — IRR is computed by iteration (bisection, Newton-Raphson). Start with an initial guess (say 10%), compute NPV, adjust the rate up or down based on NPV sign, and iterate until NPV ≈ 0. Modern tools (Excel's IRR function, scientific calculators) do this automatically.

What if NPV is positive for one project and IRR is higher for another?

Go with the project that has higher NPV, not higher IRR. NPV measures absolute value created; IRR is a ratio. A large project with 15% IRR (NPV = $10M) creates more value than a small project with 30% IRR (NPV = $1M), even though the small project has a higher return rate. The NPV method implicitly reinvests at the cost of capital, while IRR implicitly reinvests at IRR — which is usually unrealistic for high-IRR projects.

Related Calculators

References & Further Reading

Add the live NPV / IRR Calculator to your site. Free to embed, with a link back to MegaCalc.