{"uid":"cap_7IdJ6MZ0BMxSREIb7mxP-","slug":"agentstoolshub-irr-npv-calculator-60910d05","name":"AgentsToolsHub IRR & NPV Calculator","description":"Compute NPV at any discount rate and solve IRR (bisection on the IRR equation) for a period cash-flow series: investment analysis, project comparison and bond-style math with exact, reproducible results. Period 0 is the initial outflow. Use this when an agent needs to internal rate of return + discounted value of cash flows.","url":"https://agentstoolshub.com/api/v1/finance/irr-npv?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":{"ratePct":{"type":"number","description":"Discount rate (%)"},"cashflows":{"type":"string","description":"Cash flows"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_9wVHOiHXFkCxSF77HRoul","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":"Computes Net Present Value (NPV) at a given discount rate and solves for Internal Rate of Return (IRR) using bisection method for a series of period cash flows.","exampleAgentPrompt":"What's the NPV and IRR for an investment with these cash flows: -10000, 3000, 4000, 5000, 4000 — use a 10% discount rate?","exampleUseCases":[{"title":"Capital budgeting project evaluation","prompt":"I'm evaluating two projects. Project A has cash flows of -50000, 15000, 20000, 25000, 20000. Can you calculate the NPV at an 8% discount rate and the IRR so I can see which is worth pursuing?"},{"title":"Bond-style yield calculation","prompt":"I have a bond-style investment with an upfront cost of -1000 and annual coupon payments of 80, 80, 80, 1080 over 4 years. What's the IRR — that's essentially the yield to maturity, right?"},{"title":"Startup investment return analysis","prompt":"We're pitching an investor who wants at least 15% IRR. Our projected cash flows are -200000 in year 0, then 40000, 60000, 80000, 100000 over four years. Can you compute the IRR and NPV at 15% so I know if we meet the hurdle rate?"}],"resultDescription":"Returns the computed NPV (net present value) discounted at the provided rate percentage, and the IRR (internal rate of return) solved via bisection on the cash flow series. Results are exact and reproducible, with period 0 treated as the initial outflow.","failureModes":["Missing required cashflows parameter returns an error","IRR solver may fail to converge if no real IRR exists for the given cash flow pattern (e.g., all positive or non-sign-changing flows)","Malformed cashflows string (wrong delimiter or non-numeric values) causes parsing error","Discount rate not provided defaults to a standard rate or may error depending on endpoint behavior","Payment failure or insufficient USDC balance returns 402"],"whenToPreferThis":"Use this endpoint when an agent needs precise, reproducible NPV and IRR calculations for investment analysis, project comparison, or bond-style math without building custom financial logic. Prefer this over general-purpose code execution when you need a fast, deterministic finance API call with structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:42:34.317Z","isFirstParty":false,"canonicalSlug":"agentstoolshub-irr-npv-calculator-60910d05"}