This Streamlit app calculates your Body Mass Index (BMI) and estimates your Body Fat Percentage based on user inputs. This tool is for educational purposes only and is not a substitute for professional medical advice.
- BMI Calculation: Computes BMI based on height and weight inputs and categorizes it according to standard BMI categories:
- Underweight: BMI < 18.5 (Light Blue)
- Normal weight: BMI 18.5–24.9 (Light Green)
- Overweight: BMI 25–29.9 (Gold)
- Obesity: BMI ≥ 30 (Red)
- Body Fat Percentage Estimation: Uses the U.S. Navy Method for calculating body fat based on body measurements, with separate formulas for men and women.
-
BMI Calculation:
- Formula:
BMI = Weight (kg) / (Height (m)^2)
- Input height in cm and weight in kg, and the app calculates your BMI, displaying a color-coded category for easy interpretation.
- Formula:
-
Body Fat Percentage Calculation:
- Formula: U.S. Navy Method, based on specific body measurements.
- For Men: Requires waist and neck circumference.
- For Women: Requires waist, hip, and neck circumference.
- Clone the repository:
git clone https://github.com/your-username/bmi-bodyfat-calculator.git cd bmi-bodyfat-calculator