Cooking amount to grams

Calculate cooking amount to grams using the values and assumptions you provide.

Calculate cooking amount to grams using the values and assumptions you provide.

Both dots and commas are accepted as decimal separators.

Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.

Method and assumptions

Method version 1.0.0 · Updated

Calculate

Formula: Mass(g) = amount × grams per unit

Calculate cooking amount to grams using the values and assumptions you provide.

amount
Amount
gramsPerUnit
Grams per unit (chosen density)

Results depend on the assumptions entered; verify professional or safety-critical decisions independently.

Calculate with code

These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.

JavaScript
const cups = 2, gramsPerCup = 120; // example flour density
console.log(cups * gramsPerCup); // 240 g; ingredient density matters
TypeScript
const cups = 2, gramsPerCup = 120;
const grams: number = cups * gramsPerCup;
console.log(grams); // 240 g for this ingredient
Python
cups, grams_per_cup = 2, 120  # ingredient-specific
print(cups * grams_per_cup)  # 240 g
Java
System.out.println(2 * 120); // 240 g (example ingredient density)
C#
Console.WriteLine(2m * 120m); // 240 g; density depends on ingredient