Tabellab

Uneven Cash Flows: NPV, IRR, Money- vs Time-Weighted Return

Lesson 1 of 20Lab

All lessons
  1. Uneven Cash Flows: NPV, IRR, Money- vs Time-Weighted ReturnLabFree
  2. Annuities & Perpetuities: Ordinary vs Due, Deferred & GrowingLab Locked
  3. Describing Returns: Mean, Median, Geometric Mean, Skew & KurtosisLab Locked
  4. Probability: Expected Value, Variance, Covariance & a Two-Asset PortfolioLab Locked
  5. Binomial & Normal Distributions, z-Scores and Safety-FirstLab Locked
  6. Sampling & Confidence Intervals with the t-DistributionLab Locked
  7. Hypothesis Testing: t-Test of a Mean, p-Value & DecisionLab Locked
  8. Simple Linear Regression: Beta, R², SEE & the t-Test of the Slope (Chart)Lab Locked
  9. Stated, Effective & Continuously Compounded Rates: EAR, Conversions and Rate ComparisonsLab Locked
  10. Annualised, Real, Log & Leveraged ReturnsLab Locked
  11. Loan Amortisation & Funding a Goal: Payment, Interest Split and a Two-Stage Retirement PlanLab Locked
  12. Implied Returns & Cash-Flow Additivity: Bond Yields, Implied Growth and Forward RatesLab Locked
  13. Risk-Adjusted Returns: Sharpe Ratio, Downside Deviation & Sortino Ratio (Chart)Lab Locked
  14. Three-Asset Portfolios: Correlation Pairs, Portfolio Risk & Diversification (Conditional Format)Lab Locked
  15. Conditional Probability, Bayes' Formula & Counting RulesLab Locked
  16. Lognormal Prices & Monte Carlo Simulation: Expected Price, Shortfall Probability and a HistogramLab Locked
  17. Comparing Two Groups: Pooled t-Test of a Difference in Means and the Paired t-TestLab Locked
  18. Tests of Variance and Correlation: Chi-Square, F-Test and the t-Test of rLab Locked
  19. Regression ANOVA & Prediction Intervals: SST, SSR, SSE, the F-Test and ForecastingLab Locked
  20. Final Project: Fund Review Dashboard with Growth of $100, Sharpe Ratio and a Significance Test (Chart)Lab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Who this lesson is for

If you are working through the quantitative methods part of a finance qualification, studying corporate finance, or you simply want to know whether an investment really earns what it promises, this lesson is for you. Uneven cash flows are everywhere: a project that pays more in some years than in others, a fund account where you add and withdraw money at different times, a business plan with a ramp-up. Two questions come up again and again. What is this stream of cash flows worth today? And what return did the investor actually earn?

CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute. This course is independent practice in the style of quantitative-methods questions. It is not affiliated with, endorsed by or connected to CFA Institute, it is not official curriculum or exam material, and it makes no claims about how any exam is set or scored. Check the official sources for current requirements. Everything here is educational only and not investment advice.

In this free first lesson you work with Harbor Point Capital, a fictional firm. You value a five-year project with NPV and IRR, then look at one investor's account and measure the return twice: as a money-weighted return and as a time-weighted return. The two answers differ, and understanding why is one of the most useful ideas in performance measurement. All numbers are invented for practice.

The core idea: money has a time value

A dollar today is worth more than a dollar in five years, because today's dollar can be invested and earn a return in the meantime. To compare cash flows that arrive at different times, you move them all to the same point in time, usually today. Moving a future amount to today is called discounting: you divide it by (1 + r)t, where r is the required return per period and t is the number of periods until the cash flow arrives.

The required return, also called the discount rate or hurdle rate, is the return you could earn on an alternative investment with similar risk. In the lab it is 9% per year, chosen as an example. A higher required return makes future cash flows worth less today, so the same project looks less attractive.

NPV: what the whole stream is worth today

