Financial
260 monthly searches
Intermediate
5 min read

XIRR Function in Excel - Internal Rate of Return for Irregular Cash Flows

Calculate annualized returns on investments with irregular cash flow timing....

Quick Start

Syntax

=XIRR(values, dates, [guess])

Parameters

values - Required. Cash flow amounts. Negative = outflow (investment), Positive = inflow (return). Must have at least one negative and one positive value.

dates - Required. Dates corresponding to each cash flow. Must be in chronological order. Excel date serial numbers or date strings.

guess - Optional. Optional starting point for calculation (default 0.1 = 10%). Try different values (0.5, -0.1) if #NUM! error occurs.

Simplest Example

ABC
1DateCash FlowEvent
21/1/2023-$100,000Initial investment
37/15/2023-$50,000Follow-on round
43/20/2024$25,000Dividend payout
512/31/2024$200,000Exit/Sale
6XIRR:32.5%
=XIRR(B2:B5, A2:A5)
32.5%

Quick Reference

Basic Investment Return
=XIRR(B2:B5, A2:A5)

Calculate return on investment with irregular dates

→ 32.5% annualized return

With Initial Guess
=XIRR(values, dates, 0.5)

Provide starting estimate when default fails

→ Helps convergence for complex cash flows

Stock Purchase Analysis
=XIRR({-1000,-500,2000}, {DATE(2023,1,1),DATE(2023,6,15),DATE(2024,12,31)})

Analyze dollar-cost averaging strategy

→ Performance of staggered purchases

Real Estate Investment
=XIRR(cash_flows_range, dates_range)

IRR for property with irregular capital calls

→ True time-weighted return

Real-World Examples

Startup Investment Performance Tracking

Venture capital and angel investors need to calculate returns on startup investments where funding rounds happen at irregular intervals. XIRR handles the complexity of multiple capital calls spread over months or years, followed by exit events at unpredictable dates. This formula provides accurate annualized returns that account for the exact timing of each cash flow, essential for Limited Partner (LP) reporting, fund performance benchmarking, and making data-driven decisions about follow-on investments versus portfolio rebalancing in early-stage venture portfolios.

ABC
1DateCash FlowEvent
21/1/2023-$100,000Seed round investment
37/15/2023-$50,000Series A participation
43/20/2024$25,000Dividend distribution
512/31/2024$200,000Exit via acquisition
6XIRR:32.5%
=XIRR(B2:B5, A2:A5)
Annualized return
Pro Tip: Track all cash flows in dedicated columns - makes audit trails clear for tax reporting and investor updates.
Pattern: =XIRR(all_cash_flows, all_dates) for complete investment lifecycle analysis
Real Estate Capital Call IRR Analysis

Real estate syndication and REIT managers face irregular capital contribution schedules where investors contribute funds as deals close, renovations require additional capital, and distributions happen quarterly or when properties sell. XIRR calculates precise investor returns that account for the time value of money across these scattered cash flows. This calculation is critical for investor relations, comparing deal performance across different properties, and making strategic decisions about when to hold versus sell assets to maximize Limited Partner returns in commercial real estate portfolios.

ABC
1Transaction DateAmountDescription
23/15/2023-$500,000Initial capital call
38/1/2023-$200,000Renovation funding
412/1/2023$30,000Q4 distribution
56/1/2024$35,000Q2 distribution
612/15/2024$800,000Property sale proceeds
7Annual IRR:18.7%
=XIRR(B2:B6, A2:A6)
Pattern: Use XIRR for all real estate investments - provides accurate returns for irregular cash flow schedules

Common Mistakes to Avoid

=XIRR(B2:B5, A2:A5) → #NUM! errorMissing both positive and negative cash flows

❌ The Problem:

  • XIRR requires at least one inflow (+) and one outflow (-)
  • All positive or all negative values cause calculation failure
  • Sign convention matters: investments are negative, returns are positive

✅ Solution:

=XIRR({-1000, -500, 2000}, {DATE(2023,1,1), DATE(2023,6,15), DATE(2024,12,31)})

Ensure initial investments are negative (outflows) and final proceeds or dividends are positive (inflows). XIRR uses the sign of cash flows to determine direction - negative means money leaving your account, positive means money coming back. This sign convention is standard in finance and matches how IRR calculations work across all professional investment analysis tools.

=XIRR(B5:B2, A5:A2)Dates not in chronological order

❌ The Problem:

  • Excel requires dates in ascending order (earliest first)
  • Reversed or scrambled dates produce #NUM! error or wrong results
  • Manual date entry often leads to sorting mistakes

✅ Solution:

=XIRR(B2:B5, A2:A5)

Always sort your data by date (earliest to latest) before using XIRR. Use Excel's Sort feature (Data > Sort) to arrange cash flow rows by the date column in ascending order. XIRR calculates time-weighted returns based on the exact number of days between cash flows, so chronological order is mathematically required for accurate IRR computation.

=IRR(B2:B5) instead of =XIRR(B2:B5, A2:A5)Using IRR when dates are irregular

❌ The Problem:

  • IRR assumes equal periodic intervals (monthly, quarterly, annual)
  • Real-world investments rarely have perfectly spaced cash flows
  • IRR gives inaccurate returns when timing is irregular

✅ Solution:

=XIRR(B2:B5, A2:A5)

Use XIRR whenever cash flows don't occur at regular intervals. The standard IRR function assumes equal time periods between each cash flow, which is rarely true for investments, project financing, or real estate deals. XIRR calculates day-level precision, giving you accurate annualized returns that account for the exact timing of every transaction - critical for fiduciary reporting and investor communications. For financial modeling best practices, see <Link href="/formulas/pv">PV</Link> and <Link href="/formulas/fv">FV</Link> functions.

Frequently Asked Questions

Other Financial Functions

Related Formulas

Master these XIRR Function variants:

Master Excel XIRR Function

From basics to advanced - AI generates perfect formulas instantly.