Contact

XIRR Function in Apple Numbers: Dated Cash Flows and Worked Examples

Financial Advanced Apple Numbers

Calculate investment return from irregularly dated receipts and contributions in Apple Numbers, including matching payment/date ranges and model checking.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =XIRR(B2:B5,C2:C5) estimates an investment’s internal rate of return from cash flows in B2:B5 and their corresponding real dates in C2:C5. Unlike IRR, the transactions need not be equally spaced. Using an illustrative investment of −10,000 on 1 January 2025 followed by receipts of 3,000 on 1 April, 4,000 on 1 September, and 5,000 on 1 January 2026, an independently calculated date-weighted model gives 30.329937723%.

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented for Numbers in that help version; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help; individual-client and older-release availability are not established by this check.
  • Checked: October 14, 2026, against the official XIRR reference. Documentation and independent arithmetic checks; no native Numbers test.

When XIRR is useful

Use XIRR for real-world investment histories with irregular transaction dates: deposits made on different days, business-project cash injections, distributions, sale proceeds and one-off capital receipts. Apple’s financial function selection guide distinguishes the IRR calculation for amounts at equal intervals from XIRR, which associates each amount with a date. XIRR is a return measure, not a proof that investment performance was attractive after fees, taxes or risk.

  • Record cash paid out as negative values and cash received as positive values for a single consistent investor perspective. The signs follow the cash-flow interpretation in Apple’s IRR help; XIRR’s help identifies corresponding payments and dates but does not restate every IRR restriction.
  • Each payment requires a corresponding date value. Use actual date-formatted Numbers cells, not regional date strings whose meaning may change after an import.
  • An investment valued but not sold at a reporting date may be modeled with a hypothetical positive terminal value, explicitly labeled as a valuation assumption rather than cash actually received.
  • XIRR’s time-weighting is sensitive to transaction dates. Simply adding transaction amounts without their dates is not a substitute.

Exact Apple Numbers syntax

=XIRR(payments, dates, guess)
Argument Apple’s documented definition Required?
payments Range of cells containing the investment’s payments/cash flows; use numeric cash-flow values. Yes
dates Range of cells containing the dates corresponding to those cash flows, position by position. Yes
guess A numeric value indicating an initial estimate of the internal rate of return. No. Apple’s XIRR help calls it optional but does not publish a default on this page.

The XIRR reference does not state an omitted-guess default, iteration limit or exact error matrix. Do not import IRR’s documented 10% estimate default into XIRR without separate evidence.

Reproducible example 1: an irregularly dated project investment

Create a Numbers table called InvestmentHistory with at least four columns (A:D), five rows and a header row (row 1). Enter the following as four data rows. To avoid ambiguous typed dates, put the displayed DATE formulas into column C; alternatively enter recognized calendar dates and format the cells as dates. Apple’s DATE function builds date values from year, month and day arguments.

Row A: Event B: Cash flow C: Date formula / actual date
2 Initial purchase -10000 =DATE(2025,1,1) → 1 Jan 2025
3 Distribution 3000 =DATE(2025,4,1) → 1 Apr 2025
4 Distribution 4000 =DATE(2025,9,1) → 1 Sep 2025
5 Final sale 5000 =DATE(2026,1,1) → 1 Jan 2026

Enter in D2 of the same table:

=XIRR(B2:B5,C2:C5)

Independent expected value: approximately 0.3032993772290662, or 30.329937723%. The independent cash-flow model discounts each receipt by elapsed days / 365 and solves the zero-net-present-value condition. The residual is approximately zero. This ACT/365 model reproduces Apple’s published example below, but the function page does not explicitly specify its day-count algorithm; treat the model as an independent check rather than a documented guarantee for all dates and releases.

Why this is not the same number as =IRR(B2:B5): IRR would treat these four entries as three equally spaced periods and yields an independently calculated 8.896339469% per period, whereas the events above are closer together. These rates have different time units and must not be compared as if they were both annual yields.

Reproducible example 2: a one-year cash-flow pair

Create a separate table named OneYearPair, leaving InvestmentHistory unchanged. Enter −1,000 in B2 and +1,100 in B3. Enter real dates =DATE(2025,1,1) in C2 and =DATE(2026,1,1) in C3. Those dates are exactly 365 days apart. Then:

=XIRR(B2:B3,C2:C3)

The independent conventional annual discounted-cash-flow equation has root 0.1 (10%). This is a simple check for the stated 365-day interval.

