CalculatorForEver
MATH / CALCULATOR

Molar Mass Calculator

Calculate molar mass with worked steps, clear input conventions and a result table.

Calculate molar mass by summing each element’s atomic weight multiplied by its atom count. For H₂O, two hydrogen contributions plus one oxygen contribution give approximately 18.015 g/mol when using H = 1.008 and O = 15.999.

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the molar mass calculator works

How to use this calculator

Enter the values in the stated format. Calculate and review the method, exact distinctions and any numerical limits before using the result.

What the result means

Molar mass adds the atomic-mass contributions in a chemical formula and expresses the total in grams per mole. Each element symbol identifies an element, and a following positive integer gives its count. Parentheses multiply every atom inside the group. Enter the exact chemical form you intend to evaluate. The calculator handles the supported element symbols and grouped formula syntax; it does not infer isotope composition, charge, hydration notation or a chemical name from an incomplete formula.

The formula

Molar mass = sum of element counts × listed standard atomic masses

A worked example

H₂O uses 2 hydrogen atoms and 1 oxygen atom: approximately 18.015 g/mol.

Assumptions & methodology

Use consistent units and inspect the displayed working. Numerical results are rounded for display; unsupported or unstable inputs are rejected. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: formula mass and the mole concept · CIAAW: standard atomic weights

WORK THROUGH THE DETAILS

Using your molar mass result

Check a formula with several element contributions

For C₆H₁₂O₆, the carbon contribution is 6×12.011 = 72.066, hydrogen is 12×1.008 = 12.096 and oxygen is 6×15.999 = 95.994. Their sum is 180.156 g/mol. The contribution breakdown helps identify a missing digit or a symbol parsed differently from your intent. A molecular formula and an empirical formula can have different totals: CH₂O has one sixth of the atom counts in this example, so it has one sixth of the formula-based molar mass.

Convert mass and amount only after checking the formula

Once molar mass M is known, an amount n in moles has mass m = nM. Using the water approximation 18.015 g/mol, 0.50 mol has mass 9.0075 g. Conversely, 36.03 g corresponds to 2 mol under the same atomic-weight assumptions. Keep the formula and units alongside this conversion. A gram is a mass unit, while a mole counts an amount of specified entities; swapping them without M changes the dimension of the calculation.

Recognize table and syntax limitations

Atomic weights can differ slightly between reference tables and natural isotope compositions, so last-decimal differences are expected. Isotope-specific masses require a different model from a standard-weight formula sum. Hydrate dots, leading stoichiometric coefficients, ionic charges and square-bracket conventions are not accepted unless explicitly supported by the interface. For a hydrate, establish its full atom counts through an allowed formula before calculating; do not silently omit the water. Unknown element symbols or unbalanced parentheses should produce an input error. This result identifies neither purity nor chemical safety and does not determine the composition of a material from a trade name.

Treat a formula total as a specified-composition calculation

Two samples with the same elemental formula can differ in isotope distribution, and a commercial material may also contain solvent or impurities outside that formula. The formula sum assumes the entered atom counts and the listed average atomic masses. It does not analyze a sample. For a mixture, determine the components and their amounts before trying to convert total mass to a mole amount. A formula such as CO₂ identifies one carbon and two oxygens, giving 12.011+2×15.999 = 44.009 g/mol under this table. The subscript two multiplies oxygen only; it does not double the entire formula.

INTERPRETATION

Understanding molar mass results

Read element symbols with their capitalization

An uppercase letter begins an element symbol, and a lowercase letter can complete it. Co denotes cobalt, while CO denotes carbon followed by oxygen. Those formulas describe different compositions. Type ordinary formula characters as the input syntax requires; do not replace an element symbol with a full name or assume a parser can repair incorrect capitalization. A missing count after a valid symbol means one atom. A written count changes the composition rather than the number of moles in the sample.

Apply a parenthesis multiplier to the whole group

For Ca(OH)₂, the group OH appears twice. The atom counts are Ca:1, O:2 and H:2. Using Ca = 40.078, O = 15.999 and H = 1.008 gives 40.078+31.998+2.016 = 74.092 g/mol. Multiplying only the hydrogen by two would omit one oxygen. Nested groups follow the same counting rule when the syntax is supported: finish the inner counts before multiplying the outer group.

RELATED GUIDES

Related questions and worked examples

Read a worked explanation before trying another calculation.

QUESTIONS

Molar Mass questions

Does molar mass determine a solution’s molarity?+

Not alone. You also need the solute mass or mole amount and the final solution volume. Molarity is moles per liter.

Why might another reference show a slightly different total?+

It may use atomic weights rounded to different places or an isotope-specific composition. Compare the element values and formula before treating a small difference as an error.