WHO categories · metric & imperial · local

Calculate BMI with WHO categories

Body Mass Index from weight and height, color-coded against the WHO classification table. Switch between metric and imperial. Runs entirely in your browser.

BMI Calculator
BMI
22.9
Normal weight
Unit
metric
kg/cm
Weight
70.0 kg
normalized
Status
ready
live
input · measurements
output · bmi
Body Mass Index
22.9
Normal weight
70.0 kg / (1.75 m)² = 22.86
WHO categories
< 18.5 Underweight
18.5 – 24.9 Normal
25 – 29.9 Overweight
30 – 34.9 Obese I
35 – 39.9 Obese II
≥ 40 Obese III
Quick Start

How to compute BMI

BMI = weight (kg) ÷ height (m)². It's a screening number — useful for population averages, less so for very muscular or very small frames.

  1. 01

    Pick units

    Metric or imperial — values convert under the hood.

    Inputs are treated as UTF-8 throughout the pipeline and validated client-side as you type — nothing dispatches until the value is well-formed.

    unitinpututf-8client-sidevalidated
    unit · textmetric · set
    kg/cm
    loaded · parsedclient-side
  2. 02

    Enter weight

    Use today's reading — fluctuates daily by a kilo or so.

    Each toggle re-computes through a memoised hook, so flipping options never resets your input and the UI stays snappy on large inputs.

    weightoptionslivememoisedtoggles
    kg · memoised70 · live
    70 kg
    options set · memoisedlive
  3. 03

    Enter height

    Measure barefoot, looking straight ahead.

    Randomness — where used — comes from crypto.getRandomValues, never Math.random. Heavy work sits in useMemo.

    heightcomputeinstantlocaldeterministic
    cm · instant175 · computed
    175 cm
    computed · instantinstant
  4. 04

    Read category

    Color codes match the WHO classification.

    Copy writes through navigator.clipboard and downloads use a Blob — zero network traffic. Same input plus same options always yield the same bytes.

    whocopydownloadzero-networkreproducible
    ok · copiednormal · copied
    22.9 — Normal
    ready · ready to shipsuccess
Pro tips

Pro tips for everyday utilities

Reach for crypto.getRandomValues

Cryptographically random for IDs, tokens, salts. Math.random is for animation and games, not security.

Sort IDs lexicographically

UUID v4 has no time ordering. Use ULID or UUID v7 if you need sorted IDs.

Mock data with seeds

Faker-style libraries can be seeded so tests are reproducible. Embed the seed in the fixture file.

Reference cards beat memory

Cheatsheets for Vim, Git, Docker, Linux signals are faster than man pages when you’re mid-flow.

Browser APIs vary

Touch events, gamepads, and clipboard differ across vendors. Feature-detect before use.

Persist in the right place

localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data.

Use Cases

When BMI is useful

Screening, fitness logs, doctor visits, insurance forms.

GP screening

Quick risk signal for cardiovascular health. Random values come from crypto.getRandomValues — cryptographically secure for tokens, salts, and session IDs. Math.random is deterministic enough for animations but predictable enough to be a security bug.

CSPRNG-backed

Fitness logs

Track relative change over weeks. Pair with hashids, ULID, or UUID v7 when you need both random and sortable — useful for primary keys, public-facing IDs, and event log ordering without a sequence column.

reproducible

Insurance forms

Many policies ask BMI on applications. Output is deterministic given the same seed, so fixtures and tests stay reproducible across CI runs and contributor machines. Embed the seed in the fixture file for full replay.

snappy

Diet planning

Anchor calorie targets to a category. Heavy work runs through useMemo so the UI stays snappy on large inputs. Same input + same options yields identical bytes — the kind of stability snapshot tests rely on.

feature-detected

Pre-op

Some surgeries gate on BMI thresholds. Storage tools persist to the right backend: localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data. Pick the right shelf and quota worries disappear.

deterministic

Population stats

Compare yourself to country/age cohorts. Browser feature detection: clipboard, fullscreen, gamepad, and Web Bluetooth APIs gracefully fall back when unavailable. No surprise white screens on Safari or older Firefox.

production-ready
FAQ

Frequently asked questions

Not very. Muscle is denser than fat, so muscular athletes often land in 'overweight' despite low body fat. Pair with the Body Fat calculator for more nuance.
BMI is defined as kg/m². Imperial inputs are converted (lb × 0.45359237; in × 0.0254) before the formula runs.
World Health Organization adult cutoffs. Some countries use slightly different thresholds for Asian populations.
18.5–24.9 is the conventional band. Consult a clinician for personal targets.
No. Calculation runs entirely in your browser.
Suggest a tool

Something missing?

Tell us what you need. We ship the top requests every two weeks.

Sent straight to the maintainers · no account needed
47 in queue·8 shipped this month
Request queued. Thanks!