A gram conversion calculator for cooking converts between grams and other cooking units—cups, tablespoons, teaspoons, ounces, and milliliters—for a specific ingredient. You enter the ingredient, the amount, and the unit you have, and it returns the equivalent weight in grams (or the reverse). Because every ingredient has a different density, the calculator must know what you are measuring (flour vs. sugar vs. butter) to give a correct result.
Formula
The core relationship is: grams = volume × density, where density is the ingredient’s mass per unit volume. In this calculator, the selected unit is converted to cups first (since the density values are stored as grams per cup), then multiplied by the ingredient’s density.
Symbolically: g = V × ρ, where V is volume in cups and ρ is the density in grams per cup. For example, all-purpose flour has a density of about 120 g per cup, so 1 cup of flour weighs 120 g. Water has a density of 236.588 g per cup (which is exactly 1 g/mL).
Conversions used: 1 cup = 16 tablespoons = 48 teaspoons = 8 fluid ounces = 236.588 mL. 1 ounce (weight) = 28.3495 grams.
Worked Example
Using the default values: 1 cup of all-purpose flour.
- Start with amount = 1, unit = cup (factor 1), ingredient = all-purpose flour (density 120 g/cup).
- Convert to cups: 1 × 1 = 1 cup.
- Multiply by density: 1 × 120 = 120 g.
- Ounces: 120 / 28.3495 ≈ 4.23 oz.
- Cups: 120 / 120 = 1 cup (round-trip check).
The calculator shows 120 g for 1 cup of flour. This matches the widely used conversion for all-purpose flour.
Why Density Matters
The most common mistake in cooking conversions is treating all ingredients as if they have the same density. A cup of flour weighs about 120 g, but a cup of granulated sugar weighs 200 g, and a cup of honey weighs 340 g. If you use a generic “1 cup = 240 g” rule for flour, you will add nearly double the intended amount. This is why a good gram conversion calculator asks for the ingredient—it applies the correct density.
Density also changes with how you fill the cup. Flour can be scooped (packed) or spooned (lightly). The values in this calculator assume the standard “spoon into cup and level” method for dry ingredients, which is what most recipe authors mean. For liquids, density is more consistent, but temperature can slightly alter it (e.g., hot water is less dense than cold water, but the difference is negligible for cooking).
How to Choose a Conversion Calculator
When picking a gram conversion calculator (or using this one), consider:
- Ingredient coverage: Does it include the ingredient you need? Common ones like flour, sugar, butter, and liquids are usually covered, but specialty items (e.g., almond meal, cocoa powder) may require manual density lookup.
- Unit options: Does it handle both volume (cups, tbsp, tsp) and weight (oz, lb)? Some recipes give weights in ounces, so you need oz-to-gram conversion.
- Precision: For baking, you want at least 1-gram precision. For cooking, 5-gram precision is usually fine.
- Adjustability: Can you enter a custom density? If you have a specific brand or a packed cup, you may need to adjust.
If you are using a recipe from another country, note that a “cup” can vary: US cup = 236.588 mL, metric cup = 250 mL, and imperial cup = 284 mL. This calculator uses the US cup, which is the standard in most English-language recipes.
Common Mistakes and Misconceptions
One misconception is that 1 mL equals 1 g for everything. That is only true for water (and liquids with similar density like milk). For oil, 1 mL weighs about 0.92 g; for honey, about 1.4 g. Using the water conversion for all liquids will throw off your recipe.
Another mistake is confusing weight ounces (oz) with fluid ounces (fl oz). A fluid ounce is a volume unit (1 fl oz = 29.5735 mL), while an ounce is a weight unit (1 oz = 28.3495 g). For water, they happen to be close, but for flour, 1 fluid ounce of flour weighs about 0.5 oz by weight. Always check which “oz” your recipe means.
Also, beware of “packed” brown sugar. A packed cup of brown sugar weighs about 220 g, while an unpacked cup weighs around 180 g. The calculator uses the unpacked value (180 g) unless you adjust. If a recipe says “packed,” you should add about 20% more.
Why Use Grams in Cooking?
Grams are the standard unit in most of the world and in professional baking. They offer several advantages:
- Accuracy: Weighing is more precise than measuring by volume. A cup of flour can vary by 20-30 g depending on how you scoop it, but 120 g is always 120 g.
- Consistency: Recipes that use grams produce the same result every time, which is critical for yeast breads, pastries, and macarons.
- Easier scaling: Multiplying a recipe by 1.5 or 2 is simple with grams; with cups, you end up with awkward fractions like 2/3 cup.
- International compatibility: Most digital scales and recipes worldwide use grams, making it easier to follow recipes from other countries.
If you are new to weighing, a digital kitchen scale is inexpensive and pays off quickly in better baking results.
Alternatives to a Calculator
If you don’t have access to this calculator, there are other ways to convert:
- Use a kitchen scale: The most reliable method—just weigh the ingredient. No conversion needed.
- Reference charts: Many cookbooks have a chart of common ingredient densities. Look up the ingredient and multiply by the volume.
- Memory: Memorize the densities of the most common ingredients: flour 120 g/cup, sugar 200 g/cup, butter 227 g/cup (or 113 g per stick), water 236.6 g/cup.
- Online search: Search “grams in a cup of [ingredient]” to get a quick answer, but be aware that sources may vary slightly.
For exact conversions, a calculator like this one is faster than searching and more accurate than memory.
Frequently Asked Questions
How many grams are in a cup of flour?
All-purpose flour weighs about 120 grams per US cup when spooned and leveled. Whole wheat flour is slightly heavier at about 130 g/cup, and bread flour is around 127 g/cup. Always check your recipe’s source, as some authors use 125 g or 130 g for all-purpose.
Is 1 gram equal to 1 milliliter?
Only for water at 4°C. For other substances, the relationship depends on density. For example, 1 mL of olive oil weighs about 0.92 g, while 1 mL of honey weighs about 1.4 g. To convert, you need the density of the specific ingredient.
How do I convert ounces to grams?
Multiply the number of ounces by 28.3495. For example, 4 oz × 28.3495 = 113.4 g. For fluid ounces (volume), you must first know the ingredient’s density, because 1 fl oz of water weighs about 29.57 g, but 1 fl oz of flour weighs about 15 g.
Why do some recipes use grams instead of cups?
Grams are more accurate and consistent. Volume measurements can vary with how you scoop, pack, or sift, leading to inconsistent results. Weighing eliminates that variability, which is why professional bakers and many international recipes use grams.
How many grams are in a tablespoon of butter?
One tablespoon of butter weighs about 14.2 grams. Since a stick of butter is 113.4 g (1/2 cup), each tablespoon is 1/8 of a stick, which is 14.175 g. In practice, recipes often round to 14 g or 15 g.
Can I use this calculator for all ingredients?
This calculator includes a set of common ingredients, but not every possible food. For an ingredient not listed, you need its density in grams per cup. You can often find this on the package or via a quick search. Then you can adjust the calculator by choosing a similar ingredient or doing the math manually.
Assumptions and Limitations
This calculator assumes standard US cup measurements and typical ingredient densities as commonly used in cooking. For dry ingredients, it assumes the “spoon into cup and level” method, not packing. For liquids, it assumes room temperature (about 20°C). Actual densities can vary by brand, humidity, and how you measure, so treat results as close approximations. For critical recipes, always weigh your ingredients for the most reliable outcome.
Related
Formula used
in amt | Amount | - | 1 | 0 sel unit | Unit to convert from | Cup=1, Tablespoon=0.0625, Teaspoon=0.0208333, Fluid ounce=0.125, Milliliter=0.00422675, Gram=0.00422675 sel ing | Ingredient | All-purpose flour=120, Granulated sugar=200, Butter=227, Water=236.588, Milk=240, Olive oil=216, Honey=340, Salt (table)=292, Rice (uncooked)=185, Rolled oats=80 out g | Grams | g | amt * unit * ing | 1 out oz | Ounces | oz | g / 28.3495 | 2 out cups | Cups | cups | g / ing | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- ug to ppb Calculator: Convert Micrograms per Liter1.00 ppb
- Grams to Moles Chemistry: How to Convert0.2000 mol/L
- Convert ug/l to ppb Calculator
- CPP Calculator Ontario: How CPP Is Calculated162.12 $/month
- Grams to Moles to Molecules: How to Convert0.2000 mol/L
- Organic Chemistry Reaction Calculator: How It Works