Real-world example

How much is in a bowl of homemade hummus?

Here's the exact maths behind YummyMetrics, done by hand on a real recipe — from “a quarter cup of tahini” to calories and macros per serving.

The recipe · serves 4

Classic homemade hummus

  • 2½ cups boiled chickpeas, drained
  • ¼ cup tahini
  • 2 tbsp olive oil
  • 2 tbsp lemon juice
  • 2 garlic cloves
  • Salt and a splash of cold water, to taste
  1. Convert every ingredient to grams

    Nutrition data is measured per 100 g, so the first job is turning cups, spoons and cloves into weight. We use USDA household portion weights:

    IngredientMeasureGrams
    Chickpeas, boiled2½ cups400 g
    Tahini¼ cup (4 tbsp)60 g
    Olive oil2 tbsp27 g
    Lemon juice2 tbsp30 g
    Garlic2 cloves6 g
    Total523 g

    Water adds weight but no nutrients. Salt adds sodium only, so we've left it out of the totals below — about ¼ teaspoon of salt adds roughly 590 mg of sodium to the whole batch.

  2. Look up each ingredient per 100 g

    These are the values on each ingredient’s YummyMetrics page, from USDA FoodData Central:

    Per 100 gkcalProteinCarbsFatFiber
    Chickpeas, boiled1648.9 g27.4 g2.6 g7.6 g
    Tahini64819.7 g14.2 g62.4 g8.4 g
    Olive oil8840 g0 g100 g0 g
    Lemon juice220.4 g6.9 g0.2 g0.3 g
    Garlic1436.6 g28.2 g0.4 g2.7 g
  3. Scale to the amount you used

    For each ingredient: value per 100 g × grams used ÷ 100. For the chickpeas, that's 164 × 400 ÷ 100 = 656 kcal. Doing the same for every nutrient and adding them up:

    In the recipekcalProteinCarbsFatFiber
    Chickpeas, 400 g65635.4 g109.7 g10.4 g30.4 g
    Tahini, 60 g38911.8 g8.5 g37.4 g5.0 g
    Olive oil, 27 g2390 g0 g27.0 g0 g
    Lemon juice, 30 g70.1 g2.1 g0.1 g0.1 g
    Garlic, 6 g90.4 g1.7 g0 g0.2 g
    Whole batch1,29947.8 g122.0 g74.9 g35.7 g
  4. Divide by the number of servings

    The recipe serves 4, so we divide the batch totals by 4. One serving is about 130 g of hummus:

    Energy325 kcal
    Protein11.9 g
    Carbs30.5 g
    Fat18.7 g
    Fiber8.9 g

    Share of energy: protein 14% · carbs 36% · fat 50% (using 4/4/9 kcal per gram).

  5. Bonus: per 100 g of finished hummus

    If you'd rather weigh your portion, divide the batch totals by the batch weight (523 g) and multiply by 100. That gives about 248 kcal, 9.1 g protein, 23.3 g carbs, 14.3 g fat and 6.8 g fiber per 100 g. If you thin the hummus with water, weigh the finished batch and use that weight instead — the nutrients stay the same but are spread across more grams.

What the numbers tell you

Comparing foods fairly: per 100 kcal

Weight isn't always the best basis for comparison. Scaling to 100 kcal shows how much of a nutrient you get for the same energy:

Boiled, per 100 kcalProteinFiber
Chickpeas (164 kcal per 100 g)5.4 g4.6 g
Lentils (116 kcal per 100 g)7.8 g6.8 g

Gram for gram the two look similar, but lentils deliver about 44% more protein for the same calories.

Coming soon: our recipe calculator will do all of this automatically. Paste your recipe as plain text and get per-serving totals in a second. Until then, see how our data works or read the FAQ.

Nutrition data: USDA FoodData Central (Foundation Foods and SR Legacy). Values are estimates; actual foods vary. Not medical advice — see our Health Disclaimer.