How much a US cup, tablespoon and teaspoon of 45 common baking and cooking ingredients weighs, from the USDA's FoodData Central database, in one CSV. A cup of flour and a cup of sugar weigh very different amounts, so converting recipes between volume and weight needs a figure per ingredient.
Converter and charts for every ingredient: CookRuler
data/ingredient-weights.csv, one row per ingredient and way of measuring it:
| Column | Meaning |
|---|---|
ingredient |
Ingredient name |
measured_as |
How it's measured when that changes the weight (for example "packed", "sifted"); empty for the usual way |
category |
Flours and starches, sugars, fats and oils, and so on |
grams_per_cup |
Grams in one US customary cup (236.6 ml), from USDA |
grams_per_tbsp |
Grams per tablespoon (1/16 cup) |
grams_per_tsp |
Grams per teaspoon (1/48 cup) |
ounces_per_cup |
Ounces (weight) per cup |
usda_fdc_id |
USDA FoodData Central record ID (look it up at https://fdc.nal.usda.gov/food-details/<id>/nutrients) |
usda_description |
The USDA record's name |
usda_portion |
The household measure the weight comes from, as USDA lists it |
cookruler_url |
Converter and chart for that ingredient |
Spoon amounts are scaled from the cup weight with 1 cup = 16 tablespoons = 48 teaspoons. Real cups vary with how you fill them (spooned and leveled vs scooped), so treat the figures as typical values.
Data: U.S. Department of Agriculture, FoodData Central (SR Legacy). USDA data is in the public domain. This compilation is released under CC BY 4.0.
Please cite: CookRuler, "Cups to grams", https://cookruler.com/cups-to-grams/ (USDA FoodData Central data).