Calculators.Life Calculator
Fitness

Food Calorie and Macronutrient Calculator

Input Parameters

Scenarios
Choose a standard reference food from USDA nutrient profiles or enter custom macros
Weight of the food in grams
Used only if Custom Profile is selected above
Used only if Custom Profile is selected above
Used only if Custom Profile is selected above
Used only if Custom Profile is selected above

Computed Results

Total Energy (kcal)
248
Protein (g)46.5
Carbohydrates (g)0
Total Fat (g)5.4
Protein Energy Ratio79.3%
Carbs Energy Ratio0%
Fat Energy Ratio20.7%

The food calorie and macronutrient calculator determines the total energy and macronutrient breakdown of a specific food portion. By selecting a standard ingredient or entering custom nutritional data, you can calculate the total grams of protein, carbohydrates, and fat, along with their respective energy ratios.

This calculator is for informational purposes only and does not provide medical or dietary advice.

How to Use the Calculator

Follow these steps to determine the nutritional profile of your food portion:

  1. Select the Food Item: Choose a standard reference food from the dropdown menu, or select the custom option to enter your own data.
  2. Enter Portion Weight: Input the exact weight of the food in grams.
  3. Input Custom Data (If Applicable): If using a custom profile, enter the calories, protein, carbohydrates, and fat per 100 grams as listed on the product's nutrition label.
  4. Review the Breakdown: The calculator will display the total calories, macronutrient weights, and the percentage of energy coming from protein, carbs, and fat.

Formula and Calculation Method

The calculator scales the nutritional values from a 100-gram baseline to your specific portion size using the following formula:

Total Value = (Portion Weight in Grams ÷ 100) × Value per 100g

To calculate the energy ratios (macronutrient percentages), the tool uses the standard Atwater factors, which assign specific caloric values to each macronutrient:

The percentage for each macronutrient is calculated by dividing its specific caloric contribution by the sum of all macronutrient calories.

Inputs and Outputs

CategoryField NameDescription
InputFood Item / SourceStandard reference food or custom entry selection.
InputPortion Weight (grams)The total weight of the food being measured.
InputCustom Macros per 100gManual entry fields for calories, protein, carbs, and fat (used only for custom profiles).
OutputTotal Energy (kcal)The estimated total calories for the specified portion.
OutputProtein, Carbs, Fat (g)The total weight of each macronutrient in the portion.
OutputEnergy Ratios (%)The percentage of total macronutrient calories derived from protein, carbs, and fat.

Verified Scenario Walkthroughs

Below are examples of how the calculator scales nutritional data based on different portion sizes and food types.

Small portion of healthy snack

Testing a 120-gram portion of an apple:

Standard meal portion of salmon

Testing a 225-gram portion of salmon fillet:

Large bulk cooking of oats

Testing an 800-gram batch of rolled oats:

Custom protein powder supplement input

Testing a 35-gram scoop of a custom powder (380 kcal, 80g protein, 5g carbs, 3g fat per 100g):

Practical Use Cases

This calculator is useful for scaling standard nutritional data to match the exact weight of the food you are preparing. It allows for precise tracking of macronutrients when cooking meals that do not perfectly align with standard 100-gram serving sizes. Additionally, the custom input feature enables the evaluation of specific branded products or supplements by scaling their per-100g label data to your actual serving size.

Frequently Asked Questions

How are the macronutrient energy ratios calculated?

Protein and carbohydrates provide 4 calories per gram, while fat provides 9 calories per gram. The calculator multiplies the total grams of each macronutrient by these values to determine their percentage of the total macronutrient calories.

Can I calculate the macros for a food not on the list?

Yes. By selecting the Custom Profile option, you can manually enter the calories, protein, carbohydrates, and fat per 100 grams from a product's nutrition label, and the calculator will scale those values to your specific portion weight.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.