Net present value (NPV) is the sum of every cash flow discounted to today, including the initial investment, which is already "today" and therefore not discounted. If NPV is positive, the project earns more than the required return and adds value. If it is negative, you would be better off with the alternative.

Here is the project from the lab: an outflow of 250,000 now and five uneven inflows. The table discounts each flow by hand so you can see what the NPV function does internally.

YearCash flow ($)Discount factor 1 ÷ 1.09^tPresent value ($)
0−250,0001.0000−250,000
140,0000.917436,697
260,0000.841750,501
380,0000.772261,775
490,0000.708463,758
570,0000.649945,495
Total90,000NPV 8,226

The inflows add up to 340,000 in nominal terms, which looks like a 90,000 profit. After discounting at 9%, they are worth 258,226 today, so the NPV is only 8,226. Still positive, so the project clears the hurdle, but by a much thinner margin than the undiscounted sum suggests. Notice how the year-5 flow of 70,000 shrinks to about 45,500 in present-value terms.

Cash flow vs present value at 9%Cash flowPresent value−250k−200k−150k−100k−50k050k100kYear 0Year 1Year 2Year 3Year 4Year 5Sum of PVs of years 1 to 5: 258,226NPV = −250,000 + 258,226 = 8,226
Figure 1. Each year's cash flow (sky) next to its present value at 9% (mint). The year-0 outflow is not discounted. The later the inflow, the more it shrinks. The present values of years 1 to 5 add up to 258,226, just above the 250,000 investment.

The classic Excel trap: the NPV function assumes the first value in the range arrives one period from now. If you write =NPV(B6,B4:G4), Excel discounts the year-0 outflow by one year too, and every other flow by one year too many. The result is the correct NPV divided by 1.09, about 7,547 instead of 8,226. Always keep the year-0 flow outside: =B4+NPV(B6,C4:G4).

IRR: the break-even discount rate

The internal rate of return (IRR) is the discount rate at which the NPV is exactly zero. It is the return the project itself earns per year on the money tied up in it. In Excel, =IRR(B4:G4) includes the year-0 flow, because IRR treats the first value as "now". For our project the IRR is 10.14%.

The NPV profile below shows the link between the two measures. It plots the NPV of the same cash flows at many different discount rates. The curve falls as the rate rises, and where it crosses zero is the IRR.

NPV profile: NPV at different discount rates−60k−40k−20k020k40k60k80k100k0%4%8%12%16%20%discount raterequired 9%: NPV 8,226IRR 10.14%: NPV = 0reject zone
Figure 2. NPV profile of the Harbor Point project. At the 9% required return the NPV is 8,226. The curve crosses zero at the IRR of 10.14%. Any required return above the IRR makes the NPV negative.

For a conventional project, one outflow followed only by inflows, the decision rules agree: accept if NPV > 0, which is the same as IRR > required return. Here 10.14% > 9% and the NPV is positive, so both say accept. The rules can disagree when you rank two mutually exclusive projects of different size or timing, or when the cash flows change sign more than once (then a project can have several IRRs or none). In those cases NPV is the more reliable guide, because it measures value added in dollars.

If you only remember one sentence: NPV answers "how much value?", IRR answers "what rate?". Use NPV to decide, and IRR to communicate.

Money-weighted versus time-weighted return

Now switch from a project to an investor. Over two years the investor buys 100 shares of a fund at 50, buys another 100 at 56 one year later, collects dividends of 1 per share each year, and sells all 200 shares at 60 at the end of year 2. What return did the investor earn? There are two correct answers, and they answer different questions.

YearPrice ($)Shares bought (+) / sold (−)Dividend per share ($)Shares held in yearInvestor cash flow ($)Holding-period return
050+1000.000−5,000
156+1001.00100−5,50014.00%
260−2001.0020012,2008.93%

The money-weighted return (MWR) is simply the IRR of the investor's own cash flows. Purchases are outflows, dividends and sale proceeds are inflows. Year 0: −100 × 50 = −5,000. Year 1: −100 × 56 + 100 × 1 = −5,500 (a new purchase minus the dividend received). Year 2: 200 × 60 + 200 × 1 = 12,200. The IRR of −5,000, −5,500 and 12,200 is 10.60% per year.

