Read in other languages (18)
Summary
The Meal Builder lets you combine foods from a database of 142 USDA-verified items, set portion sizes, and see live nutritional totals: calories, macronutrients (protein, carbs, fat, fiber, sugar), and 25 micronutrients with percentage of daily value.
All food data comes from USDA FoodData Central. Nutrient values are stored per 100g and scaled linearly by portion weight.
How it works
- Search and add foods — type a food name to search the USDA database. Select a food to add it to your meal with a default serving size.
- Adjust portions — use the slider or type a gram weight. Preset serving sizes (e.g. “1 medium”, “1 cup”) are available where the USDA provides them.
- View live totals — calories, macros, and micronutrient coverage update instantly as you add or adjust foods.
Nutrient scaling
All nutrients in the database are stored as values per 100g. To calculate the amount in a given portion:
Where
Meal totals are the sum of each food’s scaled values.
Macro energy percentages
To show the protein/carbs/fat energy split, the calculator uses the Atwater general factors — the standard system for food energy labelling worldwide (EU Regulation 1169/2011, FDA nutrition labels):
Where
Each macro’s percentage is its energy contribution divided by the total. Note: the calorie total displayed comes directly from the USDA database (which may use food-specific Atwater factors), so the macro percentages may not reconstruct the exact calorie total — this is normal and matches how all consumer nutrition tools work.
Micronutrient coverage (% daily value)
Where
The reference daily values are a hybrid of EU NRV (Regulation 1169/2011), EFSA Dietary Reference Values, and NIH Recommended Dietary Allowances, chosen to reflect the most current science for adults 19–50:
| Nutrient | Daily value | Source |
|---|---|---|
| Vitamin C | 80 mg | EU NRV |
| Iron | 14 mg | EU NRV |
| Calcium | 1000 mg | NIH RDA |
| Vitamin D | 15 mcg | EFSA AI |
| Zinc | 10 mg | EU NRV |
| Folate | 400 mcg | NIH RDA |
| Vitamin A | 800 mcg | EU NRV |
| Potassium | 3500 mg | EU NRV |
| Sodium | 2300 mg | EU NRV / FDA DV |
All 25 tracked micronutrients and their reference values are listed in the calculator’s source code with full attribution.
Worked example
Chicken, rice & broccoli (150g + 200g + 100g)
Chicken breast, raw (150g)
= 180.0 kcal
Brown rice, cooked (200g)
= 246.0 kcal
Broccoli, raw (100g)
= 34.0 kcal
Result
Total: 460 kcal, 42.0g protein, 57.8g carbs, 6.3g fat
Macro energy split (Atwater 4-4-9):
- Protein: 42.0 × 4 = 167.8 kcal → 36.8%
- Carbs: 57.8 × 4 = 231.2 kcal → 50.8%
- Fat: 6.3 × 9 = 56.7 kcal → 12.4%
Inputs explained
- Food search — searches the 142-food USDA database by name, with category emoji for quick recognition
- Portion (grams) — adjustable via slider (10–500g) or direct number entry. Preset serving sizes where available.
Outputs explained
- Total calories — the hero number. Sum of all foods’ scaled calorie values.
- Macro donut chart — visual protein/carbs/fat energy percentage split
- Macro grams — absolute grams of protein, carbs, fat, fiber, and sugar
- Micronutrient bars — top 15 micronutrients by % daily value, sorted highest first. Green bar = percentage of reference daily intake.
- Item breakdown — per-food calorie contribution (shown when 2+ foods are added)
Assumptions & limitations
- Food data is from USDA FoodData Central — values are for generic foods, not branded products. Actual nutrient content varies by growing conditions, cooking method, and brand.
- Raw vs cooked matters — the database includes both raw and cooked items. Make sure to select the version matching how you eat the food, as cooking changes nutrient density per gram.
- Linear scaling — nutrient content is assumed to scale linearly with weight. This is standard practice but technically imprecise for very small or very large portions.
- No alcohol — the Atwater factor for alcohol (7 kcal/g) is not included, as this is a food-focused tool.
- RDA values are for adults 19–50 — requirements differ for children, pregnant/lactating women, and older adults.
- 142 foods — the database covers common whole foods. Processed foods, branded products, and restaurant meals are not included.
Verification
| Test case | Input | Expected | Source |
|---|---|---|---|
| Single food (100g) | 100g chicken breast (raw) | 120 kcal, 22.5g protein | USDA FDC 171077 |
| Scaled portion | 150g chicken breast (raw) | 180 kcal, 33.75g protein | Manual: 120 × 1.5 |
| Full meal | 150g chicken + 200g rice + 100g broccoli | 460 kcal, 42.0g protein | Manual calculation |
| Empty meal | No foods added | 0 kcal | Identity |
| Macro % sum | Any non-empty meal | 100% | Atwater identity |
Sources
Related calculators
Food Database
Search and compare nutritional profiles for 200+ whole foods. Filter by category, sort by any nutrient, and explore full vitamin and mineral data. Sourced from USDA FoodData Central.
Upgrade Your Meal
Swap ingredients to improve your meal. Get smart substitution suggestions for more protein, fewer calories, more fiber, or lower GI. See exactly what changes.
Recipe Scaler
Scale any recipe from 1 serving to 100. See per-serving and total nutrition for the scaled recipe. All quantities adjust proportionally.
Macros
Calculate your daily protein, carbs, and fat targets based on your calorie goal and body weight. 6 presets from NHS to athletic performance, with per-meal breakdown.
TDEE
Calculate your TDEE using Mifflin-St Jeor or Harris-Benedict formulas. See calorie needs by activity level.