Nutrition Meal Planning Simulation


Foods (grams per day)
Set your profile, then add foods or press Auto-fill. Bars turn green within 10% of target.
The science

Energy need. Basal metabolic rate comes from the Mifflin-St Jeor equation, BMR = 10·w + 6.25·h − 5·age + 5 (men) or −161 (women), w in kg and h in cm. Total daily energy expenditure is TDEE = BMR × PAL (physical activity level, 1.2 sedentary to about 1.9 very active). The goal slider shifts intake by a percentage for gentle loss or gain.

Macros. Energy is counted with Atwater factors: kcal = 4·protein + 4·carbohydrate + 9·fat. Targets here: protein in g per kg body weight, fat 30% of energy, carbohydrate the remainder, fibre about 14 g per 1000 kcal. The auto-fill button minimises a weighted squared relative error to those targets by coordinate descent over the 16 foods (a deliberately simple optimiser, not a dietitian).

Food values are rounded typical figures per 100 g for common foods and vary with brand and preparation. Vitamins, minerals, allergies and medical conditions are not modelled. This is an educational tool, not medical or dietary advice.