Akshay Suresh
May 29, 2026
The BMI Calculator is a Shiny application that:
BMI is a widely used health screening tool but:
This app gives a clean, instant, visual BMI result with proper categorisation for adults and children.
# 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
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 |
Try it now: https://akshaisuresh.shinyapps.io/bmi-calculator