Build Your Optimal Diet
Set your targets, add foods, and watch your micronutrient coverage update in real time. The builder tracks 24 essential nutrients against USDA DRI targets and scores your overall diet quality.
1Set Your Targets
Enter your details to estimate your daily calorie needs (Mifflin-St Jeor equation).
Macronutrient Split
Starter Diets
Start with a research-backed daily diet template, then customise. Clicking a preset will replace all current foods.
2Build Your Diet
Search and add foods to each meal. Nutrient totals update in real time.
Calorie & Macros
Micronutrient Coverage
Reference: USDA Dietary Reference Intakes
Nutrient Interactions
Synergies and antagonisms between nutrients in your current diet, based on peer-reviewed research.
3Gap Analysis & Suggestions
Foods that would most efficiently fill your remaining nutrient gaps, ranked by nutrient per calorie.
4Diet Quality Score
Composite score based on macro balance, micro coverage, diversity, fibre, and sodium moderation.
Diet Comparison
Overlay your diet against reference dietary patterns on key dimensions.
Dietary Risk Assessment
How your diet maps to GBD dietary risk factors linked to chronic disease. These are population-level statistical associations, not personal risk predictions.
5Diet Pattern Adherence
See how your diet aligns with 21 established dietary patterns, ranked by adherence score.
Dietary Inflammatory Index (DII)
The DII scores your diet's inflammatory potential based on 29 nutrient parameters. Published research links pro-inflammatory diets to increased disease risk.
Improve Your Diet
Based on your current nutrient gaps, here are foods that published dietary research associates with gap reduction. Click any suggestion to add it to your diet.
6Advanced Analysis
Weekly Summary
Overview of your 7-day meal plan with daily calorie tracking and average nutrient coverage.
Weekly Nutrient Trends
Track how your key nutrients vary across the week. Dashed lines show your daily targets.
Nutrient Coverage Radar
Visual overview of how your current day's diet covers each essential nutrient relative to DRI targets.
Shopping List
All ingredients from your 7-day plan, aggregated and grouped by food category. Check items off as you shop.
Frequently Asked Questions
How does the diet builder calculate my calorie needs?
We use the Mifflin-St Jeor equation, which is considered the most accurate formula for estimating resting metabolic rate. It uses your age, sex, weight, and height to estimate your Basal Metabolic Rate (BMR), then multiplies by an activity factor to estimate your Total Daily Energy Expenditure (TDEE). You can always override the calculated value with your own target.
Where does the nutrient data come from?
All nutrient data comes from three harmonized databases: USDA Foundation Foods (primary, lab-analyzed), Australian Food Composition Database (gap-filler for vitamins K2, D2/D3, and carotenoids), and USDA SR Legacy (fallback for remaining foods). The database covers 7,793 foods with up to 113 nutrients each.
What are Dietary Reference Intakes (DRIs)?
DRIs are a set of nutrient reference values published by the U.S. National Academies of Sciences. They include the Recommended Dietary Allowance (RDA) — the intake sufficient for 97-98% of healthy individuals — and the Tolerable Upper Intake Level (UL) — the maximum daily intake unlikely to cause adverse health effects. Our targets default to the RDA for your age/sex group.
Is this a replacement for medical nutrition advice?
No. This tool is for educational purposes and general dietary exploration. Individual nutritional needs vary based on health conditions, medications, genetics, and other factors. Always consult a registered dietitian or healthcare provider for personalised nutrition guidance, especially if you have specific health conditions or dietary restrictions.
Why do some foods show incomplete nutrient data?
Not all foods in the USDA database have been tested for all 113 nutrients. Some foods may only have data for 15-20 "label" nutrients. When a food has incomplete data, the builder notes this and your actual micronutrient intake may be higher than shown. We prioritise Foundation Foods (which have the most complete lab analyses) for curated entries.
How to Analyse Your Diet: The Complete Guide
Most people have no idea whether their diet actually covers what their body needs. Calorie counting tells you how much you eat. Diet analysis tells you what you eat — and whether it lines up with what your body requires.
What is a diet analyser?
A diet analyser (also called a diet analysis tool, nutrition calculator, or dietary assessment tool) takes the foods you actually eat and measures them against science-backed nutrient targets. Unlike a simple calorie counter, a proper diet analyser evaluates your intake of vitamins, minerals, essential fatty acids, fibre, and macronutrients — all at once.
This tool analyses your diet against 24 essential nutrients using Dietary Reference Intakes (DRIs) published by the U.S. National Academies of Sciences. It then scores your overall diet quality against 21 published dietary patterns — including Mediterranean, DASH, MIND, Nordic, and the EAT-Lancet planetary health diet — and calculates your Dietary Inflammatory Index (DII), a validated marker of dietary inflammation linked to chronic disease risk.
Why analyse your diet instead of following a meal plan?
Meal plan generators are enormously popular. They promise to do the thinking for you: enter your goals, and out comes a week of meals. But this convenience comes at a cost that few people discuss.
When you outsource your dietary decisions to a generator, you learn nothing about why your diet works or doesn't. You don't develop an instinct for what your body needs. You fall into binary thinking — you're either following the plan perfectly, or you've "fallen off the wagon." There is no middle ground, no flexibility, no transferable skill.
Building and analysing your own diet is fundamentally different. It's a skill you develop once and keep for life. When you build a diet yourself — adding real foods, watching nutrient coverage update in real time, spotting gaps, and learning which foods fill them — you develop what nutritionists call dietary literacy. You start to understand that spinach is a magnesium powerhouse, that sardines cover B12, selenium, and omega-3 simultaneously, and that a single bell pepper delivers twice your daily vitamin C.
This knowledge doesn't expire. It transfers to every meal you eat for the rest of your life — whether you're cooking at home, eating out, travelling, or feeding your family. A meal plan gives you a fish. A diet analyser teaches you to fish.
How this diet builder works
The process is straightforward. You set your calorie and macronutrient targets (the tool calculates these from your age, sex, weight, height, and activity level using the Mifflin-St Jeor equation). Then you search for foods and add them to your meals — breakfast, lunch, dinner, snacks, or any custom meal you create.
As you build your diet, several things update in real time:
- Calorie and macro tracking — a visual gauge showing your intake against your target, with protein, carb, and fat bars.
- Nutrient coverage grid — 24 colour-coded cells showing what percentage of each nutrient's RDA you've hit. Green means covered, red means gap, purple means you've exceeded the tolerable upper limit.
- Gap analysis — when nutrient gaps are detected, the tool suggests specific whole foods to fill them. It prioritises multi-gap heroes (foods that address several deficiencies at once) and deprioritises processed or fortified foods.
- Diet quality score — a 0–100 composite score based on macro balance, micronutrient coverage, diversity, fibre intake, omega-3 levels, and sodium moderation.
- Dietary pattern adherence — how well your diet aligns with 21 published research-grade dietary patterns, from Mediterranean to Okinawan.
- Inflammatory index — your Dietary Inflammatory Index score, calculated from the methodology of Shivappa et al. (2014), with meta-analysis associations for cardiovascular disease, cancer, and all-cause mortality.
Understanding your nutrient targets
The default targets in this tool come from Dietary Reference Intakes (DRIs), which include two key values for each nutrient: the Recommended Dietary Allowance (RDA), which is the daily intake sufficient for 97–98% of healthy individuals, and the Tolerable Upper Intake Level (UL), which is the maximum daily intake unlikely to cause adverse effects.
An important nuance: the UL for some nutrients applies differently to food vs. supplements. For example, the 350 mg magnesium UL set by the Institute of Medicine (1997) applies only to supplemental magnesium (from pills, powders, and fortified products) — not to magnesium from whole foods like spinach, almonds, or dark chocolate. If this tool flags a magnesium excess and all your sources are whole foods, there is no safety concern. We've built this distinction into the tool's alert system.
Similarly, sodium is treated differently. Most diet trackers show sodium as a gap to fill, suggesting you eat more of it. This is misleading. While sodium has an Adequate Intake (AI) value (1,500 mg), virtually all diets exceed this without trying. Sodium is a nutrient where less is generally better above the AI, so this tool does not suggest sodium-rich foods in its gap analysis.
The 21 dietary patterns explained
One of the unique features of this diet analyser is scoring your diet against 21 published dietary patterns. These are not fad diets — they are research-defined eating patterns that have been studied in large cohort studies and clinical trials. Each pattern has specific food group targets derived from the scientific literature.
The Mediterranean diet emphasises olive oil, fish, legumes, nuts, whole grains, and vegetables, with moderate wine consumption. It is one of the most-studied dietary patterns, with consistent evidence for cardiovascular protection and reduced all-cause mortality. The DASH diet (Dietary Approaches to Stop Hypertension) was developed specifically to lower blood pressure through increased potassium, calcium, and magnesium intake while limiting sodium. The MIND diet combines elements of Mediterranean and DASH, specifically targeting brain health and cognitive decline prevention.
Other scored patterns include the Nordic diet (berries, root vegetables, fatty fish, whole grains), Okinawan diet (sweet potato-heavy, low calorie density), EAT-Lancet planetary health diet (environmentally sustainable eating), and more specialised patterns like the Anti-Inflammatory diet and Portfolio diet (designed for cholesterol reduction).
Who is this tool for?
This diet analysis tool is designed for anyone who wants to understand what their diet actually contains — not just calories, but the full micronutrient picture. Common use cases include:
- People exploring new dietary patterns — switching to vegetarian, vegan, or Mediterranean eating and wanting to check for nutrient gaps before they become problems.
- Athletes and active individuals — ensuring protein, iron, calcium, and B12 targets are met alongside higher calorie demands.
- Parents planning family meals — checking whether the foods served actually cover children's nutrient needs.
- Students of nutrition — learning how different foods contribute to overall dietary quality through hands-on experimentation.
- People working with dietitians — using the tool to log intake and generate PDF reports for discussion with their healthcare provider.
The data behind the tool
Every number in this tool traces back to published, peer-reviewed data. The food composition database draws from three harmonised sources: USDA FoodData Central Foundation Foods (laboratory-analysed, highest quality), the Australian Food Composition Database (FSANZ AFCD, filling gaps for nutrients like vitamin K2, D2/D3, and carotenoid fractions), and USDA SR Legacy (broadest coverage fallback). Together, these databases cover 7,793 foods with up to 113 nutrients each.
Nutrient targets use DRIs from the U.S. National Academies. Dietary pattern scoring uses food group targets extracted from the original research publications. The Dietary Inflammatory Index calculation follows the validated methodology of Shivappa et al., with inflammatory effect scores and global mean intake parameters derived from their published dataset.
Why is this tool completely free?
We believe that understanding what you eat shouldn't be locked behind a paywall. This diet builder includes everything: 7-day meal planning, 24-nutrient tracking, gap analysis, diet quality scoring against 21 dietary patterns, Dietary Inflammatory Index, environmental impact assessment, shopping list generation, nutrient trend charts, radar visualisation, and a downloadable PDF report. No account required. No upsells. No subscription. Everything runs in your browser.
Most comparable tools charge $10–30/month for features we give away. We built this as a public resource because good nutrition data should be accessible to everyone — regardless of budget.
More Questions
How accurate is the nutrient data?
The primary database (USDA Foundation Foods) uses laboratory analysis to determine nutrient values, making it the gold standard for food composition data. However, real-world nutrient content varies based on growing conditions, season, soil quality, cooking method, and storage time. Treat the values as reliable estimates rather than exact measurements. We prioritise lab-analysed "Foundation Foods" entries over calculated or imputed values wherever possible.
What's the difference between RDA and AI?
The Recommended Dietary Allowance (RDA) is set when there is enough scientific evidence to determine the intake sufficient for 97–98% of healthy people. When evidence is insufficient to set an RDA, the Adequate Intake (AI) is used instead — it's an estimate based on observed intakes in healthy populations. Both are valid targets, but AI values carry more uncertainty. This tool uses whichever value is available for your age/sex group.
Why does the tool suggest whole foods instead of fortified foods?
Fortified foods (like breakfast cereals with added iron or bread with added folic acid) can appear extremely nutrient-dense in databases because the added nutrients are concentrated. However, whole foods provide nutrients in their natural matrix, which often improves absorption and comes with beneficial co-factors. Our gap analysis algorithm deprioritises processed and heavily fortified food groups so that suggestions reflect genuinely nutrient-dense whole foods — like sardines for B12, spinach for folate, or almonds for vitamin E.
How is the Dietary Inflammatory Index (DII) calculated?
The DII uses a validated scoring system developed by Shivappa et al. (2014). Each food component (nutrients, bioactives) is assigned an inflammatory effect score derived from a systematic review of 1,943 research articles. Your intake of each component is compared to a global mean, standardised, and multiplied by its effect score. The sum gives your overall DII — negative scores indicate an anti-inflammatory diet, positive scores indicate a pro-inflammatory diet. This tool evaluates your DII across all food components for which data is available.
Can I use this tool if I have food allergies or restrictions?
Yes. The dietary restriction filter lets you exclude food groups: vegetarian, vegan, dairy-free, and gluten-free options are built in. Gap analysis suggestions will only show foods compatible with your selected restriction. However, this tool does not track individual allergens (e.g., tree nuts, shellfish). If you have specific food allergies, check ingredient labels independently.
Why doesn't the tool recommend eating more sodium?
Most diet trackers treat sodium like any other nutrient — if you're below target, they suggest sodium-rich foods. This is misleading. While the Adequate Intake (AI) for sodium is 1,500 mg/day, virtually all normal diets exceed this without effort. Excess sodium intake is associated with hypertension, cardiovascular disease, and stroke. In this tool, sodium is treated as a "limit" nutrient: the coverage grid shows green when sodium is low (because lower is better), and the gap analysis never suggests eating more sodium.
What does the diet quality score measure?
The overall diet quality score (0–100) is a composite of seven factors: macronutrient balance (how close your actual macro split is to your target), micronutrient coverage (percentage of 24 nutrients meeting RDA), overconsumption penalties (for exceeding ULs), dietary diversity (number of food groups represented), fibre intake, omega-3 fatty acids (DHA + EPA), and sodium moderation. Each factor is weighted to reflect its relative importance in overall dietary quality, as supported by the nutrition literature.