Skip to content

Methodology

Cooking methodology

Density data from USDA + King Arthur + BBC Good Food. Regional cup volume as a separate input.

By Published Updated

The Cooking clusterhas two moving parts: ingredient density (which depends on the ingredient and how you measured it) and cup volume (which depends on which country’s convention you’re using). This page explains where both numbers come from.

Ingredient density data sources

Our density table covers 36 common ingredients. Sources, in order of authority for each ingredient type:

  • USDA FoodData Central — the canonical authoritative source for flour, sugar, salt, oil, water, and most pantry staples. We use the unprocessed-form density (e.g., AP flour rather than self-rising).
  • King Arthur Baking — the practical reference for baking ingredients (cocoa powder, baking soda, yeast, leavening agents). Their numbers come from extensive in-house testing.
  • BBC Good Food — the cross-check for UK- conventional ingredients (golden syrup, treacle, double cream) where US sources are inconsistent or absent.

Where sources disagree (which happens for compressible ingredients like flour), we use the median of the available figures. The disagreement is itself meaningful — it’s the reason every serious cookbook now publishes in grams.

The cup volume question

Even after you fix the ingredient, “cup” means different volumes depending on the recipe’s country of origin:

  • US customary cup: 236.59 ml (8 US fluid oz)
  • US legal cup (on most US measuring cups): 240 ml
  • UK metric cup: 250 ml
  • UK imperial cup (rare, historical): 284 ml
  • Australian cup: 250 ml
  • Japanese cup: 200 ml

Our converter defaults to the US customary cup because that’s the dominant convention in recipes searched in English. The cup-type dropdown lets you override; see our US vs UK cup comparison for the full breakdown.

The packing problem

Dry ingredients vary in density depending on how the user scooped them. Flour can pack 25% denser than its un-tapped, unsifted state. Brown sugar is often measured “packed” (compressed firmly into the cup) rather than spooned. Powdered sugar is often sifted before measuring.

Our density values assume the “spoon and level” method — gently spoon the ingredient into the measuring cup without compacting, then level the top with a straight edge. This is the convention King Arthur Baking documents and most modern US cookbooks follow.

Output accuracy: within ±5% for the typical ingredient and measurement method, which is well inside the tolerance most recipes can absorb. For precision baking (souffles, perfect sourdough hydration), measure on a scale — our converter is a starting point, not a substitute.

Algorithm details: the four-step conversion

Every cup-to-grams conversion runs through the same deterministic pipeline; the regional cup, the ingredient density, and the requested target unit are the three independent inputs.

  1. Resolve cup volume to millilitres. Look up the user-selected cup type in the regional cup table (US customary 236.588 mL, US legal 240 mL, UK metric 250 mL, Australian 250 mL, Japanese 200 mL, UK imperial 284.131 mL).
  2. Resolve ingredient density. Look up the ingredient slug in the 36-entry density table (g/mL). For ingredients with multiple published values (flour, cocoa, oats) we store the median across USDA + King Arthur + BBC Good Food.
  3. Compute mass. mass_g = volume_mL × density_g_per_mL × cup_count. All arithmetic in IEEE-754 doubles; the relative error of the floating-point step is < 10⁻¹⁵, well below the ±5% density uncertainty.
  4. Convert to the target unit. Grams → ounces uses the international avoirdupois ounce (28.3495 g); grams → pounds uses 453.592 g. Both factors are exact by definition under NIST SP 811.

Oven-temperature conversion is independent of the density path and uses °C = (°F − 32) × 5/9 as the canonical formula. Gas Mark uses the lookup table below with linear interpolation between marks for non-standard inputs.

Sources & references

Density values are reconciled across USDA FoodData Central, the King Arthur Ingredient Weight Chart, and the BBC Good Food cooks’ reference. Where the sources diverge we use the median and surface the spread in our recipe density data study. Cup-volume definitions follow NIST Handbook 44 (US legal cup) and national metrology bureau publications for UK/AU/JP equivalents. See the Sources & references block at the foot of this page for full citations.

