An advanced, modern, and beautifully designed BMI & Health Metrics Calculator built using Flask, HTML, CSS (Tailwind), and JavaScript.
Most BMI calculators just give you a number β this one tells a full story about your health.
β¨ Visually Stunning Interface: Dynamic animated backgrounds, interactive gauge meters, and modern input fields give it a polished, app-like look.
π§ Scientifically Accurate Calculations: Body Fat %, BMR, and Ideal Weight are calculated using standard health formulas like Deurenberg and Harris-Benedict.
π Dashboard-Like Output: User gets not just BMI but an entire health analysis β risks, goals, calorie suggestions, tips.
π± Responsive & Animated: Designed to run smoothly across screens with subtle animations for a professional feel.
π― Built for Recruiters: This app highlights full-stack abilities with focus on usability, user experience, and core health logic.
π‘ This isnβt just a BMI calculator β it's a Mini Digital Health Dashboard built with β€οΈ and design in mind.
AdvancedBMICalculator/
βββ assets/ # Screen recordings and visual demos
β βββ Recording 2025-07-08 083013.gif
β βββ Recording 2025-07-08 083241.mp4
βββ static/
β βββ script.js # Frontend logic & animations
βββ templates/
β βββ index.html # UI layout using Tailwind CSS
βββ app.py # Flask backend API
-
Handles route
/calculate
to compute BMI and Body Fat % -
Validates inputs and returns structured JSON
-
Uses Deurenberg formula for Body Fat %:
Male: 1.20 * BMI + 0.23 * Age - 16.2
Female: 1.20 * BMI + 0.23 * Age - 5.4
-
Stylish input form with animated components
-
On form submission:
- JavaScript sends data to Flask backend
- Updates animated gauge meter, BMI cards, body fat, BMR, and more
-
Smooth result transitions using
.show
animation classes
Feature | Description |
---|---|
π¨ Dynamic Background | CSS-animated gradient for a modern, clean aesthetic |
βοΈ Gauge Meter | Conic-gradient gauge with real-time BMI visualization |
π Body Fat % | Uses Deurenberg formula based on age and gender |
π₯ BMR & Calorie Needs | Harris-Benedict-based daily energy needs |
π― Ideal Weight Range | Personalized weight range using WHO standards |
π Health Risks | Provides contextual risk analysis based on BMI |
π§ Tips & Suggestions | Offers actionable tips for user wellness goals |
Below is a visual walk-through of how this app works!
- π Python (Flask) β Lightweight backend API
- π HTML5 / CSS3 β Structured UI layout
- π¨ Tailwind CSS β For rapid UI development and modern styling
- βοΈ Vanilla JavaScript β Form handling, animations, logic
- β Font Awesome β Beautiful icons to enhance UX
# 1. Clone the repo
git clone https://github.com/Aayushinit/AdvancedBMICalculator
cd AdvancedBMICalculator
# 2. Install dependencies
pip install flask
# 3. Run the server
python app.py
# 4. Visit
http://localhost:5000
This app is not just a calculator. It merges frontend animation, health science logic, and responsive design into one user-friendly dashboard.
π§ What This Shows Recruiters:
- Practical use of health equations and data validation
- Frontend finesse with animations and clean UX
- Full-stack capability with API handling
- Responsive design for real-world product development
Aayush Kadam Final Year AI & Robotics Enthusiast π GitHub | π§ Email
- Save BMI history locally (LocalStorage)
- PDF Export for reports
- Add voice input for accessibility
- Connect with smart devices APIs (Fitbit, Apple Health)