SoftwareNovember 30, 2026, 02:35 PM·9 min read

Calculate Calories From a Photo: How Accurate Are ChatGPT and Gemini? 10 Prompts (2026)

10 ready-to-use prompts for calculating calories from a food photo: a main template, an ask-first version, home-cooked meals, packaged foods, restaurant plates, half-finished plates, an Excel log and a TURKOMP check. We explain in detail how ChatGPT's error dropped from 35.8% to 13.92% in two peer-reviewed studies.

Calculate Calories From a Photo: How Accurate Are ChatGPT and Gemini? 10 Prompts (2026)
Key Takeaways
  • In a peer-reviewed measurement using 52 meal photos, ChatGPT-4o estimated calories with an average error of 35.8%; in the same test, Gemini 1.5 Pro's error was 64.2%.
  • In a 195-plate measurement with ChatGPT-5, the error was 30.51% with the photo alone; adding an ingredient list with amounts brought it down to 13.92%.
  • Every model underestimated large portions: ChatGPT counted a plate of lentil stew as 255 grams instead of 480 grams.
  • Write down the oil the photo can't show: according to TURKOMP (Turkey's national food composition database), 100 grams of olive oil is 900 kcal, so 20 grams added to a dish is 180 kcal.
  • Don't adjust insulin doses based on this estimate. In the same study, ChatGPT-4o's carbohydrate error was 47.9%.

When you upload a meal photo to ChatGPT and ask for the calories, the number you get was off from the real value by 35.8% on average in a peer-reviewed measurement of 52 photos. In a second study with ChatGPT-5, listing the ingredients and their amounts next to the photo brought the error down to 13.92%. So when you calculate calories from a photo, you are the one who changes the result most: put a fork next to the plate, mention the oil and the cooking method, and ask for the total as a range.

The 10 prompts below are built on the findings of these two studies: a scale object, a question order for hidden information, packaged food labels, half-finished plates, a daily log exported to Excel and a check against TURKOMP values. The prompts don't name any tool; paste them as they are into ChatGPT, Gemini or Claude and fill in the square brackets for your own meal.

Where the numbers in this post come from (November 30, 2026)

We did not send any new meal photos to ChatGPT or Gemini for this post. The accuracy figures come from two peer-reviewed studies: Fridolfsson et al. (Current Developments in Nutrition, September 2025; tests run in September 2024 with ChatGPT-4o, Claude 3.5 Sonnet and Gemini 1.5 Pro) and Rodríguez-Jiménez et al. (Nutrients, November 19, 2025; ChatGPT-5). We read the energy values per 100 grams from the TURKOMP food pages on November 30, 2026. The sample plate photo is CC0 licensed on Wikimedia Commons.

How to Calculate Calories From a Photo: 5 Steps

  1. Photograph the plate from above and slightly from the side; keep a fork, spoon or slice of bread in the frame. The model compares grams against this object.
  2. For foods whose filling you can't see, like dolma, borek (filled pastry) or sarma (stuffed vine leaves), cut one in half and show the inside too.
  3. Upload the photo to ChatGPT or Gemini, paste Prompt 1 and type the scale object into the square brackets.
  4. If the model asks questions, answer with the type and amount of oil, the type of meat, the sugar and the cooking method. If you made the dish at home, add the recipe and the amounts (Prompt 4).
  5. Save the total as a range and use the same prompt at every meal, so differences between days show up on the same scale.

ChatGPT's free plan includes image and file uploads; these tools have a limit separate from the message limit, and once you reach it ChatGPT shows when you can try again (OpenAI, ChatGPT Free Tier FAQ). In the Gemini app you can attach up to 10 files to one request, and the limit for files other than video is 100 MB (Gemini Help Center). A plate photo taken with a phone is far below that limit.

The most common mistake: not mentioning the oil

The model can't tell from a photo how much oil is shining on the plate. For a dish cooked in olive oil, divide the oil you added to the pot by the number of portions and write it in grams; this line changes the calorie estimate more than any other.

10 Ready-to-Use Calorie Counting Prompts (Copy and Paste)

