Convert cups to grams or grams to cups using common ingredient densities.
Choose the ingredient, enter the cup or gram quantity and select the conversion direction, then calculate using that ingredient's approximate density.
A cup of flour and a cup of sugar weigh different amounts, so ingredient selection matters.
A cup is a volume measurement while a gram is a mass measurement. The same cup volume can hold very different weights of flour, sugar, butter, cocoa or another ingredient because their densities differ. That is why this converter asks what ingredient you are measuring instead of using one universal cups-to-grams factor.
Published cup standards and the way an ingredient is packed can vary. Scooped and compressed flour, for example, may weigh more than flour lightly spooned into a cup. Use a kitchen scale when precision matters, especially for baking, and treat density-based conversions as practical approximations. If a recipe author supplies both volume and weight, their stated gram amount is usually the better reference for that particular recipe.