The time-weighted return (TWR) ignores how much money was invested and measures the fund's own performance. You compute the holding-period return of each sub-period between cash flows, HPR = (end price + dividend − start price) ÷ start price, then chain them geometrically. Year 1: (56 + 1 − 50) ÷ 50 = 14.00%. Year 2: (60 + 1 − 56) ÷ 56 = 8.93%. Chained: (1.14 × 1.0893)1/2 − 1 = 11.44% per year.

Why does the MWR (10.60%) come out lower than the TWR (11.44%)? The investor doubled the position just before the weaker year. Year 2 returned only 8.93%, and it was earned on twice as much money as the strong 14.00% of year 1. The MWR gives the second year more weight because more money was at work, so the investor's personal result is worse than the fund's. If the investor had added money before the strong year, the MWR would have been higher than the TWR.

  • Use TWR to judge a fund manager, who does not control when clients deposit or withdraw. That is why manager performance is usually reported time-weighted.
  • Use MWR to judge the investor's own experience, including the effect of their timing decisions.
  • Do not average the HPRs arithmetically to get a per-year rate. (14.00% + 8.93%) ÷ 2 = 11.46%, close here but wrong in general and badly wrong when returns are volatile.

The formulas in the lab

These are the formulas the Coach expects, with the values for the lab data.

ResultExcel formulaValue
NPV at 9%=B4+NPV(B6,C4:G4)8,226
IRR of the project=IRR(B4:G4)10.14%
Investor cash flow, year 2=-D13*D12+D15*D1412,200
Money-weighted return=IRR(B16:D16)10.60%
Holding-period return, year 1=(C12+C14-B12)/B1214.00%
Time-weighted return per year=((1+C17)*(1+D17))^(1/2)-111.44%

How to do it in Excel, step by step

The lab sheet already has the data in place. The same steps work in any workbook.

  1. Put the years 0 to 5 in B3:G3 and the project cash flows in B4:G4. Outflows are negative, inflows positive.
  2. Enter the required return in B6 as 9% (Excel stores 0.09). Press Ctrl+Shift+5 for the percent format.
  3. In B7 type =B4+NPV(B6,C4:G4). The year-0 flow is added outside the NPV function.
  4. In B8 type =IRR(B4:G4). This time the year-0 flow belongs inside the range.
  5. Optional check: Data › What-If Analysis › Goal Seek, set cell B7 to value 0 by changing B6. Excel finds the IRR by trial and error. Press Ctrl+Z afterwards to restore 9%.
  6. For the investor, in B16 type =-B13*B12+B15*B14 and fill right to D16 with Ctrl+R. A sale is a negative purchase, so the minus sign turns it into an inflow.
  7. In B19 type =IRR(B16:D16) for the money-weighted return.
  8. In C17 type =(C12+C14-B12)/B12 and fill right to D17 for the holding-period returns.
  9. In B20 type =((1+C17)*(1+D17))^(1/2)-1 for the time-weighted return per year. For n years use the power 1/n.
  10. Audit with Ctrl+`: the NPV must not include B4 inside the function, and both IRR ranges must start at year 0.
When cash flows do not arrive at evenly spaced dates, use XNPV and XIRR with a row of real dates. NPV and IRR assume equal periods.

Common mistakes and how to spot them

  • Putting year 0 inside NPV. =NPV(B6,B4:G4) gives about 7,547 here instead of 8,226. Spot it: your NPV equals the right answer divided by (1 + r).
  • Adding without discounting. =SUM(B4:G4) gives 90,000, ignoring the time value of money. Spot it: the result does not change when you change the rate.
  • Wrong signs for the investor. Treating purchases as inflows flips the cash flows, and IRR returns a meaningless or negative rate. Spot it: the first investor flow should be negative.
  • Forgetting dividends. The investor's flows and the HPRs both include income. Leaving it out understates both returns.
  • Confusing MWR and TWR. Calling the chained HPR result the MWR, or the IRR the TWR. Spot it: TWR uses prices only, MWR uses the investor's dollar flows.
  • Not annualising. (1.14 × 1.0893) − 1 is the two-year return, about 24.2%. Take the square root of the growth factor for a per-year rate.
  • Trusting IRR with non-conventional flows. If the signs change more than once, check the NPV profile. Several IRRs are possible.

Quantitative methods practice course for finance exams: NPV, IRR, statistics and regression in Excel
The course turns the core quantitative-methods topics, from time value of money to regression, into hands-on spreadsheet cases.

Quick reference: functions and shortcuts

Keep these next to the lab. They cover everything in this lesson and prepare the next one.

Function / shortcutWhat it doesExample
NPV(rate, values)Present value of flows that start one period from now=B4+NPV(B6,C4:G4)
IRR(values, [guess])Rate that makes the NPV of evenly spaced flows zero=IRR(B4:G4)
XNPV / XIRRSame ideas for flows on actual dates=XIRR(values,dates), dates in their own row
PV(rate, nper, pmt)Present value of a level annuity (next lesson)=PV(9%,5,-1000)
SUMPRODUCTDiscount by hand: flows × discount factors=SUMPRODUCT(B4:G4,1/(1+B6)^B3:G3)
^Power, for compounding and geometric averages=(1.14*1.0893)^(1/2)-1
Data › What-If Analysis › Goal SeekFind the rate that sets NPV to 0 (a manual IRR)Set B7 to 0 by changing B6
Ctrl+Shift+5Percent formatSelect B8
Ctrl+`Show formulas to audit the sheetPress again to switch back