Apple-published XIRR example as a check

In a third table named AppleExample, put these five cash flows directly in A1:A5 and their dates in B1:B5, with no header row. For unambiguous date entry use DATE with the shown year, month and day, such as =DATE(2019,3,2) for March 2. These are Apple’s published XIRR inputs:

Row Cash flow Date, unambiguous year-month-day
1 -7000 2019-01-01
2 3000 2019-03-02
3 2500 2019-05-17
4 1000 2019-08-26
5 2000 2019-10-27

Apple states that =XIRR(A1:A5,B1:B5) returns an approximate 58.496548%. Independent ACT/365-style numerical calculations reproduce approximately 58.496547523%, matching the cited result at six displayed decimal places. Enter the formula in C1 so it does not overwrite the inputs.

Optional guess and difficult cash-flow patterns

Return to the unchanged InvestmentHistory table. To provide a starting estimate for its four cash flows, enter the following in D3:

=XIRR(B2:B5,C2:C5,0.1)

The independently expected root for this dataset remains about 30.329937723%. You offered a starting guess of ten percent, not that you required a ten-percent return or capped the answer at that rate. A starting estimate does not guarantee convergence or a unique solution. Changing guesses must never be used to disguise an inconsistent or implausible financial model.

Multiple cash-flow sign reversals can yield multiple mathematical roots or unstable results; the underlying discounted-cash-flow equation is nonlinear. This is a mathematical warning, not a claim about exactly which root Numbers would choose. If there is no net outgoing capital or no meaningful return for your data, do not invent an investment performance figure to fill a report.

Advanced use: terminal valuation at a reporting date

For an investment purchased for −10,000, receiving 3,000 and 4,000 on interim dates, then valued at 5,000 on 1 January 2026, the final positive entry may represent assumed resale value rather than cash received. Label the last row Estimated value—not realized proceeds. The same numerical XIRR calculation estimates a valuation-inclusive return, not a realized cash-on-cash profit. Ensure the final valuation and any fee/tax assumptions are consistently measured.

For a portfolio with ongoing deposits, fees and withdrawals, entering gross distributions but net contributions can exaggerate XIRR. Use an auditable cash-flow ledger, record currencies and whether tax/transaction costs have already been deducted, and define which person or entity’s cash-flow perspective the signs represent.

Date handling, locales and cross-table references

Numbers reference documentation for Mac permits cell ranges such as B2:B5; for another table it can add the table name and :: (and the sheet name when necessary). Prefer selecting the source cells in the Formula Editor so the program generates the correct qualified ranges. If you copy from an Excel workbook, do not blindly paste a Sheet!B2:B5 address into Numbers.

Dates should be actual date-valued cells. In the examples above, DATE(year,month,day) avoids ambiguous 01/02/2025 regional notation. Apple’s Language & Region guide confirms that document settings affect decimal points, currency and date presentations. The English help uses commas as separators; if your local Formula Editor displays different argument punctuation, follow that interface rather than transplanting separators from an external spreadsheet product.

Troubleshooting and data audit

Problem Audit and correction
Formula errors or no usable result Confirm both ranges exist, have corresponding row positions and include plausible signed numeric flows. Fix values first; then consider providing a guess.
A date is shown as text Re-enter it as a genuine date or use DATE(...) in the cell. Regional strings can represent different days in different locales.
Date and payment lists differ in length Give each listed payment one corresponding date; do not sort either range separately or delete only one value.
Return is much higher than periodic IRR Check the dates. Irregular intervals can compress or extend the holding time; a periodic rate is not automatically comparable to a date-weighted annualized rate.
Return shifts after editing a calendar date That is expected in a date-sensitive discounted-cash-flow model. Confirm changes were intended, especially month/day entry conventions.
Missing investment or ending proceeds Confirm the initial negative capital commitment and the positive return/valuation assumptions are included. Distinguish realized distributions from estimated terminal value.
Import changed an argument reference Choose both ranges again in Numbers’ Formula Editor. A reference to another table or sheet may require qualified names.
Several deposits and withdrawals give surprising results Check signs and perform an independent cash-flow NPV-versus-rate sensitivity analysis; nonstandard streams can have multiple roots.

Do not conceal errors using a blanket IFERROR(...,0) in an investment report: zero return is a valid financial statement and not the same as an invalid calculation. In the Numbers app, inspect the Formula Editor error help before editing source data.