In a chemical equation, the symbol g represents grams. It is used to indicate the mass of a substance in grams. For example, if a chemical equation shows that 10 g of reactant A reacts with 20 g of reactant B, then this means that 10 grams of reactant A and 20 grams of reactant B are required for the reaction to take place.