Daily Meal Calories Calculator Formula
Understand the math behind the daily meal calories calculator. Each variable explained with a worked example.
Formulas Used
Calories per Meal
calories_per_meal = round(daily_calories * (1 - snack_pct / 100) / num_meals)Calories per Snack
calories_per_snack = num_snacks > 0 ? round(daily_calories * snack_pct / 100 / num_snacks) : 0Protein per Meal (est.)
protein_per_meal = round(daily_calories * (1 - snack_pct / 100) / num_meals * 0.075)Total Daily (verification)
total_check = daily_caloriesVariables
| Variable | Description | Default |
|---|---|---|
daily_calories | Daily Calorie Target(cal) | 2000 |
num_meals | Number of Main Meals | 3 |
num_snacks | Number of Snacks | 2 |
snack_pct | Snack Calories (% of total)(%) | 20 |
snack_total | Derived value= daily_calories * snack_pct / 100 | calculated |
meal_total | Derived value= daily_calories * (1 - snack_pct / 100) | calculated |
How It Works
How to Distribute Daily Calories
Formula
Snack Calories = Daily Target x Snack %
Meal Calories = (Daily Target - Snack Calories) / Number of Meals
Common Distributions
Protein Target
A general estimate is 30% of calories from protein, or about 0.075 g protein per calorie per meal. Active individuals may need more. This calculator provides a rough protein guideline.
Worked Example
2000 daily calories, 3 meals and 2 snacks, snacks = 20%.
daily_calories = 2000num_meals = 3num_snacks = 2snack_pct = 20
- 01Snack total = 2000 x 0.20 = 400 cal
- 02Meal total = 2000 - 400 = 1600 cal
- 03Per meal = 1600 / 3 = 533 cal
- 04Per snack = 400 / 2 = 200 cal
- 05Protein per meal (est.) = 533 x 0.075 = 40 g
Ready to run the numbers?
Open Daily Meal Calories Calculator