Free Financial Calculator API for Developers

8 endpoints. JSON responses. No API key required for free tier.

API Documentation → GitHub Repo →

Why Another Calculator API?

Most financial calculation APIs either cost $50+/month, require complex OAuth setup, or return XML from 2008. We built the CalcLeap API to be dead simple: make a GET request, get back clean JSON.

It covers the calculations developers actually need: mortgage payments with amortization schedules, compound interest projections, retirement planning, insurance estimates by state, BMI, and more.

Quick Example

$ curl "https://calcleap.com/api/mortgage?principal=350000&rate=6.5&years=30"

{
  "calculator": "mortgage",
  "result": {
    "monthlyPayment": 2212.24,
    "totalPaid": 796405.71,
    "totalInterest": 446405.71,
    "loanTermMonths": 360,
    "schedule": [...]
  }
}

Available Endpoints

Mortgage Calculator

GET /api/mortgage

ParamTypeDescription
principalnumberLoan amount ($)
ratenumberAnnual interest rate (%)
yearsnumberLoan term in years

Returns: monthly payment, total paid, total interest, 12-month amortization schedule.

Compound Interest

GET /api/compound

ParamTypeDescription
principalnumberStarting amount ($)
ratenumberAnnual return (%)
yearsnumberInvestment period
contributionnumberMonthly addition ($)

Returns: future value, total contributed, total interest, year-by-year growth.

Insurance Estimator

GET /api/insurance

ParamTypeDescription
typestringauto or home
statestringUS state code (NJ, CA, TX...)
agenumberDriver age (auto only)
coveragestringfull or liability

Returns: annual/monthly premium estimate, state average. All 50 states supported.

Retirement Planner

GET /api/retirement

ParamTypeDescription
currentAgenumberYour current age
retireAgenumberTarget retirement age
monthlyContributionnumberMonthly savings ($)
currentSavingsnumberExisting savings ($)
annualReturnnumberExpected return (%, default 7)

Returns: projected savings, estimated monthly retirement income (4% rule).

BMI Calculator

GET /api/bmi

ParamTypeDescription
weightnumberWeight (lbs or kg)
heightnumberHeight (inches or cm)
unitstringimperial or metric

+ Loan, Tip, Percentage

Three more endpoints for general calculations. See full docs →

Code Examples

JavaScript (fetch)

const res = await fetch('https://calcleap.com/api/mortgage?principal=400000&rate=7&years=30');
const data = await res.json();
console.log(`Monthly payment: $${data.result.monthlyPayment}`);

Python (requests)

import requests
r = requests.get('https://calcleap.com/api/compound', params={
    'principal': 10000, 'rate': 8, 'years': 25, 'contribution': 300
})
print(f"Future value: ${r.json()['result']['futureValue']:,.2f}")

cURL

curl "https://calcleap.com/api/insurance?type=auto&state=CA&age=30"

Pricing

PlanRequestsPrice
Free100/day$0
Pro10,000/day$9/month
EnterpriseUnlimitedContact us

Get Started

No API key needed for the free tier. Just start making requests.

Read the Docs → Star on GitHub →