{"uid":"cap_CUjnYekDxoz0aVi4kB-h6","slug":"saylor-innovations-xirr-calculator-6bacaf9b","name":"Saylor Innovations XIRR Calculator","description":"XIRR calculator for irregular dated cash flows - annualized return and net cash flow","url":"https://saylorinnovations.com/api/finance/xirr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["cashflows"],"properties":{"cashflows":{"type":"string","description":"required URL-encoded JSON array such as [{\"amount\":-1000,\"date\":\"2025-01-01\"},{\"amount\":1100,\"date\":\"2026-03-01\"}] (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["found","cashflow_count","first_date","last_date","xirr_percent","formula","scope_note"],"properties":{"found":{"type":"boolean","description":"True when the lookup matched a record"},"formula":{"type":"string","description":"Formula used for the calculation"},"day_span":{"type":"number","description":"Day span"},"last_date":{"type":"string","description":"Last date"},"first_date":{"type":"string","description":"First date"},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"convergence":{"type":"string"},"npv_at_xirr":{"type":"number","description":"Npv at xirr"},"net_cashflow":{"type":"number","description":"Net cashflow"},"xirr_decimal":{"type":"number","description":"Xirr decimal"},"xirr_percent":{"type":"number","description":"Xirr, as a percentage"},"cashflow_count":{"type":"number","description":"Number of cashflow"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bo9_Kp9YtLmNT0xVO-Mqf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the annualized internal rate of return (XIRR) and net cash flow for a series of irregularly dated cash flows","exampleAgentPrompt":"Can you calculate the XIRR for these cash flows: I invested $10,000 on 2023-01-15, received $2,500 on 2023-08-01, $3,000 on 2024-02-15, and $7,000 on 2024-11-30?","exampleUseCases":[{"title":"Real estate investment return analysis","prompt":"I bought a rental property for $250,000 on 2021-03-01, received net rental income of $8,000 on 2021-12-31, $9,500 on 2022-12-31, $9,800 on 2023-12-31, and sold it for $310,000 on 2024-06-01. What was my annualized XIRR on this deal?"},{"title":"Private equity or startup investment evaluation","prompt":"I put $50,000 into a startup on 2020-06-01, followed by another $20,000 on 2021-09-15, and received distributions of $15,000 on 2022-04-01 and $95,000 on 2024-01-10. What's the annualized rate of return on that investment?"},{"title":"Dividend portfolio performance tracking","prompt":"I bought shares for $5,000 on 2022-01-10, got dividends of $120 on 2022-07-01, $140 on 2023-01-01, $155 on 2023-07-01, and $160 on 2024-01-01, and the shares are now worth $6,200 as of 2024-08-01. Can you compute the XIRR for that?"}],"resultDescription":"Returns a JSON object containing the XIRR as both a percentage and decimal, the net cash flow, NPV at the XIRR rate, day span between first and last cash flow dates, number of cash flows, first and last dates, the formula used, a convergence status indicator, and a scope note explaining what the calculation covers and excludes.","failureModes":["Invalid or malformed JSON in the cashflows query parameter — returns error","Cash flows that do not converge to an XIRR solution (e.g., all positive or all negative amounts) — may return a convergence failure or null XIRR","Missing required cashflows query parameter — returns validation error","Fewer than two cash flows provided — insufficient data for XIRR computation","Dates in wrong format or out of chronological order — may cause calculation errors"],"whenToPreferThis":"Use this endpoint when you need to calculate the annualized return (XIRR) for cash flows that occur on irregular, non-periodic dates — a scenario not handled by simple IRR or APY formulas. It is ideal for evaluating real estate deals, private investments, dividend portfolios, or any series of payments and receipts with arbitrary dates. Prefer this over spreadsheet-based XIRR when you need a programmatic, API-accessible computation that also returns net cash flow and NPV at the XIRR rate in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:42:02.088Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-xirr-calculator-6bacaf9b"}