Skip to content

Nutrition Calculator

Search a food, choose the matching USDA record, and calculate calories, macros, vitamins, and minerals for any weight or listed serving size.

Search.
Pick a food.
Set the amount.

Nutrition appears here.

How the Nutrition Calculator Works

Select a food and Olivez loads its nutrient values and available portion weights from the nutrition database. The calculator then scales those values to the amount you enter.

For foods reported on a 100 g basis, the calculation is:

nutrient for selected amount = nutrient per 100 g × selected grams ÷ 100

A serving works the same way. Its USDA gram weight is calculated first, then every available nutrient is scaled to that weight. Changing the grams or serving quantity after a food is loaded happens locally in your browser.

Grams or Serving Size?

Grams

Best when you have a kitchen scale or know the exact weight. Enter any positive gram amount and the nutrient values recalculate from that weight.

Serving

Best when USDA provides a useful household measure for the selected food. Portion options can include cups, tablespoons, pieces, slices, or other food-specific measures.

Serving descriptions are food-specific. Do not assume that one cup, one piece, or one slice weighs the same across different foods.

Choosing the Right Food Result

Food names that look similar are not always interchangeable. Check the full description before using a result, especially when the search includes several versions of the same food.

  • raw vs. cooked
  • fresh vs. canned or frozen
  • with skin vs. without skin
  • drained vs. undrained
  • lean vs. higher-fat cuts
  • with salt vs. without salt
  • plain foods vs. mixed dishes
  • different varieties or preparations

The closest description is usually more useful than simply choosing the first food whose name contains the same word.

What Nutrition Data Is Shown?

The result highlights calories, protein, carbohydrate, and fat when those values are available. A smaller key-nutrient view surfaces useful values such as fiber, sugars, sodium, potassium, calcium, iron, magnesium, and vitamins when present in the selected record.

The expanded nutrient list preserves the more detailed USDA measurements instead of throwing them away. Depending on the food, that can include water, individual fatty acids, amino acids, specific vitamin forms, analytical measurements, and other food components.

Missing data is not the same as zero. If the selected USDA record has no value for a nutrient, the calculator does not invent one.

Where the Nutrition Data Comes From

Olivez currently uses three USDA FoodData Central data types:

Foundation Foods — April 2026

Detailed composition data for basic and minimally processed foods, with an emphasis on analytical data and underlying metadata.

SR Legacy — April 2018

The final release of USDA's long-running Standard Reference food composition database. It remains useful for broad historical coverage.

FNDDS 2021–2023 — October 2024

Foods and beverages used for dietary intake analysis in What We Eat in America, the dietary component of NHANES, including extensive household portion information.

The current Olivez database does not include the USDA Global Branded Foods dataset. That means this calculator is strongest for generic foods, ingredients, preparations, and survey foods rather than exact commercial product labels.

Why Nutrition Values Can Differ

A food does not have one universal nutrient profile. Values can vary with cultivar, growing conditions, season, animal diet, cut, moisture, processing, recipe, cooking method, storage, sampling, laboratory method, and rounding.

Cooking is especially important when comparing values per 100 g. Losing water can concentrate nutrients in the cooked food even when the total amount of a nutrient in the original portion has not increased. Added oil, salt, sauces, or drained liquid can change the result further.

For packaged food, the current package label is generally the better match for that exact product than a generic USDA record.

Data Coverage & Limitations

  • Not every food contains every nutrient or household serving size.
  • Search results can contain multiple legitimate versions of the same food; preparation details matter.
  • Values describe the selected USDA record, not a laboratory analysis of the exact food on your plate.
  • Branded packaged-food records are not currently included.
  • The calculator does not combine ingredients into a saved recipe or meal total.
  • This is a food-composition calculator, not a medical, diagnostic, or personalized diet service.

Privacy & Processing

Food search uses an Olivez server endpoint to look up matching records in the nutrition database. The selected food's nutrient and serving data is then returned to the page.

After a food is loaded, changing its gram amount or serving quantity is calculated locally in your browser. Those amount changes do not need a new database request.

Frequently Asked Questions

How do I calculate nutrition for 50 g, 150 g, or another weight?

Search for the food, select the closest matching result, choose Grams, and enter the weight. The calculator scales every available nutrient from the food's USDA reference values to the amount you entered.

Should I choose the raw or cooked food result?

Choose the result that matches the food you are actually measuring. Raw and cooked foods can have different values per 100 g because cooking changes water content and can also change fat, sodium, and other components. Preparation details in the food name matter.

Why are there several results for the same food?

USDA FoodData Central contains distinct records for different preparations, varieties, cuts, fat levels, survey foods, and data sources. A generic name can therefore match several legitimate records. Prefer the description that most closely matches the food in front of you.

Why is a nutrient missing?

Not every USDA food record contains a value for every nutrient. If a value is absent from the selected record, Olivez does not estimate it or silently replace it with zero. A zero that is actually present in the USDA record is still treated as a reported value.

What is the difference between Grams and Serving?

Grams lets you enter an exact weight. Serving uses a USDA portion description and its gram weight, such as a cup, tablespoon, piece, or other listed measure when that food provides one. Both modes ultimately calculate from grams.

Why can nutrition values differ from a package label or another database?

Food composition varies with variety, growing conditions, processing, preparation, moisture, formulation, sampling, analytical method, and rounding. Packaged products can also change over time. Use the food record that best matches what you are measuring.

Does this calculator include branded packaged foods?

Not currently. The Olivez nutrition database uses USDA Foundation Foods, SR Legacy, and FNDDS 2021-2023. It does not currently import the USDA Global Branded Foods database, so a specific commercial product may not appear.

Is this a daily calorie, macro, or diet-planning calculator?

No. This tool calculates the nutrient content of a selected food amount. It does not estimate your calorie needs, set macro targets, diagnose deficiencies, or create a diet plan.

Can I calculate a homemade recipe?

Not as a combined recipe yet. You can calculate individual foods and ingredient amounts, but the current tool does not save ingredients or total an entire recipe.

References