The numbers
1 cup ≈ 340 g, 3/4 cup ≈ 255 g, 2/3 cup ≈ 227 g, 1/2 cup ≈ 170 g, 1/3 cup ≈ 113 g, 1/4 cup ≈ 85 g.
Why it varies
Dense and sticky: a cup is 40 per cent heavier than a cup of water.
The reliable way
If the recipe gives grams, use grams. If it only gives cups, spoon the ingredient into the cup and level it rather than scooping from the bag — that alone removes most of the difference.