October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
The Finance Base
The Money Desk · Blog
Re:

How to Calculate Net Present Value (NPV) and Internal Rate of Return (IRR) in Excel

Calculate NPV and IRR correctly in Excel, choose between periodic and date-based functions, avoid the initial-investment error, and interpret results against a hurdle rate.
From TheFinanceBase Team7 min to read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For regularly spaced cash flows, calculate NPV with =NPV(discount_rate,future_cash_flows)+initial_cash_flow and IRR with =IRR(all_cash_flows). Enter the time-zero investment as a negative number and keep it outside Excel’s NPV range. For transactions on irregular dates, use XNPV and XIRR instead.

NPV is value in currency at a chosen required return. IRR is the rate that makes the modeled NPV equal to zero. Together, they show whether a project clears its hurdle rate and how sensitive that conclusion is to timing and assumptions.

NPV and IRR: what each metric tells you

Both measures apply the time value of money: a dollar received later is worth less today than a dollar received now.

  • NPV discounts future net cash flows at a required return, then includes the initial investment. It is expressed in currency.
  • IRR is the discount rate that makes NPV equal to zero. It is expressed as a percentage.

For a conventional project, the relationship is:

NPV(IRR(cash flows), cash flows) ≈ 0

The small residual in a worksheet is normal because Excel uses an iterative calculation. Microsoft explains these definitions in its NPV and IRR overview.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
BA II Plus Financial Calculator
  • Profitability calculations; cash flow function Calculates NPV and IRR for uneven cash flows
  • Time-value-of-money and Amortization keys solve problems including: pension calculations, loans, mortgages, etc.
  • Ideal calculator for students, managers and statisticians
  • Built-in functionality : List-based one- and two-variable statistics with four regression options: linear, logarithmic, exponential and power
  • The BA II Plus calculator is approved for use on the following professional exams: Chartered Financial Analyst exam. GARP Financial Risk Manager (FRM) exam. Certified Management Accountants exam
  • NPV greater than zero: the project is expected to create value above the selected discount rate.
  • NPV equal to zero: the project approximately earns the selected discount rate.
  • NPV less than zero: the project falls short of that rate.
  • IRR above the hurdle rate: usually supports accepting a standalone project, assuming the cash-flow model is sound.

A positive NPV is conditional on the cash-flow forecast, terminal value, timing, and discount rate; it is not an unconditional guarantee of profit.

Build the cash-flow worksheet correctly

Use one consistent viewpoint. From an investor’s perspective, money paid out is negative and money received is positive. Include net cash flow rather than revenue alone, unless a revenue-only analysis is specifically intended.

Period Date Net cash flow Discount rate
0 1/1/2026 -100,000 10%
1 1/1/2027 30,000 10%
2 1/1/2028 35,000 10%
3 1/1/2029 40,000 10%
4 1/1/2030 45,000 10%

Include operating costs, taxes, working-capital changes, financing assumptions, and after-tax salvage proceeds where they belong in the project model. Keep the rate in a separate input cell. Do not mix annual cash flows with a monthly rate without converting the rate.

Calculate periodic NPV in Excel

Assume the discount rate is in B1, the time-zero investment is in B2, and future cash flows are in C2:G2:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

=NPV($B$1,C2:G2)+B2

If the initial outlay is in C2 and future cash flows are in D2:H2, use:

=NPV($B$1,D2:H2)+C2

Why the initial cash flow stays outside NPV

Excel’s NPV(rate,values) treats the first supplied value as arriving at the end of period 1. An investment made immediately occurs at time zero, so it must be added separately. This is the most common Excel NPV error.

Incorrect when B2 is the immediate investment:

=NPV(10%,B2:G2)

Correct:

=NPV(10%,C2:G2)+B2

Microsoft documents this period-end convention in its NPV function guidance.

Calculate periodic IRR in Excel

