# CAGR Calculator

> CAGR Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Calculates the Compound Annual Growth Rate (CAGR) from an initial value, final value, and number of years

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/finance/cagr-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cagr-calculator-607ce738
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ow7u8pPK-lk38grr5bIcO

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 cagr-calculator-607ce738
```

Example prompt: What's the CAGR if my investment started at $10,000 and grew to $18,500 over 6 years?

## When to prefer this

Use this endpoint when you need a single, time-normalized annualized growth figure — ideal for comparing investments or business metrics of different durations. Prefer it over simple percentage change when the time period spans more than one year and you need apples-to-apples comparison across different horizons.

## Known failure modes

- Missing required parameters (initial, final, or years) returns a 400 error
- Negative years value causes a mathematical error or invalid result
- Zero initial value causes division-by-zero or undefined CAGR
- Non-numeric input for any parameter returns a validation error
- Negative final value with even number of years may produce NaN or complex number result

## How this service works

Calculate the compound annual growth rate that takes an initial value to a final value over a given number of years — the standard way to annualize returns. Use this when an agent needs to compound annual growth rate, time-normalized.

## Output

Returns the computed CAGR as a percentage or decimal, representing the annualized rate at which the initial value grew to the final value over the specified number of years.

## Request schema (JSON Schema)

```json
{
 "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": [
      "initial",
      "final",
      "years"
     ],
     "properties": {
      "final": {
       "type": "number",
       "description": "Final value"
      },
      "years": {
       "type": "number",
       "description": "Years"
      },
      "initial": {
       "type": "number",
       "description": "Initial value"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cagr-calculator-607ce738/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
