How do I calculate the calories and macros of a recipe with ChatGPT or Claude?
Why ChatGPT gives different calories for the same recipe, how to get steadier macros per portion, and how to keep the numbers.
7 min read
Who it is for: Home cooks counting calories or macros who paste recipes into ChatGPT or Claude and get a different answer every time
ChatGPT and Claude can estimate a recipe's calories and macros, but only as well as the ingredient list you give them, and they can give a different figure for the same recipe on another day. Give every ingredient in grams, say raw or cooked, count the oil, state how many portions the pot makes, and check the result against a label or a food database such as USDA FoodData Central. Then save the agreed figure with the recipe so the next chat uses it instead of working it out again.
From September 2025 to March 2026 I planned our family's dinners with my old Claude setup, in twelve weekly plans. Claude planned our dinners well, but the plan lived in my chat. My wife plans in ChatGPT, so she couldn't see it, change it or tick off the list with me. That is why I built Droklo.
I train for a marathon and had a daily protein target. From January on, every weekly plan included a short protein estimate, and every number in it started with a tilde: "~45 g" for a tuna and white bean salad, "~55 g" for a chicken dinner. To get me more protein, Claude just tripled the tuna in that salad, from one can to three, and the new total was another guess. In March the tables showed that dinner and snacks covered at most about half of my target.
The tables also disagreed with each other. Across three plans in January and February, a 200 g portion of chicken was "~45 g" of protein, then "~55 g", then "~50 g". The estimates never said raw or cooked, the cut changed from plan to plan, and every new plan worked it out again from scratch. That is the real problem with recipe macros in a chat. The estimate is rough, which you can live with. It is also never kept.
Can ChatGPT calculate calories and macros for a recipe?
Yes, as an estimate, and Claude can too. It adds up each ingredient for the weight used and divides by the portions, but it usually works from what it remembers about foods rather than looking each one up. Plain whole foods like chicken breast, oats or lentils are easier to get right than branded products, sauces and vague amounts.
Why does ChatGPT give different calories for the same recipe?
Part of it is the model. A 2023 study in JAMA Network Open asked ChatGPT 3.5 and 4 about the energy and macros of 222 foods and compared the answers with Taiwan's national food composition database. Fewer than half of the energy estimates fell within 10% of the reference value, and asking the same question five times gave answers that varied by about 5 to 6% on average. Today's models are newer, so take the figures as a warning rather than a measurement.
The bigger part is the recipe. Most home recipes leave gaps, and the assistant fills each one with a fresh guess:
- "1 chicken breast" can weigh 150 g or 300 g.
- "A drizzle of oil" can be a teaspoon or three tablespoons.
- "200 g rice" does not say dry or cooked.
- "Serves four to six" leaves the portion open.
- "Yoghurt" can be full fat or fat free, and "tuna" can be in oil or in water.
Change two of those guesses and the total moves by a few hundred calories, even though nothing in the pot changed.
How do I get more accurate macros from ChatGPT or Claude?
Close the gaps before you ask:
| What to give | Why it matters |
|---|---|
| Every ingredient in grams | "One onion" or "a handful of spinach" becomes a guess |
| Raw or cooked, dry or drained | Cooked rice and pasta are mostly water, so 100 g dry and 100 g cooked are very different amounts of food |
| All the oil and butter | Fat has 9 kcal per gram, protein and carbohydrate 4 (EU Regulation 1169/2011, Annex XIV), so a level tablespoon of oil, about 13.5 g, adds roughly 120 kcal |
| The exact product | Light and full fat yoghurt, cheese or tuna in oil are far apart |
| The number of portions | Everything is divided by it |
Then ask for the working, not only the answer:
Here is a recipe with every ingredient weighed raw, in grams: [paste it]. It makes 4 portions. Work out kcal, protein, carbs, fat and fibre per portion. Show each ingredient on its own line, tell me which values you are unsure of, and round only at the end.
Check the two or three ingredients that carry the most calories, usually the meat or fish, the oil and the starch, against the package label or USDA FoodData Central. If one is off, give the assistant the right value and ask it to work the total out again.
How do I work out calories per portion of a homemade recipe?
If the pot is shared out evenly, divide the total by the portions. Real portions are rarely even, so weighing the cooked dish is more honest:
- Work out the whole recipe from raw weights, as above.
- Weigh the finished dish without the pot.
- Divide the total calories by the cooked weight. That gives you calories per gram of the finished dish.
- Weigh what goes on your plate and multiply.
A serving on a label is not advice either: the FDA explains that serving sizes reflect what people typically eat and are not a recommendation, so compare your plate with it rather than assume they match.
Are the calories and macros on Instagram recipes accurate?
Treat them as a claim. A creator's figure may come from an app, may leave out the oil, or may cut the pan into more portions than anyone would eat. There is a quick sanity check: protein times 4, plus carbs times 4, plus fat times 9 should land close to the posted calories. A post that says 400 kcal with 30 g protein, 40 g carbs and 25 g fat adds up to about 505 kcal. Fibre and rounding explain small gaps, not that one.
Here is the caption of a recipe I saved: [paste it]. Work out the macros yourself from the ingredients, then tell me how your figure compares with the creator's and why they might differ.
For getting the recipe out of a post in the first place, see how to save recipes from Instagram and TikTok.
Can ChatGPT or Claude remember a recipe's macros for next time?
Not reliably. Memory, where you have it on, keeps short notes about you, not a recipe card with the grams and the figures you agreed on. A spreadsheet works if you keep it up.
How Droklo keeps it
Droklo connects to the Claude or ChatGPT you already use in about two minutes (connect your assistant) and gives it a place to store recipes for your household. Once you are happy with a figure, ask:
Save this recipe to Droklo with the ingredients in grams, 4 portions and the per portion nutrition we just worked out. Mark it as estimated.
The recipe is saved with each ingredient in grams and as written, the number of portions, and nutrition per portion: calories, protein, carbs, fat, fibre, saturated fat, sugars and salt, flagged as estimated. If it came from a post, the creator's numbers are kept under "The creator says", beside the assistant's own estimate, and the recipe page lists what was missing from the source and what the assistant added. A value nobody knows shows as a dash, never as zero. The next time you plan that dish, the assistant reads the saved figure instead of starting again.
Droklo does not look foods up in a nutrition database and does not read photos itself. The numbers come from the recipe source or the assistant's estimate, so the grams and the label check above still matter. For that check, your assistant can read a photo of the label.
How do I count calories when I eat half a portion or two portions?
Say how much each person ate and the portion does the maths:
We had the lasagne tonight. I had two portions, my daughter had half.
Droklo logs the meal for each person and scales the recipe's nutrition by the portion eaten. Each day on the Plan shows planned against eaten for each person, and Progress shows the days against their targets. A day without a log shows as not logged, never as zero. If you did not weigh your plate, half, one or two is enough. A consistent rough figure tells you more over a month than a precise one you gave up on after a week. If protein is what you are counting, high protein family dinners goes further.
This is general food guidance, never medical advice. If you count calories for a medical condition, or cook around an allergy, ask your doctor or a registered dietitian.