# Online Calculator – Grams to Moles and Moles to Grams

For chemistry you often need to convert moles to grams and grams to moles.
There is a simple relation between these two:

,
where
– mass of the substance in grams
– quantity of the substance in moles
– molar mass of the substance in grams/mole

And the most difficult task here is finding out the molar mass of the substance.

The molar mass is a physical property defined as the mass of a given substance (chemical element or chemical compound) divided by the amount of substance. The molar mass of atoms of an element is given by the standard relative atomic mass of the element multiplied by the molar mass constant, 1 × 10−3 kg/mol = 1 g/mol. The molar mass of a compound is given by the sum of the standard atomic weight (namely, the standard relative atomic mass) of the atoms which form the compound multiplied by the molar mass constant. Multiplying by the molar mass constant ensures that the calculation is dimensionally correct: standard relative atomic masses are dimensionless quantities (i.e., pure numbers) whereas molar masses have units (in this case, grams/mole).

Happily, we already have the Molar mass of the substance calculator, which calculates molar mass for given substance using Periodic table handbook. It is used in the calculator below to parse chemical compound formula and obtain molar mass.

The calculator below calculates mass of the substance in grams or quantity of the substance in moles depending on user’s input. It also displays molar mass of the chemical compound and details of its calculation just for reference.

Note: Always use the upper case for the first character in the element name and the lower case for the second character as in periodic table. Compare: Co – cobalt and CO – carbon monoxide. Thus, Na3PO4 — correct notation, na3po4/NA3PO4 — incorrect notation.

## 2 Replies to “Online Calculator – Grams to Moles and Moles to Grams”

1. neumalgegeab1978 says:

Super strong video dude

2. Lauraine Allissa says:

Thank you for the good writeup. It actually was a amusement account it. Look complex to far delivered agreeable from you! By the way, how could we keep in touch?