Molecular Formula Calculator

Enter an empirical formula and molar mass to instantly calculate the true molecular formula of a compound.

Input

Uppercase first letter, lowercase second letter (Na, Cl). Counts follow the symbol.

Quick Examples

Result

Enter an empirical formula and molar mass, then click Calculate.

Copied!

Summary

Enter an empirical formula and molar mass to instantly calculate the true molecular formula of a compound.

How it works

  1. Enter the empirical formula (e.g. CH2O) using standard chemical notation.
  2. Enter the known molar mass of the compound in g/mol.
  3. The tool parses each element and its count from the empirical formula.
  4. It looks up the atomic mass of each element and computes the empirical formula mass.
  5. The multiplier n is calculated as molar mass divided by empirical formula mass, rounded to the nearest integer.
  6. Each element count is multiplied by n to produce the molecular formula.

Use cases

  • Determine the molecular formula from mass spectrometry data.
  • Verify combustion analysis results in an organic chemistry lab.
  • Check molecular formula assignments in homework or exam prep.
  • Convert percent-composition data (after finding empirical formula) to molecular formula.
  • Quickly scale empirical ratios when given a molecular weight from a literature source.
  • Validate results from elemental analysis reports in pharmaceutical research.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu