BMI Calculator App

Akshay Suresh
May 29, 2026

What is the App?

The BMI Calculator is a Shiny application that:

  • Takes user weight (kg) and height (cm) as inputs
  • Calculates Body Mass Index instantly
  • Classifies result into health categories
  • Displays a visual chart highlighting your category

Try it at: https://akshaisuresh.shinyapps.io/bmi-calculator

The Problem it Solves

BMI is a widely used health screening tool but:

  • Many people don't know how to calculate it
  • Results mean nothing without context
  • Existing tools are often cluttered

This app gives a clean, instant, visual BMI result with proper categorisation for adults and children.

How it Works

# BMI Formula used in server.R
weight_kg <- 70
height_cm <- 170
bmi <- round(weight_kg / (height_cm/100)^2, 1)
cat("BMI =", bmi)
BMI = 24.2
cat("\nCategory: Normal weight")

Category: Normal weight
  • User inputs weight and height via sliders
  • server.R computes BMI reactively
  • Result and category displayed instantly

BMI Categories

categories <- data.frame(
  Category  = c("Underweight","Normal","Overweight","Obese"),
  BMI_Range = c("< 18.5","18.5-24.9","25-29.9",">= 30"),
  Risk      = c("High","Low","Moderate","High")
)
knitr::kable(categories)
Category BMI_Range Risk
Underweight < 18.5 High
Normal 18.5-24.9 Low
Overweight 25-29.9 Moderate
Obese >= 30 High

Why Use This App?

  • Simple: Just enter weight and height
  • Instant: Reactive calculation — no submit needed
  • Visual: Bar chart highlights your category
  • Documented: Help text built into the sidebar
  • Accessible: Works on any device via browser

Try it now: https://akshaisuresh.shinyapps.io/bmi-calculator