When the complete sequence, including the initial outlay, is in B2:G2, enter:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
CATIGA Financial Calculator Business Analyst Master, TVM, IRR, NPV, Cash Flow, Amortization & Break-Even, Perfect for Real Estate, Banking, Accounting & Finance Professionals, 10-Digit LCD, CF-300
  • PROFESSIONAL FINANCIAL CALCULATOR : Built-in TVM, IRR, NPV. Engineered for business analysts, real estate investors, accountants, and finance students.
  • ADVANCED CASH FLOW & AMORTIZATION : Execute time value of money, break-even analysis, depreciation schedules, and bond pricing. Trusted for professional exam prep", MBA coursework, and banking certifications.
  • CATIGA CF-300 : Flip-open hard case with a snap-close design for a secure fit. Compact and portable: designed for daily professional use in office, classroom, or on-site.
  • ALL-IN-ONE FOR PROFESSIONALS : From NPV/IRR for real estate analysis to statistical calculations for business analysts. Handles probability, linear regression, and complex financial formulas.
  • MORTGAGE, LOAN & INVESTMENT CALCULATOR : Covers bond pricing, loan amortization, investment analysis, and exam-level computations. Your go-to accounting calculator, business calculator, and real estate calculator in one device.

=IRR(B2:G2)

Format the result as a percentage. Cash flows must occur at regular intervals such as monthly, quarterly, or annual periods, and the range must contain at least one negative and one positive value.

Using the guess argument

Excel’s optional guess defaults to 10%. It is only the starting point for the iterative search, not a target return:

=IRR(B2:G2,10%)
=IRR(B2:G2,-20%)

If Excel returns #NUM!, try a different plausible guess and inspect the cash-flow pattern. Different guesses can expose different roots when more than one IRR exists.

Microsoft’s documented example uses cash flows of -70,000, 12,000, 15,000, 18,000, 21,000, and 26,000. Its shorter range returns approximately -2.1%, while adding the fifth year returns approximately 8.7%; the result changes because the cash-flow history changes. See Microsoft’s IRR documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use XNPV and XIRR for actual dates

Periodic functions are inappropriate when payments occur on uneven dates. Put real Excel dates and cash flows in equal-length ranges:

Date Cash flow
1/1/2026 -100,000
5/15/2026 15,000
12/31/2026 30,000
7/1/2027 45,000
1/15/2028 60,000

With the discount rate in D1:

=XNPV($D$1,B2:B6,A2:A6)
=XIRR(B2:B6,A2:A6)

XNPV and XIRR discount according to each date and use a 365-day year. The first date establishes the schedule’s starting point. Dates must be valid Excel dates, not text that merely looks like a date, and each date range must match the cash-flow range. Dates before the first date can produce #NUM!. See Microsoft’s XNPV and XIRR references.

Microsoft’s date-based example

For -10,000 on 1-Jan-08, followed by 2,750 on 1-Mar-08, 4,250 on 30-Oct-08, 3,250 on 15-Feb-09, and 2,750 on 1-Apr-09, Microsoft reports:

=XNPV(9%,A2:A6,B2:B6) → $2,086.65
=XIRR(A3:A7,B3:B7,10%) → 37.34%

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HP 10bII+ Financial Calculator, 100+ Functions, Statistics & Algebra
  • HP 10BII+ FOR STUDENTS & PROFESSIONALS – This HP calculator is built for business, finance, accounting, and statistics courses. Perfect for learners and professionals who need to solve common financial problems quickly without memorizing formulas or relying on spreadsheets.
  • 100+ FUNCTIONS FOR REAL WORLD MATH – Quickly solve time value of money, interest rates, loan payments, NPV, IRR, cash flows, and more. The 10bII+ also includes probability distributions for statistics courses—a feature not often found in financial calculators.
  • ALGORITHMIC INPUT WITH DEDICATED KEYS – This high-school/college calculator uses algebraic and chain logic with minimal keystrokes. Layout appears the same as standard calculators for easy learning. Dedicated keys give quick access to commonly used financial and statistical functions
  • APPROVED FOR MAJOR EXAMS – The HP 10bII+ algebra calculator is permitted for use on SAT, PSAT/NMSQT, and AP tests. An ideal statistics calculator and business calculator for school finance and accounting students preparing for class, coursework, or standardized exams.
  • INCLUDES TRAVEL CASE, CLEANING CLOTH & BATTERIES– Slim, durable, and easy to keep on hand or store in a backpack or locker. Includes a protective case, cleaning cloth, and batteries so it’s ready out of the box. Large screen with clear contrast (non-backlit) is easy to read during exams or lectures.

