{"uid":"cap_DLXRtPj2hC-7VwxhBPN0F","slug":"xirr-moic-compute-api-a1870ee5","name":"XIRR & MOIC Compute API","description":"Compute XIRR and MOIC from irregular cash flows with exact dates. Standard for private equity, real estate, and venture return calculations.","url":"https://financial-analyst-api-production-b81a.up.railway.app/xirr/compute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object"},"responseSchema":{"type":"object","required":["moic","xirr","xirr_pct","days_held","cash_flows","net_profit","years_held","npv_at_xirr","total_invested","total_returned"],"properties":{"moic":{"type":"number"},"xirr":{"type":"number"},"xirr_pct":{"type":"string"},"days_held":{"type":"number"},"cash_flows":{"type":"array","items":{"type":"object","required":["date","amount","day_offset"],"properties":{"date":{"type":"string"},"amount":{"type":"number"},"day_offset":{"type":"number"}}}},"net_profit":{"type":"number"},"years_held":{"type":"number"},"npv_at_xirr":{"type":"number"},"total_invested":{"type":"number"},"total_returned":{"type":"number"}}},"example":{"request":{"cash_flows":[{"date":"2021-03-15","amount":-500000},{"date":"2022-06-01","amount":75000},{"date":"2023-01-10","amount":100000},{"date":"2024-09-30","amount":900000}]},"response":{"moic":2.15,"xirr":0.275116,"xirr_pct":"27.51%","days_held":1295,"cash_flows":[{"date":"2021-03-15","amount":-500000,"day_offset":0},{"date":"2022-06-01","amount":75000,"day_offset":443},{"date":"2023-01-10","amount":100000,"day_offset":666},{"date":"2024-09-30","amount":900000,"day_offset":1295}],"net_profit":575000,"years_held":3.5479,"npv_at_xirr":0,"total_invested":500000,"total_returned":1075000}},"exampleRequest":{"cash_flows":[{"date":"2021-03-15","amount":-500000},{"date":"2022-06-01","amount":75000},{"date":"2023-01-10","amount":100000},{"date":"2024-09-30","amount":900000}]},"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d5ahz0RLllKuN358WMESd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes XIRR (Extended Internal Rate of Return) and MOIC (Multiple on Invested Capital) from a series of irregular cash flows with exact dates","exampleAgentPrompt":"Calculate the XIRR and MOIC on this investment: I put in $500,000 on 2021-03-15, received a distribution of $75,000 on 2022-06-01, another $100,000 on 2023-01-10, and then a final exit distribution of $900,000 on 2024-09-30.","exampleUseCases":[{"title":"Evaluate private equity fund performance","prompt":"I need to know the annualized return on my PE fund investment. I invested $250,000 on January 15, 2020, got back $50,000 in distributions on August 10, 2021, $75,000 on March 20, 2023, and received the final liquidation payout of $320,000 on November 5, 2024. Can you calculate my XIRR and MOIC?"},{"title":"Assess real estate syndication returns","prompt":"Help me understand how my real estate syndication performed. I committed $150,000 on February 1, 2022, made an additional capital call payment of $50,000 on June 15, 2022, received quarterly distributions totaling $180,000 between 2023 and 2024, and just got my final exit proceeds of $420,000. What are my returns?"},{"title":"Analyze venture portfolio investment metrics","prompt":"I want to evaluate this venture investment: initial check of $100,000 in April 2019, follow-on investment of $50,000 in Series A during September 2020, and we just had a partial secondary sale that netted me $85,000 in June 2024. What's my XIRR and multiple so far?"}],"resultDescription":"Returns the XIRR as an annualized percentage rate and the MOIC as a multiple (e.g. 2.3x), computed from the provided series of dated cash flows — standard metrics used in private equity, real estate, and venture capital to evaluate investment performance.","failureModes":["Cash flows with no valid IRR solution (e.g. all positive or all negative values) return a computation error","Malformed or missing dates cause a 400 validation error","Cash flows that don't span enough time for convergence may return no solution","Insufficient cash flow data points result in an error","Payment failure or invalid USDC balance returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need to compute XIRR and/or MOIC from a set of irregular, dated cash flows — the standard approach in private equity, real estate syndications, and venture capital where capital calls and distributions occur on uneven schedules. Prefer this over simple IRR calculators when exact dates matter and cash flows are not periodic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:10:36.032Z","isFirstParty":false,"canonicalSlug":"xirr-moic-compute-api-a1870ee5"}