Prompt 1 is the main template and works for any plate. For home-cooked food Prompt 4, for packaged products Prompt 5 and for restaurant meals Prompt 6 give more accurate results. If you save Prompt 9 once as a persistent instruction, for later photos you only need to upload the image.

1) Calorie table from your plate (main template)

Prompt 1 : Calorie table from your plate (main template)
Prompt
Estimate the calories of the plate in the meal photo I uploaded.
1. List each food on the plate by name on a separate line. If you are unsure about a food, write both possibilities.
2. Estimate the grams of each one by comparing it with the [fork / spoon / slice of bread] in the photo; do not assume a standard portion.
3. For each line, give kcal, protein, carbohydrates and fat.
Table: Food | Grams | kcal | Protein (g) | Carbohydrates (g) | Fat (g)
Add a total row at the bottom; give the total calories as a range with the lowest and highest values.
On a separate line, write the amount you assumed for any oil, sugar or sauce that isn't visible in the photo.
Do not give diet advice or health commentary, only give the estimate.

An adapted and expanded version of the prompt from the Fridolfsson study. Because you ask for a range, you can see which line the model is unsure about.

2) Short version

Prompt 2 : Short version
Prompt
Estimate the calories of the foods in this photo. Give grams and kcal for each food, and give the total as a range. Estimate the grams from the size of the plate and the fork; do not assume a standard portion.

3) Ask first: hidden information

Prompt 3 : Ask first: hidden information
Prompt
Before calculating the calories in the meal photo I uploaded, ask me at most 5 questions.
Ask them in this order: type and amount of oil used, type of meat (beef, lamb, chicken; fatty or lean), sugar or sweetener, fat content of dairy products, cooking method (fried, baked, boiled).
Once I answer, give grams, kcal, protein, carbohydrates and fat for each food in a table.
Give the total as a range and mark the lines that changed because of my answers.
If there is a food whose inside you can't see, like dolma, borek or sarma, ask me to cut it in half and take a new photo.

The question order matches the instruction the authors of the Nutrients study wrote for ChatGPT: oil first, then meat, sweetener, dairy and cooking method.

4) Home-cooked meal: with recipe and amounts

Prompt 4 : Home-cooked meal: with recipe and amounts
Prompt
I cooked the meal in the photo at home. Here is the full recipe with amounts:
[e.g. 500 g ground beef, 30 g olive oil, 1 onion, 400 g tomatoes, 250 g rice]
The amounts I gave are raw weights. The pot made [4] equal portions; the plate in the photo is [1] portion.
First calculate the total calories and macros of the recipe, then divide them down to the portion in the photo.
If you see anything in the photo that doesn't match the recipe (e.g. oil or yogurt added on top), list it on a separate line.
Give the result as a table and a one-line total.

In the second study, the lowest error (13.92%) came with this information. If you weigh the amounts on a kitchen scale, the estimate narrows even further.

5) Packaged food: from the nutrition label

Prompt 5 : Packaged food: from the nutrition label
Prompt
Of the two photos I uploaded, one is the front of the product and the other is the nutrition facts table on the back.
Read the per 100 g (or 100 ml) values in the table exactly as printed and first list them for me line by line; if there is a number you can't read, do not guess, ask me.
I ate [grams / pieces / ml] of this product.
Calculate kcal, protein, carbohydrates, sugar, fat and salt for the amount I ate.
Show the calculation: per 100 g value × amount I ate ÷ 100.

When there's a label, there's no need to estimate from the photo; the model only reads and multiplies.

6) Restaurant and cafeteria plates

Prompt 6 : Restaurant and cafeteria plates
Prompt
The photo is of a [restaurant / cafe / cafeteria] meal. Its name on the menu: [e.g. chicken shish, rice pilaf, roasted peppers].
I don't know how much oil the restaurant added; give two lines for each food: a low-oil assumption and a high-oil assumption.
Estimate the grams by comparing with the [fork / knife / slice of bread] on the plate.
At the end, write two totals (low oil and high oil) and tell me which food the difference comes from.

7) Only what I ate: before and after photos

