// reverse meal macro decoder

Your target, in actual food.

Most tools tell you "eat 150g of protein" and leave you stuck. Pick the foods you actually eat, and this works out the exact grams of each to hit your protein, carb, and fat targets. Swap a food and watch the amounts recompute instantly.

Your target & foods01
Don't know your numbers? Get them from the calculator →
Eat this much02
Pick at least one food to begin.
Food values are rounded reference figures (per 100 g, cooked where relevant) based on USDA FoodData Central, for planning only — real products vary, so weigh and check labels for anything that matters. With only a few foods selected you often can't hit all three macros exactly, because they're linked; the tool shows the closest achievable mix and the gap honestly rather than pretending a perfect solution exists. Not medical or dietary advice.
⬡ Want a full food database?

This is a starter set of ~20 staples

For a complete food library, meal logging, and saved meals, that's a job for a dedicated nutrition app rather than a calculator.

Back to the calculator

// how it works

You set a macro target — protein, carbs, and fat in grams — either by hand or by carrying over the numbers from the main calculator. Then you pick the foods you actually want to eat. The tool solves for the gram amount of each food that gets your totals as close as possible to the target, and updates the instant you add, remove, or swap a food.

The honest part: protein, carbs, and fat are coupled in real food, so a handful of items usually can't hit all three exactly. When that happens the tool shows the closest mix it can reach and tells you which macro fell short, rather than inventing a perfect answer. Add a food that supplies the missing macro — a fat source if fat is short, a starch if carbs are low — and the fit tightens.

// related