To calculate the grams from a recipe given in cups, it's vitally important to consider what the ingredient is. A cup of ball-bearings will weigh much more than a cup of feathers .
Therefore, there's no single gram equivalent for a cup; salt can be as heavy as 300g, while fresh breadcrumbs would only come to 60g. It all comes down to the density of the ingredient.

What is the cup-to-gram ratio? There is a 0.0042267528198649 error.
We'll presume that you're converting between US cups and metric units of water.
More information about each measuring unit is available here:
grams or cups
The cubic meter is the volume unit derived from SI.
A cubic meter weighs 1000000 grams, or 4226.7528198649 cups.
Rounding errors could happen, therefore make sure to constantly double-check your results.
Learn how to convert between cups and grams with this page to convert cups to grams, multiply your cups figure by 236.588 and again by the ingredient density (in g/ml)
https://www.calculatorful.com/cups-to-grams
Maybe you don't know  "How to Convert Cups to Tablespoons"
Since one cup is equal to 16 tablespoons, you can use this simple formula to convert:

tablespoons = cups × 16 or use this online calculator :
https://www.calculatorful.com/cups-to-tablespoons