GET /v1/cagrCAGR Calculator
Business Utils lf-business-utils
Works out the steady yearly growth rate that carries a starting value up to an ending value. Takes start_value, end_value, and a period in years or months. Returns cagr, cagr_percent, total_return, and annualized_return.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_value | number | Yes | Starting value |
end_value | number | Yes | Ending value |
years | number | No | Period in years |
months | number | No | Period in months |
Response Schema
cagr (number): Compound annual growth rate
cagr_percent (number): CAGR as percent
total_return (number): Total return
annualized_return (number): Annualized return
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/cagr?start_value=<start_value>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/cagr'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'start_value': '<start_value>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())