Assumptions & limitations

  • Spoon-and-level packing only. Dip-and-sweep packs flour ~15-25% denser. If your recipe assumes dip-and-sweep (Joy of Cooking, ATK), our gram outputs for flour and cocoa will under-state by that margin.
  • Room-temperature ingredients.Cold butter, refrigerated milk, and frozen berries all have slightly higher densities than the room-temperature values we store. The error is <2% for liquids, <5% for cold solids.
  • No humidity or altitude adjustment. Flour absorbs 1-3% moisture in humid kitchens, which inflates the volume per gram. The density table is calibrated to ~40% relative humidity at sea level.
  • Brand variance within an ingredient. European-milled flours are typically 5-10% denser than US AP flour. Almond flour density varies 20% between coarse and superfine grinds.
  • No sifted vs unsifted distinction. The stored density assumes unsifted. Sifted weighs ~10% less per cup.
  • Liquid measures assume 20 °C. Hot stock measured by volume is ~3% lower in mass than the same volume cold (ISO 4787 reference temperature).

Oven temperature math

See the broader units methodology for the Celsius ↔ Fahrenheit conversion. Gas Mark uses the canonical British table (Mark 1 = 275°F = 135°C, then 25°F per mark up to Mark 9 = 475°F). For non-standard temperatures, the calculator interpolates linearly between the two adjacent Gas Mark steps.

Frequently asked questions

How does Convertitive convert cups to grams?
The four-step pipeline: (1) select the regional cup volume (US legal 240 mL, US customary 236.588 mL, Metric 250 mL, Imperial 284.131 mL, Japanese 200 mL); (2) multiply by the fractional cup quantity to get millilitres; (3) look up the ingredient's density in g/mL from the USDA FDC, King Arthur Flour, or BBC Good Food density tables; (4) multiply volume × density to get grams. The formula is mass = cups × cup_volume_mL × density_g_per_mL.
Where does the ingredient density data come from?
Primary sources in priority order: USDA FoodData Central (FDC) density values derived from weight-per-volume entries; King Arthur Flour's published baking weights for flour and grain products; BBC Good Food reference weights for produce. All three sources use room-temperature measurements (~20 °C). Sifted vs. packed flour densities differ by ~15–25%; we use the scooped (packed) convention by default.
What is the US legal cup volume, and why does it differ from the customary cup?
The US legal cup (240 mL exactly) is defined by the FDA for nutrition labelling (21 CFR §101.9). The US customary cup (236.588 mL = ½ US liquid pint = 8 US fluid ounces) is the older cooking convention. The 3.4 mL difference is ~1.4% — negligible for most recipes but visible in large batch calculations. Convertitive defaults to the US customary 236.588 mL for cooking conversions and labels both options clearly.
What are the assumptions and limitations of cooking conversions?
Four main caveats: (1) density varies by brand and preparation method — freshly sifted all-purpose flour is ~100–120 g/cup vs. scooped 125–130 g/cup; (2) temperature matters for liquids — honey at 20 °C is ~1.42 g/mL vs. ~1.40 g/mL warm; (3) the packing problem for dry ingredients is irreducible without a kitchen scale; (4) ISO 4787 volumetric glassware calibration is at 20 °C — deviations at cooking temperatures can reach ±0.5 mL.
How does the oven temperature converter work, and what formula does it use?
The Fahrenheit ↔ Celsius conversion is the exact formula °F = °C × 9/5 + 32 (derived from the two fixed points: 0 °C = 32 °F and 100 °C = 212 °F). Gas mark is a UK convention where Gas 1 ≈ 275 °F (135 °C) and each mark increments by approximately 25 °F, though the mapping is a lookup table (not a linear formula) because the original Regulo scale was defined empirically.

Sources & references

Authoritative references cited by this piece. Verified by Buğra Sözeri on the dates shown and re-checked at every deploy.

Related

Published May 15, 2026 · Last reviewed May 31, 2026