Skip to content

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.

Baking densities assume the ingredient is spooned in and leveled, not packed.

Tags: conversion

  • density the typical density of an ingredient in g/mL, so a volume times it gives a mass
density(ingredient: str) -> quantity

the typical density of an ingredient in g/mL, so a volume times it gives a mass

1
density("honey")1.42 g/mL
2
2 tbsp * density("butter") to g28.3906 g
Example outputCtrl+Enter to run
1
# a cup of flour
2
1 cup * density("flour") to g125.392 g
3
# 250 g of sugar in cups
4
250 g / density("sugar") to cup1.24316 cup
5
# a stick of butter
6
0.5 cup * density("butter") to g113.562 g
Example outputCtrl+Enter to run

Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.