Ever wonder how those "how tall will my child be?" calculators actually work? They're not magic — but the science behind them is surprisingly interesting. In this article I'll break down the methodology behind adult height prediction, walk through how to implement it cleanly on the web, and share the lessons we learned building the Adult Height Predictor at Nutryio.

The Science: Mid-Parental Height Method

The most well-validated approach to predicting adult height is the mid-parental height (MPH) formula, originally described by Tanner et al. in growth studies from the 1970s and refined repeatedly since. It's still the standard used in clinical pediatric practice today.

The formula is beautifully simple:

// For males: