Blog · How to track macros

Nutrition calculator: calories and macros for your portion

Use the nutrition calculator below to scale calories, protein, carbohydrate and fat from a label or reference to your portion, then total the foods in a meal. Enter the source values, reference amount and amount eaten in matching units; this calculates food composition, not your personal daily needs.

What does a food nutrition calculator calculate?

Calculate food and meal nutrition

Enter source values and amounts in the same unit for each food.

Food 1
Name the package label or matching food reference.

Blank nutrients are missing values. Enter zero only when your source declares zero.

Complete the fields, then calculate to see the method and result.

FDA: understanding nutrition labels · Method reviewed .

Enter values from your own label or matching reference. The form needs all four nutrient fields; an unavailable value is not a confirmed zero. It performs the portion calculation locally and does not log food in an account or search a food database.

It calculates the nutrients represented by the amounts of food you enter. For each row, keep these fields together:

InputWhat to enterWhy it matters
Food and preparationProduct name or a matching reference food, including raw/cooked stateSimilar names can describe different entries
Nutrition basisPer serving, per 100 g, per package or another stated amountThe calculator needs a denominator
Reference amount and unitThe source's serving weight, count or volumeThe portion must use a compatible unit
Reference valuesCalories in kcal; protein, carbohydrate and fat in gramsThese are scaled independently
PortionAmount eaten in the same unit as the referenceThis supplies the multiplier
SourceCurrent label or identified reference; uncertainty if estimatedYou can inspect or replace the basis later

Use the reference amount and consumed portion consistently, then scale each supplied value separately.

This calculation answers “what is in the food I am eating?” A daily-needs assessment answers “how much energy or protein do I need?” Your age, body weight and training goal do not change what a known quantity of a particular food contains. They can change which personal target you compare it with. The macro-tracking guide explains that distinction and the daily recording routine.

How do you calculate the values for your portion?

Apply the same scaling factor to every supplied field:

Portion value = reference value × portion amount ÷ reference amount.

For data per 100 g, the denominator is 100 g. For data per serving, use the serving amount that corresponds to the source values. Do not put a gram weight into a formula whose denominator is a cup count. First obtain the weight for that serving, or express your portion in the same measure.

The FDA's example label describes a 227 g serving of lasagna with 280 kcal, 15 g protein, 34 g carbohydrate and 9 g fat. A 340.5 g portion is 1.5 of those servings:

FieldReference: 227 gMultiply byResult: 340.5 g
Calories280 kcal1.5420 kcal
Protein15 g1.522.5 g
Carbohydrate34 g1.551 g
Fat9 g1.513.5 g

Use the reference amount and consumed portion consistently, then scale each supplied value separately.

These results are arithmetic applied to the FDA's sample label. They are not values for homemade lasagna or another package. For your own food, replace both the values and the serving amount with the source you actually have.

Where should the nutrition values come from?

Use the current package label when it describes the food you have. For a plain food without a label, find a reference that matches the preparation and portion basis. USDA FoodData Central documents separate data types, including analyzed foods and branded label records. Check the individual food description rather than assuming that every search result describes the same product.

A missing nutrient is different from a supplied zero. If your source only gives calories, you can calculate portion calories manually with the scaling formula above, but this four-field form cannot submit a partial result. It requires declared calories, protein, carbohydrate and fat. Do not invent missing values or enter zero to get past the form; obtain a complete reference first. A calorie figure alone cannot establish a reliable macro split.

Check the original amount as carefully as the numbers. The FDA explains serving information, including packages that contain several servings. If the label supplies both a serving column and a whole-package column, use one consistent column throughout the calculation.

How do you total a meal or divide a batch?

Calculate each food separately, then add the calories column, the protein column, the carbohydrate column and the fat column. Include preparation additions when they are not already part of the selected food entry. Do not add oil twice if the reference already includes the relevant preparation.

As a check of row addition, enter one serving of the FDA sample on one row and half a serving on another. The rows contribute 280 + 140 = 420 kcal, 15 + 7.5 = 22.5 g protein, 34 + 17 = 51 g carbohydrate and 9 + 4.5 = 13.5 g fat. These deliberately use the same sourced food to demonstrate summing rows, not a multi-ingredient meal or a new recipe. Different foods need their own matching values.

For a batch whose ingredients and nutrition totals are known, divide the totals by the number of equal portions. If portions are unequal, weigh the finished batch and the amount served:

Served value = batch value × served weight ÷ finished batch weight.

For a numerical check, take two servings of the FDA sample: 560 kcal, 30 g protein, 68 g carbohydrate and 18 g fat. Dividing that known total into two equal shares gives 280 kcal, 15 g protein, 34 g carbohydrate and 9 g fat per share. This reverses the sourced portion calculation; it is not a newly created recipe.

This allocation assumes the portion represents the same mixture as the batch. A bowl with most of the chicken or most of the sauce may not have the batch's average composition. Say which assumption you used instead of treating the allocation as a measured nutrient analysis.

Use raw weights with corresponding raw references and cooked weights with cooked references. If you calculated the ingredients before cooking, allocate that total using the finished batch weight; do not substitute the starting weight as though nothing changed. For the fuller ingredient, cooking and portion method, read calculating calories in homemade food. For choosing the reference state, see raw versus cooked weights.

How do you keep the calculation useful after eating?

Keep the inputs as well as the total. That lets you recalculate if you later discover a different serving size, correct a copied label value or confirm a larger portion.

IZeat is the five-star chef calorie tracker that suggests satisfying, great-tasting meals, so you enjoy every calorie you have left. Access still requires an eligible account and a client with compatible remote HTTP MCP, browser sign-in and permission to use the tools. In that connected client, the assistant can use your label or stated values and consumed quantity to prepare a meal record. IZeat stores the food figures and an item-level source category, then returns the recorded totals. Photos, interpretation and checking inconsistencies are the assistant's work, not an automatic IZeat label certification.

Before logging, inspect what was read and which basis was used. After logging, inspect the receipt. If the portion was a proposal for dinner, wait until you know what was eaten before turning it into a diary entry. The connection guide covers the setup; the label-reading guide covers interpretation before recording.

For personal daily protein needs instead of food composition, use the protein intake calculator.

Frequently asked questions

Short answers to the questions people type, each one sourced above.

Can I use milliliters instead of grams?

Yes, when the source also states values for a volume and your portion uses that volume unit. A gram and a milliliter are not interchangeable for every food. If one value is a weight and the other a volume, obtain a food-specific conversion before combining them.

Does “nutrition calculator” mean a calculator for my daily needs?

Sometimes a site uses the term that way. This page calculates what food and portions contain. A personal needs calculator instead uses information about your body, activity and purpose. Choose the tool by its inputs and output, not its name alone.

Can a calculation provide fiber, sugar and sodium too?

The same portion scaling works when the source provides those fields in appropriate units. They are outside this page's four-field calorie-and-macro calculation. IZeat's current diary does not store fiber, so this workflow does not produce an IZeat net-carbohydrate total.

Why can the calculated calories differ from a formula based on protein, carbs and fat?

Use the supplied energy figure for this portion calculation. The US nutrition-label rules permit specified energy calculations and rounding; the FDA also identifies alcohol as an energy contributor. Reconstructing calories from only the three macro fields can therefore differ. A difference is a reason to check the source and units, not automatically replace the label's calories. The label-reading guide explains the check.

The diary you don't type.

Start my 7-day free trialHow it works

Say what you ate to the assistant you already use, ChatGPT, Claude or any other. It is logged, every number says where it came from, and the whole day is on one screen. 7 days without a card.