Molar Mass Calculator (from a Chemical Formula)

The molar mass of a substance is the mass of one mole of it, in grams per mole, and is numerically the same as its molecular weight (formula weight) in daltons. Type a formula, including brackets, water of crystallization or a charge, and this calculator adds up the standard atomic weights, shows what each element contributes and converts a mass of the substance to moles.

Inputs

Results

Molar mass
180.156g/mol
Formula in Hill order
C₆H₁₂O₆
Atoms per formula unit
24
Amount in the sample
0.05551
Formula units in the sample
3.343e22

    RefCHM-STO-007
    MethodM = Σ nᵢ × Aᵣ(i) g/mol, with CIAAW 2021 standard atomic weights; n = m/M
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Read the formulacount the atoms of each element, multiplying through brackets and hydrate partsC₆H₁₂O₆: C 6, H 12, O 6 (24 atoms)
    2. Molar massM = Σ (atoms × standard atomic weight)6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol
    3. Moles in the samplen = m / M10 g ÷ 180.156 g/mol = 0.05551 mol
    4. Formula unitsN = n × Nᴀ0.05551 × 6.02214076 × 10²³ = 3.343e22

    Composition by element

    ElementAtomsAtomic weight (g/mol)Mass in 1 mol (g)Mass percent
    C (carbon)612.01172.06640.002 %
    H (hydrogen)121.00812.0966.7142 %
    O (oxygen)615.99995.99453.284 %

    How the formula is read

    Each element symbol starts with a capital letter and is followed by its count; a number after a closing bracket multiplies everything inside, so Ca(OH)₂ has one calcium, two oxygens and two hydrogens. A dot (· or .) joins the parts of a hydrate or adduct, and a number in front of a part multiplies that part, so CuSO₄·5H₂O carries five waters. The molar mass is then the sum of atoms × atomic weight, using the standard atomic weights published by the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW). For elements whose atomic weight varies in nature, such as hydrogen, carbon and oxygen, the CIAAW abridged values (1.008, 12.011, 15.999) are used.

    Assumptions and limits

    • CIAAW 2021 standard atomic weights with the 2024 revisions; abridged values for elements whose weight is an interval.
    • Elements with no stable isotope use the mass number of the most stable isotope and are flagged.
    • Charges are allowed but the electron mass (0.000549 g/mol per charge) is ignored.
    • The result is for the natural isotopic mixture, not for an isotopically labelled compound.

    References

    • Prohaska, T. et al. (2022), Standard atomic weights of the elements 2021 (IUPAC Technical Report), Pure and Applied Chemistry 94, 573–600.
    • IUPAC (2007), Quantities, Units and Symbols in Physical Chemistry (the Green Book), 3rd ed., RSC Publishing, section on amount of substance and molar mass.
    • Atkins, P., Jones, L. and Laverman, L., Chemical Principles: The Quest for Insight, 7th ed., W. H. Freeman, 2016, Fundamentals section on moles and molar masses.

    Questions

    What is the molar mass of glucose, C₆H₁₂O₆?
    180.156 g/mol: 6 × 12.011 + 12 × 1.008 + 6 × 15.999. Carbon is 40.00 % of the mass, so 10 g of glucose is 0.05551 mol.
    What is the molar mass of copper(II) sulfate pentahydrate, CuSO₄·5H₂O?
    249.68 g/mol, of which the five waters of crystallization are 90.075 g/mol. Enter it as CuSO4·5H2O or CuSO4.5H2O.
    How do I enter a complex ion such as potassium ferrocyanide?
    Use brackets: K4[Fe(CN)6] gives 368.35 g/mol. Square, round and curly brackets all work and can be nested.
    Is molar mass the same as molecular weight?
    Numerically yes. Molar mass is in g/mol; molecular weight (relative molecular mass) is the same number without units, or in daltons (Da) for a single molecule.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.