Skip to content

Formula Weight Calculator

Case-sensitive symbols; ( ) and [ ] for groups; a dot or · for water of crystallisation.

Formula weight (g/mol) —
Atoms per formula unit
—
Distinct elements
—
Largest mass share
—

Formula weight is the sum of the atomic weights of every atom in one formula unit. For water, H2O, that is 2 × 1.008 + 15.999 = 18.015 g/mol. Type any formula, including brackets such as Ca(OH)2 or hydrates such as CuSO4·5H2O, and the calculator totals each element and shows its mass share.

About this tool

Students balancing stoichiometry problems, lab staff weighing out reagents and anyone converting grams to moles needs the formula weight first. This calculator reads a formula as written, expands brackets and hydrate dots, and multiplies each atom count by its IUPAC standard atomic weight. You get the total in g/mol, the number of atoms per formula unit, a table of each element's contribution and mass percentage, and the sum written out term by term so you can check it against your own working. Element symbols are case-sensitive, exactly as on the periodic table, so Co is cobalt while CO is carbon monoxide. One limit: it uses abridged standard weights for natural isotopic mixtures, so isotopically labelled compounds or exact monoisotopic masses for mass spectrometry need different values.

How to use it

  1. Type the formula

    Enter symbols with their counts, for example Al2(SO4)3. Capitalise the first letter of each symbol only.

  2. Add hydrate water

    Join waters of crystallisation with a dot or middle dot, as in MgSO4.7H2O; the leading number multiplies that part.

  3. Read the breakdown

    The table lists atoms, atomic weight, mass and mass percent per element, and the working line shows the full sum.

Examples

Water, H2O

Chemical formula
H2O

Result Formula weight (g/mol): 18.015
Atoms per formula unit: 3
Distinct elements: 2
Largest mass share: O (88.81% by mass)

  1. Formula weight = 2 × 1.008 (H) + 1 × 15.999 (O)
  2. = 18.015 g/mol (u per formula unit)

Two hydrogens at 1.008 and one oxygen at 15.999 give 18.015 g/mol; oxygen carries about 89% of the mass.

Glucose, C6H12O6

Chemical formula
C6H12O6

Result Formula weight (g/mol): 180.156
Atoms per formula unit: 24
Distinct elements: 3
Largest mass share: O (53.28% by mass)

  1. Formula weight = 6 × 12.011 (C) + 12 × 1.008 (H) + 6 × 15.999 (O)
  2. = 180.156 g/mol (u per formula unit)

The textbook sugar: 24 atoms across three elements adding to 180.156 g/mol.

Blue vitriol, CuSO4·5H2O

Chemical formula
CuSO4·5H2O

Result Formula weight (g/mol): 249.677
Atoms per formula unit: 21
Distinct elements: 4
Largest mass share: O (57.67% by mass)

  1. Formula weight = 1 × 63.546 (Cu) + 1 × 32.06 (S) + 9 × 15.999 (O) + 10 × 1.008 (H)
  2. = 249.677 g/mol (u per formula unit)

The five waters of crystallisation add 90.075 g/mol, more than a third of the hydrate's weight.

How it is calculated

FW = Σ (nᵢ × Aᵢ)

FW
formula weight in g/mol (numerically equal to u per formula unit)
nᵢ
number of atoms of element i in one formula unit, after expanding brackets and hydrate multipliers
Aᵢ
standard atomic weight of element i (IUPAC abridged or conventional value)

The parser walks the formula left to right. A bracketed group is counted once, then multiplied by the number after its closing bracket; nested groups multiply in turn. A hydrate dot splits the formula into parts, and a number at the start of a part multiplies every atom in it. Counts for the same element are merged, multiplied by its atomic weight, and summed. Mass percent is each element's mass divided by the total. Elements without a stable isotope use the mass number of their longest-lived isotope, e.g. 98 for technetium.

When not to use it

  • Exact monoisotopic masses for mass spectrometry need isotope masses, not averaged atomic weights.
  • Deuterated or other isotope-enriched compounds weigh more than natural-abundance values give.
  • Polymers with an unknown degree of polymerisation have no single formula weight.

Common mistakes

  • Typing co or CO when cobalt (Co) is meant changes the compound entirely.
  • Forgetting the bracket in Ca(OH)2 and writing CaOH2 gives the wrong hydrogen and oxygen counts.
  • Leaving out waters of crystallisation when the bottle label lists a hydrate.
  • Treating charges as part of the formula; drop the ion charge before typing.

Frequently asked questions

Is formula weight the same as molar mass?

Numerically yes. Formula weight is the mass of one formula unit in atomic mass units, and molar mass is the mass of one mole in grams; both come out as the same number, so 18.015 u for water corresponds to 18.015 g/mol.

Why use formula weight instead of molecular weight?

Ionic solids such as NaCl do not form discrete molecules, so chemists speak of a formula unit and its formula weight. For covalent molecules like glucose the two terms give the same value.

Which atomic weights does the calculator use?

IUPAC standard atomic weights, using the abridged or conventional single values where IUPAC gives an interval, such as 1.008 for hydrogen, 12.011 for carbon and 32.06 for sulfur. Textbooks with older tables may differ in the second decimal place.

How do I enter a hydrate?

Put a dot or a middle dot between the salt and the water, with the water count in front: CuSO4·5H2O or Na2CO3.10H2O. Each part is weighed and added; copper sulfate pentahydrate comes to 249.677 g/mol.

Can I use square brackets or nested groups?

Yes. Round and square brackets both work and can be nested, as in K4[Fe(CN)6]. Each group is multiplied by the number after its closing bracket, and the brackets must pair correctly.

What does the mass percent column tell me?

It is the share of the total weight carried by each element, which is the percent composition used in empirical-formula problems. In water, oxygen supplies about 88.8% of the mass even though it is one atom of three.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, October 11). Formula Weight Calculator. Tools Directory. Retrieved October 27, 2026, from https://tools.milunir.com/chemistry/chemistry-reference/formula-weight-calculator/

MLA

Tools Directory Editorial Team. “Formula Weight Calculator.” Tools Directory, 11 Oct. 2026, https://tools.milunir.com/chemistry/chemistry-reference/formula-weight-calculator/. Accessed 27 Oct. 2026.

Chicago

Tools Directory Editorial Team. “Formula Weight Calculator.” Tools Directory. Last modified October 11, 2026. Accessed October 27, 2026. https://tools.milunir.com/chemistry/chemistry-reference/formula-weight-calculator/.

Link<a href="https://tools.milunir.com/chemistry/chemistry-reference/formula-weight-calculator/">Formula Weight Calculator – Tools Directory</a>