# NPV, IRR & XIRR

> IRR by bisection, so a sign-change-heavy series does not converge on a confident wrong answer.

Source: https://lopifi.com/tools/npv
Part of: Lopifi — US GAAP books on autopilot, reviewed by a CPA (https://lopifi.com)

---

- **Group:** Money

## Inputs

- `rate` — Discount rate % per period (Per period of the flows: a monthly series needs a monthly rate, and its IRR is monthly too — (1 + r)^12 − 1 annualises it.)
- `flows` — Cash flows, one per period
- `dates` — Dates, one per flow (optional — enables XIRR)
- `currency` — Currency (ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.)

Runs entirely in the browser: no network call, no data leaves the page. The same definition powers the Lopifi Tools Chrome extension.