Real-world uses

  • Capital budgeting. A company weighing a new machine, store or software system discounts the expected cash flows at its required return and invests only when the NPV is positive.
  • Comparing fund managers. Fund performance is usually compared on a time-weighted basis, so that client deposits and withdrawals do not distort the manager's skill.
  • Reviewing your own portfolio. The money-weighted return (often shown by brokers as a personal rate of return) tells you how your timing of deposits and withdrawals worked out.
  • Private equity and real estate. Investments with irregular calls and distributions are typically described with IRR, because the investor's cash flows drive the result.
  • Loan and lease decisions. The IRR of a financing offer's cash flows is its effective cost, which you can compare with other offers.

What you will build in the rest of this course

This first lesson is free. The remaining 19 lessons are part of the paid course (one-time price). Each one is a new Harbor Point case with its own live lab and Coach.

Annuities & Perpetuities: Ordinary vs Due, Deferred & Growing. You value a 10-year payment stream paid at year-end and at the start of each year, a preferred share, a perpetuity that starts later and a growing dividend, using PV and the perpetuity formulas.

Describing Returns: Mean, Median, Geometric Mean, Skew & Kurtosis. You describe ten years of fund returns with arithmetic and geometric means, the median, skewness and excess kurtosis, and see why the geometric mean is the one that compounds.

Probability: Expected Value, Variance, Covariance & a Two-Asset Portfolio. You weight scenario returns by probability to get expected return, standard deviation, covariance and correlation, then the risk of a 60/40 portfolio.

Binomial & Normal Distributions, z-Scores and Safety-First. You compute binomial probabilities for a trading signal, a z-score for a bad year and Roy's safety-first ratio with the shortfall probability of three portfolios.

Sampling & Confidence Intervals with the t-Distribution. You build 95% and 99% confidence intervals for a fund's mean monthly return from a small sample, with the standard error and critical t values.

Hypothesis Testing: t-Test of a Mean, p-Value & Decision. You test whether a fund's mean active return is above zero with the t-statistic, the critical value, a one-tailed p-value and the decision rule.

Simple Linear Regression: Beta, R², SEE & the t-Test of the Slope (Chart). You regress a fund's excess returns on the market's, read the slope as beta, measure fit with R² and SEE, test the slope and chart the regression line.

