Grocery List Generator
By Jason Smith · Updated October 25, 2026
Scale several recipes, merge matching units, and copy one list.
Paste ingredient lines, set original and desired servings, and optionally subtract what you already have. Prices stay blank until you type them.
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.
Scale each recipe, then add only inside one unit family
Each recipe has an original yield and a desired yield. The scale is desired divided by original. A line that starts with a number, a fraction, or a mixed number is multiplied by that scale. Lines that share a name and a unit family are added. Volume is summed in milliliters, then shown in the unit the display menu asks for. Weight is summed in grams. Count, such as eggs or cans, is summed as a count. A line with no leading amount is listed as unparsed and is not added to anything.
The cup, teaspoon, tablespoon, fluid ounce, pint, quart, and gallon in this script are the US customary factors also used on the cooking converter, not the household measures in the nutrition-label rule. The script's cup is 236.5882365 mL. Its fluid ounce is 29.5735295625 mL. Its pound is 453.59237 g, and the ounce is that pound divided by 16, which is 28.349523125 g. NIST Special Publication 811, Appendix B, lists the U.S. cup as 2.365882 times 10 to the 2 mL and the avoirdupois pound as 4.535924 times 10 to the minus 1 kg. Those printed NIST factors are rounded in the guide's E notation. This script keeps the longer constants above. 21 CFR 101.9(b)(5)(viii) is a third set, for labels: teaspoon 5 mL, tablespoon 15 mL, cup 240 mL, fluid ounce 30 mL, ounce of weight 28 g. This page does not use 5, 15, 240, 30, or 28.
Display set to cup forces a volume total into cups even when the result is a small fraction. Display set to auto picks a unit inside the family. Round up, when checked, ceilings each total to the script's step for that unit before printing. Prices are optional and per line. The total is the sum of the prices you typed. Empty price boxes are skipped.
A cup of rice will not absorb an ounce of rice
That is the trap. Two lines can name the same food and still not merge. The load-merge example is the demonstration. Recipe one is 4 servings to 4 servings, scale 1: 1 lb ground turkey, 2 cups rice, 1.5 tsp salt. Recipe two is 2 servings to 4 servings, scale 2: 4 oz ground turkey becomes 8 oz, and 3 oz rice becomes 6 oz. Eight ounces is half a pound, so the turkey lines merge to 1 1/2 lb ground turkey. The rice lines do not merge. One stays 2 cups rice. The other stays 6 oz rice. Salt stays 1 1/2 tsp salt. The result flags rice as split across families. This page will not invent a density to finish the job. The cooking measurement converter can cross weight and volume only after you pick an ingredient. This list does not.
A pantry line of 1/2 lb ground turkey subtracts inside the weight family and leaves 1 lb ground turkey. It does not touch the rice. If you switch the volume display to cups, 1.5 tsp salt at a scale of 1 prints as 0.03125 cups salt. That is the same salt, forced into cups. It is not a kitchen measure you would use, and it shows why auto display exists.
Lines this form prints
| Run | What you type | What prints |
|---|---|---|
| Merge, auto, no round | 1 lb ground turkey, 2 cups rice, 1.5 tsp salt at 4 to 4; 4 oz ground turkey and 3 oz rice at 2 to 4 | 1 1/2 lb ground turkey; 1 1/2 tsp salt; 2 cups rice; 6 oz rice |
| Same list, pantry 1/2 lb turkey | The merge lines, plus a pantry subtraction | 1 lb ground turkey, rice and salt unchanged |
| Hypothetical prices | 4.00 on the turkey line and 2.50 on the cup-rice line | $6.50 from two of the four lines |
| Round up | 1.1 cups flour, 2.5 eggs, to taste black pepper, 1 can black beans, 8 oz black beans | 1 1/4 cups flour; 3 eggs; 1 can black beans; 8 oz black beans. Pepper unparsed. |
| Cups display | 1.5 tsp salt, scale 1 | 0.03125 cups salt |
The bean lines stay split for the same reason as the rice. A can is a count. Eight ounces is weight. Round up does not convert one into the other. The $6.50 is 4.00 plus 2.50. It is hypothetical. Nothing on the page fills those boxes from a store.
Where the measures come from
- NIST SP 811, Appendix B. U.S. cup 2.365882 times 10 to the 2 mL. Avoirdupois pound 4.535924 times 10 to the minus 1 kg. Avoirdupois ounce 2.834952 times 10 to the 1 g.
- 21 CFR 101.9(b)(5)(viii). Label measures: teaspoon 5 mL, tablespoon 15 mL, cup 240 mL, fluid ounce 30 mL, ounce of weight 28 g. This script does not use them. Section text read on the LII copy of that CFR section.
- USDA FoodData Central is a composition database, not a unit converter and not a price list. This page does not read it.
FAQ
Why do cups of rice and ounces of rice stay on separate lines?
They are different unit families. This page adds amounts only when the name and the family match. Volume stays in milliliters. Weight stays in grams. It will not turn a cup of rice into ounces, because that conversion depends on the food and this script has no density table.
Why is the script's cup not 240 milliliters?
21 CFR 101.9(b)(5)(viii) says that for nutrition labeling a cup means 240 mL, a teaspoon 5 mL, a tablespoon 15 mL, a fluid ounce 30 mL, and an ounce of weight 28 g. This grocery script does not use those label measures. Its cup is 236.5882365 mL. NIST Special Publication 811 lists the U.S. cup as 2.365882 times 10 to the 2 mL, which is 236.5882 mL at the digits NIST prints. A label cup and a recipe cup will not add cleanly.
What does round up actually change?
Each unit has a step in the script. Cups step by 0.25, so 1.1 cups becomes 1.25 cups and prints as 1 1/4 cups flour. Counted items step by 1, so 2.5 eggs becomes 3 eggs. A line with no leading amount, such as to taste black pepper, is left unparsed. Round up does not merge a can of beans with an ounce line of beans.
Where does the $6.50 come from?
From prices you type. On the merged list, a hypothetical 4.00 on the turkey line and a hypothetical 2.50 on the cup-rice line sum to $6.50. Blank price boxes are omitted. The dollars are not a receipt and not a survey. Change either typed price and the total changes by that amount.
Does the pantry line delete the food?
It subtracts, in the same unit family. A pantry line of 1/2 lb ground turkey against a merged 1 1/2 lb leaves 1 lb ground turkey. It does not subtract a volume pantry line from a weight shopping line.
Related calculators
- Weekly meal planner, which can hand off scaled ingredient lines
- Recipe scaler for one recipe's yield
- Cooking measurement converter for one amount, including weight and volume when you name an ingredient
- Meal prep portion calculator
- Protein cost calculator
- Weight converter