DEV Community

Ashley Chen
Ashley Chen

Posted on

Body Fat From Three Tape Measurements: The Navy Formula and Its Unit Trap

A tape measure cannot see inside you. The U.S. Navy circumference method is popular because it needs only three numbers for men (height, neck, waist) and four for women (add hips), but the formula is easy to get wrong in exactly the way that produces a plausible-looking answer.

The equations

For men, with all measurements in inches:

BF% = 495 / (1.0324 - 0.19077 * log10(waist - neck) + 0.15456 * log10(height)) - 450
Enter fullscreen mode Exit fullscreen mode

For women:

BF% = 495 / (1.29579 - 0.35004 * log10(waist + hip - neck) + 0.22100 * log10(height)) - 450
Enter fullscreen mode Exit fullscreen mode

Two details matter more than the constants: log10, not ln, and the subtraction waist - neck happens before the log, not after.

Worked example

Male, height 70 in, neck 15 in, waist 36 in:

log10(36 - 15) = log10(21) ≈ 1.32222
log10(70)      ≈ 1.84510
denominator    = 1.0324 - 0.19077 * 1.32222 + 0.15456 * 1.84510
               ≈ 1.0324 - 0.25219 + 0.28519 = 1.06540
BF%            = 495 / 1.06540 - 450 ≈ 14.6%
Enter fullscreen mode Exit fullscreen mode

The unit trap

The coefficients were fitted in inches. If you paste centimetres into the same expression, log10(91.44 - 38.1) is much larger and the result drifts badly — often into negative or absurd percentages. Convert first:

const inch = cm => cm / 2.54;

function navyBodyFatMen({ heightCm, neckCm, waistCm }) {
  const h = inch(heightCm), n = inch(neckCm), w = inch(waistCm);
  if (!(w > n) || h <= 0) throw new RangeError('waist must exceed neck; height > 0');
  const d = 1.0324 - 0.19077 * Math.log10(w - n) + 0.15456 * Math.log10(h);
  return 495 / d - 450;
}
Enter fullscreen mode Exit fullscreen mode

The same person measured in centimetres (178 / 38.1 / 91.44) returns approximately 14.6% after conversion — any other answer means one of the inputs was left in the wrong unit.

Boundary conditions worth testing

  • waist <= neck (or waist + hip <= neck for women): log10 of a non-positive number. Validate before computing.
  • Tape location: the waist is measured at the narrowest point for men and at the widest point for women in the Navy protocol. Swapping them changes the input rather than the code.
  • Rounding: round only the final percentage. Rounding the logs early shifts the answer by a few tenths of a point.
  • This is an estimate from circumferences, not a body-composition measurement. Hydration, recent meals and tape tension all move the result.

For a quick check with unit conversion and input validation built in, see the body fat calculator.

Related reading

YMYL note: Body-fat estimates are informational only and are not medical advice. Circumference methods have meaningful error versus reference methods; consult a qualified clinician for health decisions.

Top comments (1)

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

The unit trap is a good example of a formula that fails quietly: the answer still looks like a body fat percentage, it is just wrong.

We met the same idea from the other side while building a web dashboard at Ascendra Ventures for Actofit body composition scales, after the official app stopped returning the full readout. The scale itself only sends two raw numbers over Bluetooth, weight and bioelectrical impedance. Body fat, BMI and skeletal lean mass are all calculated, in our case with the openScale/Xiaomi body composition model run on the user's own profile. Once you see that, every figure on the screen is really a formula plus whatever the person typed in, so the profile fields deserve the same checks you put on waist and neck here.

The "waist must exceed neck" guard is a nice touch. Do you also flag results that land outside a plausible range, or leave that judgement to the user?