Summary

To value uneven cash flows, discount each one to today and add them up: that is the NPV, 8,226 for the Harbor Point project at 9%. In Excel keep the year-0 flow outside the NPV function. The IRR, 10.14% here, is the rate where NPV is zero, and for a conventional project NPV > 0 and IRR > required return lead to the same decision. For an investor, the money-weighted return is the IRR of their own flows (10.60%), while the time-weighted return chains the holding-period returns (11.44%) and removes the effect of timing. The gap between them tells you whether the investor's timing helped or hurt.

Now scroll up to the lab and do it yourself: NPV, IRR, the investor's cash flows, the money-weighted and the time-weighted return. The Coach checks each answer, also with changed numbers, and explains the trap whenever you fall into one.

Frequently asked questions

How do you calculate NPV in Excel?

Use =initial cash flow + NPV(rate, later cash flows), for example =B4+NPV(B6,C4:G4). Excel's NPV function assumes the first value arrives one period from now, so the year-0 flow must stay outside the function.

Why is my Excel NPV different from my calculator?

Most often the year-0 cash flow was included inside the NPV function, which discounts every flow by one period too many. The result is then the correct NPV divided by (1 + rate).

What is the difference between NPV and IRR?

NPV is the value a project adds in today's money at a given required return. IRR is the discount rate at which the NPV is zero. For conventional projects both lead to the same accept or reject decision.

What is the difference between money-weighted and time-weighted return?

The money-weighted return is the IRR of the investor's own cash flows, so it reflects the timing and size of deposits and withdrawals. The time-weighted return chains the holding-period returns and removes that timing effect.

Why are fund managers evaluated on time-weighted return?

Managers usually do not control when clients add or withdraw money. The time-weighted return removes the effect of those cash flows, so it reflects the manager's investment decisions rather than client timing.

Is this course affiliated with CFA Institute?

No. It is independent practice in the style of quantitative-methods questions and is not affiliated with, endorsed by or connected to CFA Institute. It is educational only and not investment advice.

Keep going: Quantitative Methods Practice for Finance Exams (CFA-Style Level I)

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. Annuities & Perpetuities: Ordinary vs Due, Deferred & Growing
  2. Describing Returns: Mean, Median, Geometric Mean, Skew & Kurtosis
  3. Probability: Expected Value, Variance, Covariance & a Two-Asset Portfolio
  4. Binomial & Normal Distributions, z-Scores and Safety-First
  5. Sampling & Confidence Intervals with the t-Distribution
  6. Hypothesis Testing: t-Test of a Mean, p-Value & Decision
  7. Simple Linear Regression: Beta, R², SEE & the t-Test of the Slope (Chart)
  8. Stated, Effective & Continuously Compounded Rates: EAR, Conversions and Rate Comparisons
  9. Annualised, Real, Log & Leveraged Returns
  10. Loan Amortisation & Funding a Goal: Payment, Interest Split and a Two-Stage Retirement Plan
  11. Implied Returns & Cash-Flow Additivity: Bond Yields, Implied Growth and Forward Rates
  12. Risk-Adjusted Returns: Sharpe Ratio, Downside Deviation & Sortino Ratio (Chart)
  13. Three-Asset Portfolios: Correlation Pairs, Portfolio Risk & Diversification (Conditional Format)
  14. Conditional Probability, Bayes' Formula & Counting Rules
  15. Lognormal Prices & Monte Carlo Simulation: Expected Price, Shortfall Probability and a Histogram
  16. Comparing Two Groups: Pooled t-Test of a Difference in Means and the Paired t-Test
  17. Tests of Variance and Correlation: Chi-Square, F-Test and the t-Test of r
  18. Regression ANOVA & Prediction Intervals: SST, SSR, SSE, the F-Test and Forecasting
  19. Final Project: Fund Review Dashboard with Growth of $100, Sharpe Ratio and a Significance Test (Chart)

Buy course — $9.90 See the full course