Prompt 7 : Only what I ate: before and after photos
Prompt
I'm uploading two photos: the first is the plate before I started eating, the second is the same plate after I finished.
Compare the two photos and estimate, as a percentage, how much of each food is left on the plate (e.g. 30% of the rice is left).
Then estimate the calories in the first photo and calculate the calories for only the part I ate.
Table: Food | Starting grams | % left | Grams eaten | kcal eaten
If the two photos were taken from different angles, say so and give the result as a range.

On days you don't finish your plate, logging the calories from the first photo inflates your record. The second photo closes that gap.

8) Daily log: a table to paste into Excel

Prompt 8 : Daily log: a table to paste into Excel
Prompt
I'm uploading photos of the meals I ate today in order: [breakfast, lunch, dinner, snack].
For each photo, list the foods with estimated grams, kcal, protein, carbohydrates and fat.
Give the result as CSV I can paste into Excel; use semicolons as the separator and commas as the decimal separator.
Columns: Date;Meal;Food;Grams;kcal;Protein_g;Carbs_g;Fat_g;Note
Put [30.11.2026] in the Date column. In the Note column, briefly write your assumptions (amount of oil, cooking method).
Do not add any explanation before or after the CSV.

With a semicolon separator, decimal commas don't break in Turkish-language Excel. To turn a meal list you wrote on paper into a table, see our post on moving a table from a photo into Excel.

9) Persistent instruction: Gem or project

Prompt 9 : Persistent instruction: Gem or project
Prompt
Every time I upload a meal photo in this chat, do the following:
1. List the foods on separate lines and mark the ones you are unsure about.
2. Estimate the grams by comparing with the fork, spoon or plate in the photo.
3. Before calculating, ask about the oil, the type of meat and the cooking method; if I don't answer, write down your assumption.
4. Give a table: Food | Grams | kcal | Protein | Carbohydrates | Fat; give the total as a range.
5. When I write "Day summary", add up that day's tables.
Do not give diet advice, weight goals or health commentary; only give the estimate.

Paste this text into a Gem's instructions in Gemini or into a project's instructions in ChatGPT. ChatGPT doesn't let personal accounts create new GPTs (OpenAI, Free Tier FAQ); project instructions do the same job. We explain how to write a persistent instruction in our ChatGPT personalization post.

10) Cross-check with TURKOMP values

Prompt 10 : Cross-check with TURKOMP values
Prompt
You just estimated grams for the foods in the photo. Now do not calculate the calories from your own knowledge; use the per 100 gram values I give below (source: TURKOMP):
[e.g. Simit, Izmir: 368 kcal; protein 12.14 g; carbohydrates 38.42 g; fat 16.46 g]
[e.g. Olive oil, extra virgin: 900 kcal; fat 100 g]
For each food: grams × per 100 g value ÷ 100. Show the calculation line by line.
Do not calculate any food that isn't on the list; write "no value" instead.
At the end, write the difference between your first estimate and this calculation in kcal.

In this prompt you supply the per 100 gram values and the model only multiplies. If the two results differ a lot, take a second look at the gram estimate.

If the model gives a single number or refuses

If it gave the total as a single number, add: "Write the lowest and highest estimates separately and tell me where the difference comes from." If it refuses to calculate for health reasons, write that your question is a nutrition estimate and that you don't want diet advice. If it misidentified a food, correct the name yourself; on the plate where Gemini 1.5 Pro mistook falafel for meatballs, protein came out 360% too high.

Is ChatGPT Accurate at Counting Calories? What Two Studies Found

Fridolfsson and colleagues showed 52 weighed meal photos to three models using the same prompt; they set the medium portions according to the Swedish Food Agency's measures. The plates were built on rice, pasta or boiled potatoes, and each one was photographed as a small, medium and large portion. The results were compared with values calculated from the weights and a nutrient database.

Model (tested September 2024)Energy errorCarbohydrate errorNote
ChatGPT-4o35.8%47.9%Weight error 36.3%; counted a large lentil plate as 255 g instead of 480 g
Claude 3.5 Sonnet35.8%72.8%Mistook scrambled eggs for pasta on one plate
Gemini 1.5 Pro64.2%64.2% to 109.9% (all nutrients)Mistook falafel for meatballs, overestimated protein by 360%

