The numbers
1 cup ≈ 227 g, 3/4 cup ≈ 170 g, 2/3 cup ≈ 151 g, 1/2 cup ≈ 114 g, 1/3 cup ≈ 76 g, 1/4 cup ≈ 57 g.
Why it varies
One US cup of butter is two sticks, 227 g — the number most US recipes are actually built around.
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.