XNPV and XIRR Calculator for Dated Cash Flows

What is this money worth, or what does it cost, over time?

Net present value and internal rate of return for up to six cash flows on irregular dates, entered as day offsets on a 365-day year.

  • Runs in your browser
  • Nothing stored or sent
  • Free, no sign-up
Your figures
Example figuresIllustrative only. Type over them with your own.
XIRR
37.34%
Annual rate that sets the dated cash flows to zero
XNPV
$2,087
Span from first to last flow
456.0 days
Against 100%
XIRR37.34%
All results
MeasureResult
XNPV$2,087
XIRR37.34%
Span from first to last flow456.0 days
StatusXIRR found
How this was worked out
Work shownrecomputed as you type
t_i = (day_i - day_1) / 365
XNPV = sum of A_i / (1 + r)^t_i
XIRR = r that makes XNPV = 0 (solved by bisection)

Illustrative arithmetic on the figures you enter. Check the result against your firm's methodology before relying on it.

The formulas

  • t_i = (day_i - day_1) / 365
  • XNPV = sum of A_i / (1 + r)^t_i
  • XIRR = r that makes XNPV = 0 (solved by bisection)

How it works

Regular NPV and IRR assume one cash flow per evenly spaced period. Real investments pay on irregular dates: a deposit in January, a draw in March, a payout in October. XNPV and XIRR discount each flow by its exact time from the first flow, measured in days over a 365-day year, which is the spreadsheet convention.

Enter each date as a day number counted from one start date, usually day 0 at the first flow. Time is measured from flow 1, so flow 1 sets time zero. The example is the common textbook set of flows from January 1 of a leap year through April 1 of the next year, which gives XIRR of 37.34 percent and XNPV of 2,086.65 at 9 percent. Rows with a zero or blank amount are skipped.

Illustrative figures only. Check the result against your firm's methodology before relying on it.

Common questions

How do I turn dates into day offsets?

Use a days-between-dates count from the first flow date to each later date. Count leap days.

Why 365 and not 360?

XNPV and XIRR divide day counts by 365 in every common spreadsheet. This keeps results comparable.

Does flow 1 have to be the outflow?

No. Flow 1 only sets time zero. Any flow can be negative.

Formulas on this page are the standard definitions.

Runs in your browser. The figures you type are not sent to CORAA or stored. Check the result against your firm's methodology before relying on it.

Related audit calculators

For US CPA firms

Join the CORAA waitlist

CORAA AI drafts audit working papers from your client’s QuickBooks books and does the first pass: lead schedules, tie-out, memos, draft notes and letters. CORAA Network reviewers clear every finding. Your firm reviews and signs.

  • First audit free, so you can judge the quality on a real file
  • Flat fee by entity size; messy books included
  • We work only with CPA firms, never their clients
See how it works →

* required