How the recipe nutrition calculator works
A recipe nutrition calculator multiplies each ingredient’s nutrition per 100 g by the grams used, adds the rows and divides by the servings. Most of the work is in the grams: the calculator reads the amount and unit of each line, finds the food in USDA FoodData Central’s SR Legacy release and uses that food’s own household measure, the one that matches words such as packed, sliced or chopped.
The food search scores whole words, singular and plural, and prefers the plain food over a processed form unless the line asks for one: “apples” finds raw apples before dried apples, “butter” puts salted butter first, and a line with no unit can use a measure named after the food, such as one avocado. In this nutrition calculator for recipes, a changed match starts the row again from the new food’s data; type grams yourself and the row uses your number, which is what a kitchen scale is for. The Per serving box shows the total ingredient weight and the grams a serving, and both update with every change.
2 1/4 cups all-purpose flour
- Wheat flour, white, all-purpose, enriched, bleached
- Wheat flour, white, all-purpose, enriched, unbleached
- Wheat flour, white, all-purpose, unenriched
- Wheat flour, white, all-purpose, enriched, calcium-fortified
- Wheat flour, white, all-purpose, self-rising, enriched
- Cocoa, dry powder, unsweetened
- Cocoa, dry powder, unsweetened, processed with alkali
- Cocoa, dry powder, hi-fat or breakfast, processed with alkali
- Spices, curry powder
- Spices, chili powder
Search any of the 7,793 foods