Free Chemistry Tool

Molar Mass Calculator for any chemical formula

Type a formula — from O₂ to CuSO₄·5H₂O — and get the exact molar mass, elemental breakdown, and percent composition in real time. No sign-up, no guesswork.

118Elements supported
<10msCalculation time
100%Client-side, private

More Maths Calculators

Calculator

Enter a chemical formula

Supports parentheses, hydrates (use a dot, e.g. CuSO4.5H2O) and multi-digit subscripts.

Use standard notation: element symbols with capital first letter, numeric subscripts, and parentheses for groups.


Formula
0.000
g/mol
0
Total atoms
0
Distinct elements
0
g per kmol (kg/kmol)
0
lb/mol (approx.)

Percent composition

ElementSymbolCountAtomic massTotal mass% Composition

Molar concentration (molarity) calculator

Use the calculated molar mass to find molarity from a mass and volume.

Enter mass and volume to see molarity.
Why this tool

Built for accuracy, speed and clarity

Every feature is designed to make molecular weight calculations fast, transparent and mistake-proof.

Full periodic table

All 118 elements with precise IUPAC atomic masses baked in — no external lookups required.

Nested parentheses

Correctly parses groups like Al₂(SO₄)₃ and complex hydrates such as CuSO₄·5H₂O.

Instant, live results

Calculations run entirely in your browser in under 10 milliseconds — nothing is sent to a server.

Percent composition

See exactly how much each element contributes to total mass, with a visual breakdown bar.

Molarity calculator

Feed in a solute mass and solution volume to get molar concentration without leaving the page.

Real-time validation

Instant feedback on malformed formulas, unknown symbols, or unbalanced brackets as you type.

Export & share

Copy results to your clipboard or download a plain-text report for lab notebooks and reports.

Dark & light themes

Switch between a low-glare dark theme and a bright light theme — your choice is remembered.

Process

How the molar mass calculator works

1

Type your formula

Enter the chemical formula exactly as written, e.g. C6H12O6 or Ca(OH)2.

2

Parser reads the structure

The engine tokenizes elements, subscripts, parentheses and hydrate dots into a structured atom count.

3

Atomic masses are summed

Each atom's IUPAC standard atomic weight is multiplied by its count and totalled instantly.

4

Results render below

Molar mass, percent composition and molarity tools appear — ready to copy or download.

Guide

Understanding molar mass, molecular weight and molar concentration

Every chemistry student eventually runs into the same wall: a formula on a worksheet and no easy way to check whether the arithmetic behind it is right. A molar mass calculator solves that problem by turning a written formula into a precise number of grams per mole, instantly and without a periodic table chart pinned to the wall. That number — the molar mass — is simply the mass of one mole of a substance, and it is the bridge between the microscopic world of atoms and the macroscopic world of grams sitting on a lab balance.

What is molar mass?

Molar mass is the mass, in grams, of 6.022 × 10²³ particles (Avogadro's number) of a given substance. It is often used interchangeably with "molecular weight," although chemists sometimes reserve the latter term for the dimensionless ratio and the former for the value expressed in g/mol. In practice, both describe the same underlying calculation: add up the atomic mass of every atom present in a formula, accounting for how many times each one appears.

The molar mass of oxygen, and other common building blocks

Oxygen is one of the most frequently looked-up entries in any chemistry reference, and for good reason — it appears in water, carbon dioxide, glucose, and thousands of other compounds. A single oxygen atom has an atomic mass of roughly 16.00 g/mol, but molecular oxygen as it exists in air, O₂, has a molar mass close to 32.00 g/mol because two atoms are bonded together. This distinction between atomic mass and molecular mass trips up a lot of newcomers, and it is exactly the kind of detail this tool handles automatically.

How to find molar mass step by step

Finding molar mass by hand follows a repeatable pattern. First, identify every distinct element in the formula. Second, note how many atoms of each element are present, paying close attention to subscripts and to numbers that apply to an entire group in parentheses. Third, multiply each element's standard atomic weight by its atom count. Finally, add all of those products together to get the total molar mass in grams per mole. For a compound like calcium hydroxide, Ca(OH)₂, that means multiplying the combined mass of one oxygen and one hydrogen by two, then adding the mass of a single calcium atom.

Molecular weight calculator vs. manual calculation

A molecular weight calculator does exactly what was just described, only faster and with no risk of a misread digit or a forgotten parenthesis. This matters most for longer formulas — hydrates such as copper sulfate pentahydrate, coordination compounds, or organic molecules with dozens of atoms — where a single arithmetic slip changes the final answer. Using an automated tool also frees up mental energy for the actual chemistry: understanding why a reaction proceeds the way it does, rather than re-checking long division.

From molar mass to molarity: the molar concentration calculator

Molar mass is also the starting point for one of the most common calculations in a wet lab: molarity, or molar concentration. Once the molar mass of a solute is known, dividing a measured mass by that value gives the number of moles present. Dividing moles by the volume of solution, expressed in liters, then gives molarity in mol/L. A calculator molarity workflow like the one built into this page removes an entire step from that process, letting a student or technician move directly from formula to concentration without switching tools or reaching for a separate reference.

Worked examples of common molar masses

Seeing a few familiar compounds side by side helps build intuition for what "reasonable" molar mass values look like, and makes it easier to spot an error if a calculated result seems far too high or low.

FormulaNameMolar mass (g/mol)
H₂OWater18.015
CO₂Carbon dioxide44.009
NaClSodium chloride (table salt)58.44
C₆H₁₂O₆Glucose180.156
CaCO₃Calcium carbonate100.087
H₂SO₄Sulfuric acid98.079
NH₃Ammonia17.031

Everyday usage of molar mass calculations

Beyond the classroom, molar mass underpins dosing in pharmacology, stoichiometric planning in industrial chemistry, recipe scaling in food science, and quality control in materials manufacturing. Anywhere a recipe calls for a specific number of moles rather than a specific number of grams, molar mass is the conversion factor that makes the instruction usable on a lab bench. Understanding it well — and having a fast, reliable tool to check it — is one of the most transferable skills a chemistry student can build.

FAQ

Frequently asked questions

Add up the atomic masses of every atom in the chemical formula, multiplying each element's atomic mass by the number of times it appears. The sum, expressed in grams per mole (g/mol), is the molar mass. This calculator automates that process for any formula you type in.

Multiply the atomic mass inside the parentheses by the subscript that follows them, then add the mass of any atoms outside the parentheses. For Ca(OH)₂, that means calcium plus two times the combined mass of one oxygen and one hydrogen atom.

Divide the mass of solute in grams by its molar mass to get the number of moles, then divide the moles by the solution's volume in liters. The result is molar concentration, expressed in mol/L. Try it in the molarity box after calculating a formula above.

Explore more free science calculators

From chemistry to physics, SEOWebChecker's calculator suite helps students and professionals get accurate answers fast.