This page documents the math behind the BMI Calculator. The wording matches src/lib/bmi.ts in this repository.
Adult formula
Metric BMI is weight in kilograms divided by height in meters squared: BMI = kg ÷ m². Results round half-up to one decimal place.
US inputs convert with the international avoirdupois constants, then use the same metric formula:
- 1 lb = 0.45359237 kg
- 1 in = 0.0254 m
The calculator does not use the truncated 703 × lb ÷ in² shortcut. That factor disagrees with the metric path on some inputs (for example, 5 ft 10 in and 173.936 lb prints BMI 25 with exact conversion and 24.9 with 703).
Worked example (adult, US units)
Height 5 ft 10 in (70 in) and weight 173.936 lb. Convert to 78.908… kg and 1.778 m. BMI = 78.908… ÷ 1.778² ≈ 24.95, which rounds half-up to 25.0. Category at the printed 25 boundary stays Normal because boundaries keep the lower class.
Adult categories (WHO cut points)
Ages over 20, and blank age, use WHO adult BMI cut points in kg/m². On a printed boundary the lower class wins (25 is Normal, 30 is Overweight).
| Classification | BMI (kg/m²) |
|---|---|
| Severe thinness | ≤ 16 |
| Moderate thinness | ≤ 17 |
| Mild thinness | ≤ 18.5 |
| Normal | ≤ 25 |
| Overweight | ≤ 30 |
| Obese Class I | ≤ 35 |
| Obese Class II | ≤ 40 |
| Obese Class III | > 40 |
The printed healthy adult band is 18.5–25 kg/m². BMI Prime is the rounded adult BMI divided by 25. Ponderal Index is kg ÷ m³ to one decimal.
Children and teens, ages 2–20 (CDC)
Ages 2 through 20 inclusive use CDC BMI-for-age percentiles by sex. Age is converted to exact months (years × 12) and linearly interpolated on the CDC age grid. Percentiles above the 95th use CDC 2022 extended BMI-for-age data where the implementation provides them. Category labels in this tool:
| Category | Percentile |
|---|---|
| Underweight | < 5th |
| Healthy weight | 5th – 85th |
| At risk of overweight | 86th – 95th |
| Overweight | ≥ 96th |
Current CDC public pages often label 85th–95th as Overweight and ≥95th as Obesity. This calculator keeps the labels above so the on-screen wording matches the percentile bands it already prints. Boundary percentiles keep the lower class (5 and 85 are Healthy weight; 95 is At risk of overweight). BMI Prime is not shown on the child path.
Limitations
BMI estimates weight relative to height. It does not measure body fat, muscle, bone, or fat distribution. Age, sex, ethnicity, and training status can change how a given BMI relates to health risk. Prefer BMI with clinical context, not as a sole decision tool.
Frequently asked questions
Does this BMI calculator use the 703 shortcut formula?
No. US inputs convert with 1 lb = 0.45359237 kg and 1 in = 0.0254 m, then BMI = kg ÷ m². The truncated 703 × lb ÷ in² factor is not used because it disagrees with the metric path on some inputs.
When does the tool switch from adult categories to CDC percentiles?
Ages 2 through 20 inclusive use CDC BMI-for-age percentiles by sex. Age over 20, including 20.01, uses adult WHO cut points. A blank age is treated as adult.
How are category boundaries handled?
Printed boundaries keep the lower class. For adults, 18.5 is Mild thinness, 25 is Normal, and 30 is Overweight. For CDC ages 2–20, 5 and 85 stay Healthy weight, and 95 stays At risk of overweight.
Is BMI a diagnosis?
No. BMI estimates weight relative to height. It does not measure body composition. Use it as clinical decision support with professional judgment, not as a sole decision tool, and do not enter patient identifiers into this site.
References
- CDC adult BMI categories: https://www.cdc.gov/bmi/adult-calculator/bmi-categories.html
- CDC child and teen BMI categories: https://www.cdc.gov/bmi/child-teen-calculator/bmi-categories.html
- CDC clinical growth charts (printable): https://www.cdc.gov/growthcharts/data/set1clinical/cj41c024.pdf
- CDC extended BMI-for-age percentiles (girls PDF): https://www.cdc.gov/growthcharts/data/extended-bmi/bmi-age-percentiles-girls.pdf
- WHO healthy-lifestyle / BMI recommendations: https://www.who.int/europe/news-room/fact-sheets/item/a-healthy-lifestyle---who-recommendations