A command-line Python application that calculates your daily calorie needs based on weight, height, age, gender, and activity level using the Basal Metabolic Rate (BMR) formula.
- 📊 Calculates BMR using scientifically-backed formulas
- 👫 Gender-specific calculations for more accurate results
- 🏃♂️ Activity level adjustments with 5 different intensity options
- 🖥️ Clean and user-friendly command-line interface
- 🧮 Precise calorie calculations with decimal point accuracy
- Python 3.x
# Clone the repository
git clone https://github.com/Naeem-360/my_calorie_calculator.git
# Navigate to the project directory
cd my_calorie_calculatorRun the script using Python:
python calories_calculator.pyThe calculator:
- Asks for your weight (in kg), height (in cm), and age (in years)
- Requests your gender (male/female)
- Prompts you to select your activity level from five options
- Calculates your Basal Metabolic Rate (BMR) using different formulas based on gender:
- Men: 88.36 + (13.4 × weight) + (4.8 × height) - (5.7 × age)
- Women: 447.6 + (9.2 × weight) + (3.1 × height) - (4.3 × age)
- Applies an activity multiplier to determine your total daily calorie needs
- Displays your recommended daily calorie intake in kcal
| Level | Description | Multiplier |
|---|---|---|
| 1 | Sedentary (little or no exercise) | 1.2 |
| 2 | Lightly active (light exercise 1-3 days/week) | 1.375 |
| 3 | Moderately active (moderate exercise 3-5 days/week) | 1.55 |
| 4 | Very active (hard exercise 6-7 days/week) | 1.725 |
| 5 | Super active (intense exercise + physical job) | 1.9 |
This calculator uses the Mifflin-St Jeor equation, which is considered one of the most accurate formulas for calculating BMR. The activity multipliers then adjust this base rate to account for different activity levels, providing a more personalized calorie recommendation.
- 🥗 Meal planning and dietary management
- 💪 Support for fitness and weight management goals
- 🏥 Nutritional education and health awareness
- 🏋️ Fitness coaching and personal training support
- All measurements must be in metric units (kg for weight, cm for height)
- The calculator performs validation to ensure proper inputs
- Results are rounded to two decimal places for precision
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.