sandywp / plugins / bmi-adultkid-calculator

BMI Adult & Kid Calculator

5.0 out of 5 stars. 5.0 2 reviews

BMI calculator for adults and children, with age and sex based results for kids. Add it with a block or a shortcode.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.3.0 600+ installs WP 5.5+ PHP 5.6+

your-sandbox.sandywp.com/wp-admin
BMI Adult & Kid Calculator running inside a SandyWP sandbox

What you get inside

4 screens
  • The adult BMI calculator form (metric units).

  • Result with the BMI value, the weight category scale and the healthy weight range.

  • The shortcode generator in the admin area: language, adult or child calculator, and units.

  • The BMI Calculator block in the block editor, with its type, language and units settings in the sidebar.

About this plugin

BMI Adult & Kid Calculator puts a body mass index (BMI) calculator on any page of your WordPress site. Visitors enter their height and weight (and, for children, age and sex) and see their BMI, the weight category it falls in and a healthy weight range for their height.

The plugin includes two separate calculators: one for adults aged 20 and over, and one for children and teenagers aged 19 and under, where the result is based on the child’s age and sex instead of a single adult scale.

Features

  • BMI calculator for adults (20 years and over) with underweight, healthy, overweight and obese categories
  • BMI calculator for children and teenagers (0 to 19 years) that takes age and sex into account and shows the BMI percentile for age
  • Healthy weight range for the entered height (and for the child’s age)
  • Metric units, imperial units, or a unit switch that offers both
  • Gutenberg block “BMI Calculator” (adult or child calculator, language and units) with a live preview
  • Shortcode generator in the admin area, no coding required
  • Translation-ready admin and front-end strings
  • Editable labels: change any text of the calculator and add more languages from the plugin page
  • Font family and text colors can be changed in the admin area
  • Optional redirect to another page after the calculation
  • Responsive layout that works on phones and tablets

How to use

In the block editor add the “BMI Calculator” block (Widgets category) and pick the calculator, language and units in the sidebar. Or open the “BMI Calculator” page in your WordPress admin menu, choose a language, the calculator (adult or child) and the units, then click “Generate shortcode”. Paste the generated shortcode into a page, post or shortcode block. Examples:

[BMIAKC_adult_calc lang="English" units="metric"]

[BMIAKC_kid_calc lang="English" units="metric"]

The units attribute accepts metric, imperial or both. The id_calc attribute only needs to be set if you place more than one calculator of the same type on a page; the generator fills it in for you.

Who it is for

Health and fitness blogs, clinics, nutrition and sports coaches, schools and parenting sites that want a ready-to-use BMI calculator without a third-party embed.

Disclaimer

BMI is a screening figure, not a diagnosis. The calculators are for general information and do not replace advice from a doctor or other health professional.

Questions

How do I add the calculator?

Use the “BMI Calculator” block in the block editor, or paste a shortcode such as [BMIAKC_adult_calc] or [BMIAKC_kid_calc] (generated on the “BMI Calculator” admin page) into a page or post.

How is BMI calculated?

BMI is weight in kilograms divided by height in metres squared. For adults the result is placed in the categories underweight (below 18.5), healthy (18.5 to 24.9), overweight (25 to 29.9) and obese (30 and above).

How is BMI different for children?

For children and teenagers up to 19 years the result depends on age and sex, so the calculator compares the child’s BMI with reference percentile tables for boys and girls and reports the percentile for that age. Enter the child’s age in years and months and select boy or girl.

Does the plugin store my visitors’ data?

No. The calculation runs in the visitor’s browser and nothing they enter is saved in your database or sent to a server. If you enable the redirect option, the entered values are passed to the page you chose as part of its address.

Can I use metric and imperial units?

Yes. Set units="metric", units="imperial" or units="both" in the shortcode. With both the visitor can switch between the two.

Which languages are included?

The calculator ships with English. On the plugin page in the admin area you can edit every label and add further languages, then select the language in the shortcode with the lang attribute.

5.0

2 reviews

  • 5 ★ 2
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.