CalcHive › Nutrition › Protein Cost Calculator

Protein Cost Calculator

By Jason Smith · Updated October 25, 2026

Turn a package price and a label's protein grams into cost per gram.

Add up to eight foods. The page sorts them by dollars per gram of protein, lowest first. Calories per serving are optional. No price is filled in for you.

Estimate only, not medical advice. Informational only. This page does not diagnose, treat, or prevent any condition or replace a doctor or registered dietitian. If you are pregnant, under 19, managing a medical condition or an eating disorder, or on a prescribed diet, get individual guidance.

Package price divided by protein grams

Each row needs a name, a price, a serving count, and protein grams per serving. Total protein is servings times grams per serving. Cost per gram is price divided by that total. The list sorts by cost per gram, lowest first. The first row is marked lowest. A row with zero protein, or a missing price, is dropped rather than shown as an infinite cost. Calories per serving are optional. When you type them, protein per 100 kcal is protein grams times 100, divided by those calories. The 25 gram and 30 gram lines are cost per gram times 25 and times 30. Those two gram counts are this calculator's own comparison portions. They are not taken from a guideline.

The 4 calorie protein factor is not used in the rank. Ranking is dollars per gram of protein, not dollars per calorie. If you want the calorie side of a label, the per 100 kcal column is the only place calories enter, and only when you type them. FoodData Central can be where you read the grams. The number you type is the number this page divides. A label and a database row for the same food can disagree. Use the one you are actually buying.

A blank calorie field drops one column and leaves the rank

That is the trap. The third package in the worked set has a price and protein and no calories. It still sorts. Its per 100 kcal cell is empty. Reading the empty cell as zero would make the food look calorie-free and would change nothing about its cost per gram, which is the sort key. The rank order is chicken, then lentils, then yogurt, because $0.0300 is less than $0.0360, which is less than $0.0500. Filling in a calorie number later does not move a row unless you also change price or protein.

The printed line is not only the sort key. For each ranked row the script joins the name, cost per gram to four decimal places, the 25 g line, the 30 g line, cost per serving, and total protein in the package. When you typed calories, it adds protein grams per 100 kcal. The first row also gets the words "lowest cost per gram in this list." That phrase is the whole claim. A food you did not type cannot win or lose.

Cost per serving is the price divided by the serving count, and it is not the sort. On these three hypothetical packages it prints $0.60 for the chicken, $0.90 for the lentils, and $0.75 for the yogurt. Ordered by serving price, yogurt would sit ahead of lentils. Ordered by cost per gram, lentils sit ahead of yogurt, because $0.0360 is less than $0.0500. The headline follows the per-gram order and reads Example chicken at $0.0300 per gram. A price printed on the front of a package, or the per-serving line alone, answers a different question than this list.

A row is skipped when the name is blank, the price is not a number or is negative, servings are not greater than zero, or protein grams are not greater than zero. The warning names the skipped row. The other rows still rank. A zero-protein row is the case the formula cannot divide. There is no cost per gram of a package that contributes no protein grams.

Equal per-gram figures do not share the lowest mark. Names are ordered alphabetically, and only the first row is marked lowest. Two hypothetical packages, both priced at $2.00, with one serving and 10 g of protein, named Alpha and Beta, both cost $0.2000 per gram, $5.00 for 25 g, and $6.00 for 30 g. Alpha is marked lowest because the name sorts first. Change either price and the mark follows the smaller quotient, not the spelling of the name.

FoodData Central is where a gram count can be read before you type it. Open the food, read the protein grams for the serving you are actually buying, and type that count next to the price on the package. This page does not fetch the record. A database serving and the serving printed on your package can differ. The division uses the serving count and the grams you typed. The general factor of 4 calories per gram of protein in 21 CFR 101.9 is not applied on this page. The per 100 kcal column is protein grams times 100, divided by the calories you typed. It is a density of protein, not a price.

Three hypothetical packages

Prices are hypothetical. Total protein is servings times grams per serving. Per 100 kcal is blank when calories are blank.
NamePrice, servings, protein, kcalTotal proteinPer gramPer 25 gPer 30 gPer 100 kcal
Example chicken$6, 10 servings, 20 g, 100 kcal200 g$0.0300$0.75$0.9020
Example lentils$3.60, 4 servings, 25 g, 80 kcal100 g$0.0360$0.90$1.0831.25
Example yogurt$4.50, 6 servings, 15 g, calories blank90 g$0.0500$1.25$1.50blank

Chicken is 10 times 20, which is 200 g, and 6 divided by 200 is $0.0300 per gram. Times 25 that is $0.75. Times 30 that is $0.90. Protein per 100 kcal is 20 times 100 divided by 100, which is 20. Lentils are 4 times 25, which is 100 g, and 3.60 divided by 100 is $0.0360. Protein per 100 kcal is 25 times 100 divided by 80, which is 31.25. Yogurt is 6 times 15, which is 90 g, and 4.50 divided by 90 is $0.0500. Per 25 g that is $1.25. There is no per 100 kcal figure, because the calorie field was left blank. A row with 0 g protein is omitted.

Where a gram can come from

FAQ

What is cost per gram on this page?

The price you type, divided by servings times protein grams per serving. A package at 6 dollars, 10 servings, and 20 grams of protein has 200 grams in the package and costs 6 divided by 200, which prints as $0.0300 per gram.

Why can the per 100 kcal column be blank?

It is protein grams times 100, divided by the calories per serving you type. Leave calories blank and that column is empty. The rank still uses cost per gram. A blank calorie field is not a claim that the food has no calories.

Are the example prices a survey?

No. The worked prices on this page are hypothetical. They show the division. They are not a market average and not a recommendation to buy one food over another. Replace them with the price on your receipt.

Does FoodData Central supply the grams?

Not automatically. USDA FoodData Central is a place to look up protein grams and calories, which you then type. This page does not copy a food record, and it does not store a price.

What are the 25 gram and 30 gram lines?

Cost per gram times 25, and cost per gram times 30. They are this calculator's own reference portions so two packages can be compared at the same gram counts. They are not a Dietary Guidelines serving and not a prescribed meal.

Related calculators

← Back to Nutrition calculators