Those results depend on the exact values, dates, and rate shown.

Choose the right function

Situation Function
One cash flow per year, month, or quarter NPV
Actual transaction dates vary XNPV
Return on regular periods IRR
Return on actual dates XIRR
Separate financing and reinvestment rates MIRR

Use =MIRR(values,finance_rate,reinvest_rate) when conventional IRR’s reinvestment assumption is unsuitable or when you want separate rates for financing negative cash flows and reinvesting positive cash flows. Microsoft lists these functions in its cash-flow guide.

Set a defensible discount rate

Excel does not choose the rate. Possible bases include a company’s weighted average cost of capital, an investor’s required return, opportunity cost, a risk-adjusted project return, an approved hurdle rate, or a benchmark investment return.

Match the rate to the cash flows’ frequency, currency, inflation basis, risk, and financing assumptions. For monthly cash flows, a stated nominal annual rate can be converted simply with:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

=annual_rate/12

If the annual figure is an effective annual rate, the equivalent monthly effective rate is:

=(1+annual_effective_rate)^(1/12)-1

These conversions are not interchangeable. Use the one that matches how the annual rate was quoted and how the cash flows are modeled.

Reconcile the result and test the model

  1. Define the project boundary and list every relevant inflow and outflow.
  2. Choose periodic or date-based functions.
  3. Enter outflows as negative and inflows as positive.
  4. Calculate NPV and IRR (or XNPV and XIRR).
  5. Format NPV as currency and IRR as a percentage.
  6. Test several discount rates, such as 6%, 8%, 10%, 12%, and 14%.
  7. Review taxes, inflation, working capital, and terminal value assumptions.

For a periodic model, verify that IRR brings NPV approximately to zero:

=NPV(IRR(B2:G2),C2:G2)+B2

For dated cash flows:

=XNPV(XIRR(B2:B10,A2:A10),B2:B10,A2:A10)

An NPV profile—discount rate on the horizontal axis and NPV on the vertical axis—shows how robust the decision is. Its zero crossing corresponds to IRR, subject to the possibility of multiple roots.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
BA II Plus Professional Financial Calculator Texas Instruments
  • Solves time-value-of-money calculations such as annuities, mortgages, leases, savings, and more
  • Performs cash-flow analysis for up to 32 uneven cash flows with up to 4-digit frequencies
  • Calculates various financial functions: Net Future Value Net present Value Modified Internal Rate of Return Internal Rate of Return Modified Duration Payback Discounted Payback
  • The Texas Instruments BAII Plus Professional features an Automatic Power Down (APD) function for extended battery life
  • Prompted display guides you through financial calculations showing current variable and label. Ten-digit display

Troubleshoot Excel errors and surprising results

Symptom Likely cause Action
#NUM! from IRR or XIRR No valid solution, multiple roots, or an unhelpful starting guess Check for both signs, try guesses such as 5% and 25%, and inspect NPV at several rates.
#VALUE! from XNPV or XIRR Text dates, invalid dates, nonnumeric cash flows, or mismatched ranges Convert dates with =DATE(2026,1,1), make inputs numeric, and ensure equal range lengths.
Unexpected NPV Time-zero outlay was included inside NPV Move the initial cash flow outside the range and add it separately.
Unexpected IRR Irregular dates were passed to IRR Use XIRR with the actual dates.

A sequence such as negative, positive, negative, positive can have multiple mathematical IRRs. Excel returns the first result it finds, and a different guess may return another. Prefer NPV, show the NPV profile, explain the sign changes, or use MIRR rather than presenting one IRR as unambiguous.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Monthly cash flows and annualization

For regular monthly cash flows with a nominal annual rate:

=NPV(annual_rate/12,month_1:month_n)+initial_investment

=IRR(all_monthly_cash_flows)

Multiplying a monthly IRR by 12 is nominal annualization:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

=IRR(all_monthly_cash_flows)*12

