How We Calculate

Where every number on Cooking Measure comes from, how we convert between cup sizes, and how results are rounded.

45 ingredients42 USDA, 3 King ArthurChecked

One data file for the whole site

Every ingredient weight lives in a single file, stored as grams per US customary cup. The grams to cups converter, the grams per cup table and the flour page all read from it, so a number cannot say one thing on one page and something else on another. The file is generated by a script from the source data below; no weight is typed in by hand.

Where the ingredient weights come from

Where both sources list an ingredient, the tables show both and we pick one for the whole site. If neither gives a per-cup weight, the ingredient isn't on the site. That is why there is no figure for sifted all-purpose flour.

Cup sizes

CupVolumeDefinition
US customary cup236.5882 mlNIST Handbook 44 (2024), Appendix C: 1 measuring cup = 8 fl oz = 1/16 gallon; 1 gallon = 231 cubic inches exactly
US legal cup (nutrition labels)240 mlFDA 21 CFR 101.9(b)(5)(viii): 1 cup = 240 mL
Metric cup (Australian Standard; AU / NZ recipes)250 mlStandards Australia AS 1325 (metric measuring cups and spoons): 1 cup = 250 mL

250 ml cups are also common in Canadian recipes, but we found no official Canadian standard that defines the cup, so we treat it as a recipe convention, not a standard.

The US customary cup is 8 US fluid ounces, one-sixteenth of a US gallon of 231 cubic inches, which works out to 236.5882365 ml. For the US legal and metric cups we multiply the US-cup weight by the ratio of the volumes. For liquids this is exact. For dry ingredients it is a close estimate, because the weight also depends on how the cup is filled.

Rounding

Calculations always use the unrounded values; rounding happens only when a number is displayed.

Corrections

If a weight doesn't match your ingredient, tell us the brand, the cup size and how you filled it. We change the data file only when a published source supports the change.