Convert cups to grams for a named ingredient
convert_ingredientConverts a kitchen amount between volume and weight for a specific ingredient, using measured grams-per-cup values (USDA FoodData Central portion weights with FDC ids, and the King Arthur Baking ingredient weight chart) instead of guessed densities. 271 ingredients. Units: US cup (236.5882365 mL), metric cup (250 mL), imperial cup, US legal cup (240 mL), Japanese cup, US/metric/Australian tablespoons, teaspoons, US and imperial fl oz, pints, quarts, gallons, mL, dL, L, g, mg, kg, oz, lb and sticks of butter. Volume to volume and weight to weight need no ingredient. States which cup definition it used and cites the density source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Quantity to convert, e.g. 1.5. Use decimals for fractions (3/4 = 0.75). | |
| to_unit | Yes | Unit to convert to, e.g. g, oz, cup, ml. | |
| from_unit | Yes | Unit to convert from, e.g. cup, us_cup, metric_cup, tbsp, tsp, fl oz, ml, l, g, oz, lb, stick. | |
| cup_system | No | Which cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win. | |
| ingredient | No | Ingredient name, e.g. "all-purpose flour", "brown sugar", "honey". Required when converting between volume and weight. |