Skip to main content
Preparing workspace

Molar Mass Calculator (with % Composition)

Molar mass in g/mol for any formula, including brackets and hydrates like CuSO4·5H2O. Mass percent by element and grams ↔ moles, with CIAAW weights.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Molar Mass Calculator (with % Composition)

Molar mass in g/mol for any formula, including brackets and hydrates such as CuSO4·5H2O, with mass percent by element and grams ↔ moles.

Molar mass is the mass of one mole of a substance in g/mol: M = Σ (atoms × standard atomic weight). This calculator applies it to any formula, including brackets, hydrates and ions, using the CIAAW abridged atomic weights, and shows each element's mass percent and a grams ↔ moles conversion. Water is 2 × 1.008 + 15.999 = 18.015 g/mol.

How to use Molar Mass Calculator (with % Composition)

  1. 1

    Type the formula with capital letters where the symbols need them, for example Ca(OH)2, K4[Fe(CN)6] or CuSO4·5H2O.

  2. 2

    Read the molar mass in g/mol and the Hill formula, then check the table for each element's atoms, atomic weight, mass and mass percent.

  3. 3

    To convert, choose whether you know the mass in grams or the amount in moles and enter the number.

  4. 4

    Copy the result to paste the molar mass and the composition into your notes.

Why use Molar Mass Calculator (with % Composition)

  • Reads real formulas

    Brackets and nested groups such as K4[Fe(CN)6], hydrates written with ·, . or *, decimal hydrate counts like CaSO4·0.5H2O, and charges such as SO4^2- or Fe3+.

  • Standard atomic weights, stated

    Values are the CIAAW abridged standard atomic weights (five significant figures). Elements with no standard atomic weight, such as technetium, use the mass number of the longest-lived isotope and are flagged.

  • Clear errors instead of wrong answers

    A lowercase symbol, an unknown element, an unclosed bracket or a stray character is named with its position, so h2o is caught rather than silently misread.

  • Private

    The formula is parsed and summed in your browser. Nothing is uploaded or stored.

Common use cases

  • Finding the molar mass of a compound for a stoichiometry or limiting-reagent homework problem, with the working shown element by element
  • Getting the mass percent of each element, such as the 40.00 % carbon in glucose (C6H12O6), for a percent-composition question
  • Converting a weighed mass into moles before you make up a solution, then taking the molar mass to a molarity or dilution calculation
  • Checking a hydrate: CuSO4·5H2O weighs 249.68 g/mol, of which 90.08 g/mol is the five waters

Frequently asked questions

What is the molar mass of water (H2O)?

The molar mass of water is 18.015 g/mol. It is two hydrogen atoms at 1.008 plus one oxygen atom at 15.999: 2.016 + 15.999 = 18.015 g/mol. Oxygen makes up 88.81 % of that mass.

How do you calculate molar mass?

Multiply each element's atomic weight by the number of its atoms in the formula and add the results. For calcium hydroxide, Ca(OH)2, the bracket doubles O and H: 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092 g/mol.

How do I convert grams to moles?

Divide the mass by the molar mass: n = m ÷ M. Ten grams of water is 10 ÷ 18.015 = 0.5551 mol. To go the other way, multiply moles by the molar mass, and multiply moles by 6.02214076 × 10²³ to count the molecules or formula units.

How do you find the percent composition of a compound?

Divide each element's share of the molar mass by the whole molar mass and multiply by 100. In glucose, C6H12O6 (180.156 g/mol), carbon contributes 6 × 12.011 = 72.066 g/mol, so it is 40.00 % carbon by mass.

What is the molar mass of CuSO4·5H2O?

Copper(II) sulfate pentahydrate is 249.68 g/mol: CuSO4 is 159.60 g/mol and the five waters add 5 × 18.015 = 90.08 g/mol. Type it with a middle dot, a full stop or an asterisk; all three are read as the hydrate dot.

Why is my textbook's molar mass slightly different?

Older books use older atomic weights, for example 32.065 for sulfur or 35.453 for chlorine, where the current CIAAW abridged values are 32.06 and 35.45. The difference is usually in the second decimal place or beyond.

Does the molar mass of an ion include the electrons?

No, and the difference is too small to matter: an electron weighs about 0.000549 g/mol, far below the precision of the atomic weights. The calculator reads the charge (SO4^2-, Fe3+) and reports the mass of the atoms.

Embed this tool on your site

Add the Molar Mass Calculator (with % Composition) widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.

<iframe src="https://www.altftool.com/embed/widget/molar-mass-calculator"
  title="Molar Mass Calculator (with % Composition) — free AltFTool widget"
  width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/molar-mass-calculator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>

Browse all embeddable widgets →