Method Deck / health
BMI and WHO weight category
Computes body mass index from weight and height and reports the WHO adult weight category.
Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.
Disclaimer: General formula only. Not medical advice. Dosing decisions belong to a licensed clinician and the product's label.
Try it
Run
Inputs
weight (number, kg or lb, required) min 0 : Body weight
weight_unit (string, required) one of: kg, lb : Unit of the weight value
height (number, cm or in, required) min 0 : Height
height_unit (string, required) one of: cm, in : Unit of the height value
Outputs
bmi (kg/m^2): Body mass index
category: WHO adult weight category
Steps
Convert weight to kilograms: kg = lb * 0.45359237 if given in pounds.
Convert height to meters: first cm = in * 2.54 if given in inches, then m = cm / 100.
bmi = weight_kg / (height_m ^ 2), rounded to 1 decimal.
Category from the WHO adult thresholds: underweight below 18.5, normal weight 18.5 to below 25, overweight 25 to below 30, obese 30 and above.
Constants
lb_to_kg = 0.45359237 kg per lb (source: Exact pound and inch conversion factors)
in_to_cm = 2.54 cm per in (source: Exact pound and inch conversion factors)
underweight_upper = 18.5 kg/m^2 (source )
normal_upper = 25 kg/m^2 (source )
overweight_upper = 30 kg/m^2 (source )
Sources
Exact pound and inch conversion factors (NIST Handbook 44, Appendix C, 2026-09-30T19:00:00Z) - Defines 1 lb = 0.45359237 kg and 1 in = 2.54 cm exactly.
Body mass index - BMI (World Health Organization, 2026-09-30T19:00:00Z) - WHO adult BMI classification thresholds (underweight/normal/overweight/obese).
Worked example and test vectors
Name Inputs Answer
worked example {"weight":70,"weight_unit":"kg","height":175,"height_unit":"cm"}BMI 22.9 (Normal weight)
test vector: imperial units, obese range {"weight":220,"weight_unit":"lb","height":66,"height_unit":"in"}BMI 35.5 (Obese)
Published card
Address: 29db81f3b2a592cc1113628031103100
Made at: 2026-09-30T22:39:30.722Z
Method sha256: b922d276e357dad1102ca02bb3684f001fb50b539697711b549a4a2d1c758db8