to convert a gram measurement to a cup measurement, divide the weight by 236.588236 times the density of the ingredient or material. thus, the weight in cups is equal to the grams divided by 236.588236 times the density of the ingredient or material.