The numbers in the table are mean absolute percentage errors: on a 500 kcal plate, 35.8% means the estimate is off by 179 kcal on average. All three models underestimated more as portions got bigger; the percentage error on small portions was roughly 20 to 30% lower than on large ones. Both of these models are now outdated: the Gemini app runs on newer models today, and the default model on ChatGPT's free plan is now from the GPT-5 family. The numbers in the table are results for the 2024 models.

The study by Rodríguez-Jiménez and colleagues, published in November 2025, asked the same question with ChatGPT-5 and 195 plates. Each plate was assessed four times: photo only; photo plus hidden information (type and amount of fat, sweetener, fat content of dairy, type of meat); photo plus an ingredient list with amounts; ingredient list without the photo. The average error fell from 123 kcal to 92 kcal, then to 53 kcal. With the photo removed, the error climbed back to 66.5 kcal; according to the authors, without seeing the photo the model couldn't tell whether the ingredients were raw or cooked.

Accuracy of calculating calories from a photo: with ChatGPT-5, average error 30.51% with the photo only, 24.35% with hidden information, 13.92% with ingredients and amounts, 18.05% with an ingredient list and no photo
ChatGPT-5 calorie error by how much information it was given (195 plates). Source: Rodríguez-Jiménez et al., Nutrients, 2025.

Initial prompts with minimal instructions consistently failed to discriminate between portion sizes, as models defaulted to typical serving assumptions rather than using visual cues.

· Fridolfsson et al., Current Developments in Nutrition (2025)

This sentence from the authors is where the prompts above start: given a short request, the model writes "standard portion" without looking at the plate. That is why the prompt in the study explicitly asked it to compare the grams with other objects on the plate. We added the second study's question order and the rule of asking for the total as a range.

Hidden Calories: What Does 100 Grams Come To in TURKOMP?

TURKOMP energy values per 100 grams: ayran 37, yaprak sarma in olive oil 184, Ramazan pidesi 258, raw manti 292, Izmir simit 368, Antep pistachio baklava 432, butter 753, extra virgin olive oil 900 kcal
100 grams of ayran has 37 kcal, the same amount of olive oil has 900. Oil and syrup don't show in a photo, and that's where most of the calorie gap comes from. Source: TURKOMP, November 30, 2026.

TURKOMP is the national food composition database of Turkey's Ministry of Agriculture and Forestry, the output of project no. 107G208, which TUBITAK (Turkey's scientific research council) funded from 2008 to 2013. The values are per 100 grams of the edible part of the food. The eight rows below show why foods that look alike in a photo carry very different calories.

Food (TURKOMP entry)Energy (kcal / 100 g)Fat (g / 100 g)Water (g / 100 g)
Ayran (yogurt drink), full fat372.0092.26
Yaprak sarma (stuffed vine leaves) in olive oil (Izmir)1847.7660.16
Ramazan pidesi (Ramadan flatbread)2581.5034.04
Manti (dumplings), raw (Kayseri)2925.7130.44
Simit (Izmir)36816.4622.66
Antep baklava, pistachio43222.6416.25
Butter, breakfast75383.2215.62
Olive oil, extra virgin900100.000.00

Every gram of fat carries 9 kcal: 20 grams of olive oil added to a plate comes to 180 kcal (20 × 900 ÷ 100). That amount takes up almost no space in a photo. Water content is misleading too: ayran is 92% water, baklava 16%. The manti row is for raw dough, and the rice value in TURKOMP (Osmancik, 341 kcal) is also given for raw rice. Pilaf absorbs water as it cooks, so 100 grams of it comes in below that value; in Prompt 4 we stated that the amounts are raw so the model doesn't mix up raw and cooked values.

How to Take a Photo for Calorie Counting

