Compound and Formula Calculators

Calculate molar mass, convert grams to moles, find mass percent and work out empirical formulas. Each calculator shows the formula and worked steps.

Choose the calculation you need

Molar Mass Calculator

Calculate molar mass from a chemical formula using standard atomic weights.

M=∑(natoms×Ar)M = \sum \left(n_{\text{atoms}} \times A_r\right)

Open calculator

Empirical Formula Calculator

Find the smallest whole-number atom ratio from elemental masses or percentages.

ratio=m/Matomicnsmallest\text{ratio} = \dfrac{m / M_{\text{atomic}}}{n_{\text{smallest}}}

Open calculator

Mass Percent Calculator

Calculate the mass percentage of a component in a mixture or compound.

mass %=mcomponentmtotal×100\text{mass}\ \% = \dfrac{m_{\text{component}}}{m_{\text{total}}} \times 100

Open calculator

Choosing the right compound and formula calculators

Compound calculators translate a chemical formula into measurable quantities. They cover molar mass, grams-to-moles conversion, mass percent, and empirical formulas, which are the calculations most often used at the start of a stoichiometry problem.

Enter formulas with correct element capitalisation and include subscripts, brackets, and hydrate dots where they appear. The molar mass calculator parses the formula and reports each element contribution; the grams-to-moles calculator then divides mass by that molar mass. Mass percent compares one component with the whole sample, while the empirical formula tool reduces elemental amounts to the simplest whole-number ratio.

Atomic weights are average values, so small differences can appear between references and rounding conventions. A formula identity matters: Co is cobalt, while CO is carbon monoxide. Check whether a substance is anhydrous or hydrated before using its molar mass in later calculations.

Questions about compound and formula calculators

Is molar mass the same as molecular weight?

They are numerically similar, but molar mass is expressed in grams per mole while relative molecular mass is dimensionless.

How are brackets and hydrates handled?

A subscript after a bracket multiplies every atom inside it. Hydrate water written after a dot is included in the total molar mass.

Why do my grams-to-moles results differ from a textbook?

Different reference atomic weights and rounding conventions can produce small differences. Check that the formula and hydrate state match.

How calculator results are checked

Read our checking method