Example 1
Two flows exactly a year apart
B5 =ROUND(XIRR(B2:B3,A2:A3),4)
Result: 10.00%
365 days separate the dates, so 1,000 growing to 1,100 is exactly 10% a year.
B5 =ROUND(XIRR(B2:B3,A2:A3),4) returns 10.00%
Returns the annualised internal rate of return of cash flows that occur on specific dates, using actual days over a 365-day year.
Syntax
=XIRR(, , )
All versions of Excel.
Try it
Edit the formula in B5 or change the inputs. The sheet recalculates as you type.
B5 =ROUND(XIRR(B2:B3,A2:A3),4) returns 10.00%
XIRR finds the annual rate of return for cash flows that happen on irregular dates. It is the dated version of IRR. =XIRR(B2:B6,A2:A6) takes the cash flows in column B and their dates in column A and returns one annualised rate. Use it for investments with uneven deposits and withdrawals, property deals, fund returns and any cash flow list tied to real dates.
XIRR finds the rate at which XNPV equals zero: the rate that makes the dated cash flows discount back to nothing. Each flow is discounted by the number of days since the first date, over 365. For two flows exactly a year apart, such as -1,000 on 1 January 2025 and 1,100 on 1 January 2026, XIRR returns exactly 10%.
IRR assumes equal gaps between cash flows and returns a rate per period. If you give it dated flows with unequal gaps, the answer is wrong. For the same three flows of -10,000, +2,000 and +9,000, six months and a year apart, IRR returns 5.39% and XIRR returns 11.09%. They differ because IRR treats the periods as equal, while XIRR counts the actual days.
Use IRR when the flows are truly regular and you want a rate per period, such as monthly. Use XIRR whenever the dates matter or the result needs to be a yearly rate.
#VALUE!, and an earlier date than the first one causes #NUM!.#NUM!, and a closer guess can help.=IF(XIRR(values,dates)>=hurdle,"Meets hurdle","Below hurdle").=IFERROR(XIRR(values,dates),"No rate").The result is a decimal, so format the cell as a percentage.
10%. Supply a closer figure if XIRR returns #NUM!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B5 =ROUND(XIRR(B2:B3,A2:A3),4)
Result: 10.00%
365 days separate the dates, so 1,000 growing to 1,100 is exactly 10% a year.
B5 =ROUND(XIRR(B2:B3,A2:A3),4) returns 10.00%
Example 2
B8 =ROUND(XIRR(B2:B6,A2:A6),4)
Result: 37.34%
The dated flows return an annual rate of 37.34%.
B8 =ROUND(XIRR(B2:B6,A2:A6),4) returns 37.34%
Example 3
B6 =ROUND(XIRR(B2:B4,A2:A4),4)
Result: 11.09%
XIRR counts 181 days to the second flow and 365 days to the third, and returns an annual rate of 11.09%.
B6 =ROUND(XIRR(B2:B4,A2:A4),4) returns 11.09%
Example 4
B6 =ROUND(IRR(B2:B4),4)
Result: 5.39%
IRR ignores the dates and treats the flows as three equal periods, so it returns 5.39% per period. That is not a yearly rate here. Use XIRR when dates matter.
B6 =ROUND(IRR(B2:B4),4) returns 5.39%
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B6, return the annual rate of return of the three dated cash flows.
Answer in B6.
#VALUE!, and mismatched sizes cause #NUM!.#NUM!. Sort the flows so the first row is the earliest, or at least make sure the first date is the earliest.#NUM!.IRR assumes equal gaps between flows and returns a rate per period. XIRR uses the actual dates and returns an annual rate, so it suits irregular cash flows.
The flows may not include both a positive and negative value, a date may be earlier than the first date, or the search didn't converge. Try a closer guess.
Only the first date must be the earliest. The others can be in any order, as long as each value sits next to its own date.
List each deposit as a negative value and each withdrawal as a positive one, each on its date, and add the current value as a final positive flow dated today.
Yes. It uses actual days over a 365-day year, so the result is an annual rate whatever the spacing.
XIRR is taught in Dates and financial modelling, lesson 20: Internal rate of return with IRR and XIRR. Each lesson is a short, graded exercise like the one above.