Breakfast plate for calculating calories from a food photo: fork and knife as scale, simit, boiled egg, menemen (Turkish scrambled eggs with tomatoes), white cheese, kashar cheese, tomato and olives labeled
On this plate the model can compare grams with the fork and knife. The oil in the menemen and the types of cheese can't be read from the photo; Prompt 3 asks about them. Photo: Wikimedia Commons, CC0.
  • Add a scale object: a fork, spoon or slice of bread. The prompt in the Fridolfsson study also asked for grams based on the objects on the plate.
  • Keep the whole plate in the frame; food cut off at the edge gets a lower gram estimate.
  • Shoot in daylight without flash; glare hides oil and sauce.
  • If the plate is very full, take two photos: one from above, one from the side. Gemini lets you attach up to 10 files to one request.
  • Cut closed foods open: sarma, borek, dolma, durum wraps. The authors of the Nutrients study recommend this too.

Common Mistakes

  • Taking a single number as exact. In the peer-reviewed measurement, the average deviation on a 500 kcal plate works out to 179 kcal; ask for the total as a range.
  • Not mentioning a large portion. All three models underestimated more as portions got bigger; check a generous plate with Prompt 4 or Prompt 10.
  • Skipping oil, sugar and sauce. They don't show in the photo, and according to TURKOMP 100 grams of oil is 900 kcal.
  • Mixing up raw and cooked values. For rice, pasta and dried legumes, state whether you are giving the raw or the cooked weight.
  • Not correcting a misidentified food. On one plate Claude mistook scrambled eggs for pasta and overestimated carbohydrates by 1,788%.
  • Asking for a photo estimate of a packaged product. Upload a photo of the label and have the model read it with Prompt 5.

Using It in Turkey: TURKOMP and KVKK

In Turkish dishes, most of the calories come from oil added in the pot: olive oil dishes (zeytinyagli), menemen, pilaf, borek. The model may recognize these dishes, but it can't know how much oil went in, so for Turkish cooking Prompt 3 and Prompt 4 are the most useful. If you'd rather not leave the value to the model's memory, search for the food's name in TURKOMP and enter its per 100 gram value in Prompt 10; the food pages open without logging in.

If you write an illness, medication or lab results next to the photo, that is health data, which Article 6 of Law No. 6698 (KVKK, Turkey's personal data protection law) classes as special category personal data. You don't need this information for a calorie estimate; in the prompts, describe only the food. If diabetes, kidney disease or medical nutrition therapy is involved, use the estimate together with your dietitian's chart.

Frequently Asked Questions

It gives an approximate result. In a peer-reviewed measurement of 52 plates, ChatGPT-4o's calorie estimates were off by 35.8% on average; in another measurement with ChatGPT-5, adding the ingredients and amounts to the photo brought the error down to 13.92%.

Yes. ChatGPT's free plan includes image uploads, though that tool has its own usage limit. You can also upload a photo in the Gemini app and use Prompt 1; you can attach up to 10 files to one request.

Yes, and the prompts work as written. The 64.2% error in the peer-reviewed measurement belongs to Gemini 1.5 Pro from September 2024; today's Gemini models were not in that test. Save Prompt 9 to a Gem and you'll get the same table for every photo.

A photo taken from above in daylight, with the whole plate visible and a fork or spoon beside it. Cut closed foods (sarma, borek) in half and show the inside.

Don't use it to dose insulin. In the peer-reviewed measurement, ChatGPT-4o's carbohydrate error was 47.9% and Claude 3.5 Sonnet's was 72.8%. Count carbs with the method your dietitian taught you.

Both estimate from a photo. If you save Prompt 9 as a persistent instruction in ChatGPT or Gemini and move your daily table into Excel with Prompt 8, you can keep the same log without a separate app.

Before you photograph your next meal, put a fork next to the plate and make a mental note of how much oil went into the food. Prompt 3 asks for exactly these two things; in the second study, that two-line answer is what cut the error from 123 kcal to 92 kcal.

We Offer This Service

AI Integration and Chatbot Development Service

We build assistants that read a photo, write it into a table and calculate with your own database, for work like tracking a dietitian's clients or adding nutrition information to a menu. Let's talk about what you need.

Software
Write to us