Debug School

ashley
ashley

Posted on

A Body Shape Index in Code: Why All Three Inputs Must Stay in SI

Body mass index divides weight by height squared, so it cannot distinguish a large frame from a central fat distribution. A Body Shape Index (ABSI) tries to fix that by adding waist circumference, but its exponent makes unit discipline essential.

The formula

ABSI = waist / (BMI^(2/3) * height^(1/2))
Enter fullscreen mode Exit fullscreen mode

with waist and height in metres, BMI in kg/m². The exponents came from a regression on a reference population, so ABSI is a standardized index rather than a direct physical quantity.

function absi({ heightCm, waistCm, weightKg }) {
  const h = heightCm / 100, w = waistCm / 100;
  const bmi = weightKg / (h * h);
  return w / (Math.pow(bmi, 2 / 3) * Math.sqrt(h));
}
Enter fullscreen mode Exit fullscreen mode

Worked example

Height 175 cm (1.75 m), waist 90 cm (0.90 m), weight 80 kg:

BMI = 80 / 1.75^2 ≈ 26.12
BMI^(2/3) ≈ 8.75
height^(1/2) ≈ 1.3229
ABSI = 0.90 / (8.75 * 1.3229) ≈ 0.0778
Enter fullscreen mode Exit fullscreen mode

Typical population values sit near 0.08; the index rises with central adiposity. There is no universal "healthy ABSI" cutoff — risk interpretation uses population percentile.

The unit trap

Using centimetres for waist but metres for height mixes scales by a factor of 100 in the numerator only. Because the formula is not homogeneous in the way BMI is, that error does not cancel. Convert both length inputs to metres first, then compute.

Boundary conditions

  • height <= 0 or weight <= 0: invalid input; guard before the power operations.
  • Waist must be measured at the same anatomical landmark as the reference protocol (typically at the iliac crest or the narrowest point, depending on the study). Mixing protocols shifts values systematically.
  • ABSI was validated on adult populations; it is not a paediatric measure.
  • The exponents are population-specific; different cohorts can produce different reference values.

For checking other body measurements, see the A Body Shape Index calculator.

YMYL note: This is illustrative arithmetic, not medical advice. Body-composition indices are screening heuristics; consult a qualified clinician for health decisions.

Top comments (0)