BMI calculator
Body mass index for adults from weight and height in metric or imperial units, with the WHO/CDC weight category and the healthy weight range for that height.
- Version 1
- Free, no sign-up
Examples
Example: Metric
| BMI Body mass index in kg/m². Unit: kg/m². |
22.9 rounded |
|---|---|
| Category Weight category code: underweight, healthy_weight, overweight, obesity_class_1, obesity_class_2 or obesity_class_3. |
healthy_weight |
| Category label Weight category in words. |
Healthy weight |
| Healthy weight min Lowest weight in the healthy band (BMI 18.5) for this height, in weight_unit. |
56.7 rounded |
| Healthy weight max Weight at BMI 25 for this height, in weight_unit (the healthy band ends just below it). |
76.6 rounded |
| Weight kg Weight in kilograms, exact (not rounded). |
70 |
| Height m Height in metres, exact (not rounded). |
1.75 |
Rounding: Half even, 1 decimal places. Calculator health/bmi@1.
How it is calculated
BMI = kg / m²; 1 lb = 0.45359237 kg, 1 in = 0.0254 m exactlyComputes BMI = weight (kg) ÷ height (m)² from exact unit definitions, so imperial inputs need no 703 approximation. The category is decided on the exact BMI, so a BMI of 24.96 is 'Healthy weight' even though it displays as 25.0; the response warns when rounding crosses a band boundary like that.
- For adults (age 20 and over) only. Children and teens need age- and sex-specific BMI percentiles instead.
- BMI is a screening measure, not a diagnosis. It does not tell muscle from fat, so it can overstate body fat for athletes and understate it for older adults.
References
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/health/bmi \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"weight": "70",
"height": "175"
}'
The same call in Python
import os
import requests
payload = {
"weight": "70",
"height": "175",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/health/bmi",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"weight": "70",
"height": "175",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/health/bmi", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_health_bmi at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="health/bmi" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.