Active experiment

Molecular Formula Calculator

Calculate molecular formula with validated inputs, formula substitution, and worked steps.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the molecular formula calculation mean?

A molecular formula is a whole-number multiple of the empirical formula. The multiplier is the compound’s measured molar mass divided by the empirical formula mass, rounded to the nearest integer.

When to use it

Use it when you know both the empirical formula and a measured molar mass, as from a mass spectrometry result.

Formula

Use the relationship shown in the interactive formula panel.

In plain text: Use the relationship shown in the interactive formula panel.

Variables and units

SymbolMeaning
empirical massmass of the simplest formula unit
molar massmeasured mass of one mole
nmultiplier, molar mass divided by empirical mass

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

Glucose has empirical formula CH₂O with mass about 30.03 g/mol. A measured molar mass of 180.16 gives n = 6, so the molecular formula is C₆H₁₂O₆.

Common mistakes

  • A multiplier close to a whole number suggests measurement error rather than a fractional formula.
  • Multiply every subscript by n, including implicit ones.
  • A molecular formula cannot be smaller than the empirical formula.

Interpret the result

The molecular formula mass should match the measured molar mass within experimental uncertainty.