An effective annualized return compounds the monthly result:

=(1+monthly_IRR)^12-1

For uneven monthly or other dated transactions, use XIRR, which returns an annualized rate from the date schedule.

Make the investment decision

  1. Set the required return before looking at the result.
  2. Accept a standalone project when NPV is positive and IRR exceeds that hurdle, provided the model and assumptions are credible.
  3. For mutually exclusive projects, compare NPVs at the same discount rate; the highest IRR is not automatically the best choice.
  4. Investigate ranking conflicts caused by project size, life, timing, unconventional signs, or differing reinvestment assumptions. Incremental NPV or incremental IRR can help.
  5. Run sensitivity cases for discount rate, sales, costs, taxes, working capital, and terminal value.

For example, an NPV of $18,000 at a 10% discount rate means the modeled project creates $18,000 of value above that required return. An IRR of 16% means the modeled cash flows have a zero-NPV rate of approximately 16%.

Software compatibility

Microsoft’s support pages list these functions for current Microsoft 365 and several perpetual Excel releases, including Excel 2024, 2021, 2019, and 2016; verify the exact edition and platform deployed by your organization. Excel is the safest choice when a workbook must preserve .xlsx behavior, add-ins, or corporate templates.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
HP 10bII+ Financial Calculator for College and High School, SAT AP PSAT
  • Brand New in box; The product ships with all relevant accessories
  • Dedicated keys allow easy access to common financial and statistics functions
  • Easy-to-use design provides business, finance and statistical calculations fast
  • Specially designed to meet the mathematical needs

Office Home 2024 is Microsoft’s one-time desktop purchase; major-version upgrades are not included automatically. Microsoft 365 provides subscription access and ongoing updates. Check current terms at Microsoft’s comparison page and its subscription-versus-one-time explanation.

Google Sheets suits browser collaboration but is not guaranteed to reproduce every Excel add-in, VBA feature, or workbook behavior; see Google Workspace pricing. LibreOffice Calc is a free desktop alternative with documented financial functions, but its available official guide is older, so validate compatibility with the current release: LibreOffice Calc function documentation.

Frequently Asked Questions

Should the initial investment be included in Excel’s NPV range?

No. Keep the time-zero outlay outside the periodic NPV range and add it separately because Excel treats supplied values as end-of-period cash flows.

Why does Excel return a negative IRR?

A negative IRR can be mathematically valid when the modeled cash flows produce a zero NPV only at a negative rate. Check the signs, timing, and forecast before interpreting it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can a project have more than one IRR?

Yes. Multiple sign changes can create multiple roots. Use NPV and an NPV profile, and consider MIRR instead of reporting one IRR without qualification.

Why does XIRR differ from IRR?

IRR assumes equal periods, while XIRR uses the actual dates and a 365-day basis. Different timing produces different results.

Is a positive NPV always a good investment?

It indicates value above the selected discount rate under the stated assumptions. It is not a guarantee if the rate, forecast, taxes, timing, or terminal value is unrealistic.

Quick Recap

SaleBestseller No. 1
BA II Plus Financial Calculator
BA II Plus Financial Calculator
Ideal calculator for students, managers and statisticians
$36.99
Bestseller No. 4
BA II Plus Professional Financial Calculator Texas Instruments
BA II Plus Professional Financial Calculator Texas Instruments
Performs cash-flow analysis for up to 32 uneven cash flows with up to 4-digit frequencies
$51.87
Bestseller No. 5
HP 10bII+ Financial Calculator for College and High School, SAT AP PSAT
HP 10bII+ Financial Calculator for College and High School, SAT AP PSAT
Brand New in box; The product ships with all relevant accessories; Dedicated keys allow easy access to common financial and statistics functions
$29.85

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More post from the Money Desk

  1. The Money DeskBlogTheFinanceBase07 MAR 2625 minWhat Is a 457 Plan?
  2. The Money DeskBlogTheFinanceBase07 MAR 2621 minTime Value of Money: What It Is and How It Works
  3. The Money DeskBlogTheFinanceBase07 MAR 2627 minAre You Living in One of These Top 10 Most Expensive Cities to Retire?
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.