units.kitchen
convert recipes between cups and grams using how dense each ingredient is
Converting recipes between volumes, like cups, and weights, like grams. To convert you need the ingredient’s density, since a cup of flour weighs much less than a cup of honey. Multiply a volume by the ingredient’s density to get grams, or divide grams by it to get cups.
good to know
Section titled “good to know”Baking densities assume the ingredient is spooned in and leveled, not packed.
Tags: conversion
densitythe typical density of an ingredient in g/mL, so a volume times it gives a mass
Functions
Section titled “Functions”density
Section titled “density”density(ingredient: str) -> quantity
the typical density of an ingredient in g/mL, so a volume times it gives a mass
1density("honey")1.42 g/mL22 tbsp * density("butter") to g28.3906 gExample outputCtrl+Enter to run
More examples
Section titled “More examples”kitchen
Section titled “kitchen”1# a cup of flour21 cup * density("flour") to g125.392 g3# 250 g of sugar in cups4250 g / density("sugar") to cup1.24316 cup5# a stick of butter60.5 cup * density("butter") to g113.562 gExample outputCtrl+Enter to run
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.