# QuantOracle CAGR Calculator

> QuantOracle CAGR Calculator is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-09).

Calculates Compound Annual Growth Rate (CAGR) from start/end values over a time period, with optional future-value projections and doubling time

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/tvm/cagr?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-6b4cd8d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RiMaBY65s-oEhf4mQzA6B

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-quantoracle-dev-6b4cd8d7 -d '<json body>'
```

Example prompt: What's the CAGR if an investment grew from $10,000 to $18,500 over 6 years, and also show me projections for where that money would be in 1, 3, 5, 10, and 20 years if it keeps compounding at that same rate?

## When to prefer this

Use this endpoint when you need a fast, reliable CAGR calculation with built-in future-value projections and doubling-time output in a single call. Prefer over manual computation when you also need forward projections at standard intervals (1/3/5/10/20 years). Part of QuantOracle's TVM suite alongside IRR, so use CAGR when you have known start/end values and a fixed time horizon.

## Known failure modes

- Missing required fields (start_value, end_value, years) returns 400 error
- Negative years or zero start_value causes computation error
- start_value equal to end_value returns 0% CAGR
- Very large or very small values may cause floating point edge cases
- Non-numeric input types return validation error

## How this service works

Free, fast quant finance calculators powered by a deterministic, multi-chain API. Black-Scholes, options profit, Kelly, VaR, crypto liquidation, and more.

## Output

Returns the CAGR as a decimal and percentage, total return percentage, doubling time in years, and optionally an array of projected future values at standard intervals (1, 3, 5, 10, 20 years forward), along with the original start/end values and elapsed time in milliseconds.

## Example request

```json
{
 "years": 6,
 "end_value": 18500,
 "start_value": 1000
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "number",
   "title": "Years",
   "description": "Time period in years",
   "exclusiveMinimum": 0
  },
  "end_value": {
   "type": "number",
   "title": "End Value",
   "description": "Ending value",
   "exclusiveMinimum": 0
  },
  "start_value": {
   "type": "number",
   "title": "Start Value",
   "description": "Starting value",
   "exclusiveMinimum": 0
  },
  "include_projections": {
   "type": "boolean",
   "title": "Include Projections",
   "default": false,
   "description": "Whether to include forward projections"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-6b4cd8d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
