DEV Community

gan liu
gan liu

Posted on

I Built a Baby Growth Percentile Calculator Using WHO and CDC Reference Data

Pediatricians use growth charts to track how babies are growing. But reading those charts is not intuitive. I built babypercent.com to make percentile calculations clear for parents.

Why growth percentiles matter

When a doctor says your baby is in the 75th percentile for weight, what does that actually mean? It means out of 100 babies of the same age and sex, 74 weigh less and 25 weigh more. The number itself is not good or bad. It is just a reference point.

But here is the thing: most parents never see the raw numbers behind the percentile. They hear a number and either worry or feel relieved without understanding the context.

How the calculator works

The tool uses WHO child growth standards for ages 0 to 24 months and CDC reference data for ages 2 to 20 years. You enter age, sex, weight, height, and optionally head circumference. The calculator returns percentiles and a visual chart showing where your child falls on the growth curve.

Key design decisions: WHO data for the first two years because it represents optimal growth under ideal conditions. CDC data after age two because it reflects the actual US population distribution. No account needed, no data stored, works on mobile at the pediatrician office.

What I learned about health data

Medical reference data is surprisingly messy to work with. The WHO publishes LMS parameters (lambda, mu, sigma) that require statistical transformation to convert raw measurements into percentiles. The math is not hard but getting it right matters. A small error in the z-score calculation shifts the percentile by several points.

The tool is free at babypercent.com. I built it because I wanted to understand my own kids' growth charts better. Hope it helps other parents too.

Disclaimer: This is a reference tool, not medical advice. Talk to your pediatrician about your child's growth.

Top comments (0)