Logo

MonoCalc

/

Molecular Formula Finder

Chemistry

Four modes: derive molecular formula, verify a formula, or look up properties from any chemical formula.

Enter the empirical formula and the known molar mass to find the true molecular formula.

e.g. CH2O, (CH2)3, NH3

About This Tool

🔬 Molecular Formula Finder – Derive, Verify & Explore Chemical Formulas

The Molecular Formula Finder is a multi-mode chemistry tool that lets you determine the true molecular formula of any compound — starting from an empirical formula, elemental mass percentages, or a formula string you want to verify. Whether you are solving a combustion analysis problem, preparing a lab report, or studying for a general chemistry exam, this tool handles all the calculation steps automatically.

What Is a Molecular Formula?

A molecular formula gives the exact count of each type of atom in one molecule of a compound. For example, glucose has the molecular formula C₆H₁₂O₆ — meaning each molecule contains 6 carbon atoms, 12 hydrogen atoms, and 6 oxygen atoms.

This is different from the empirical formula, which shows only the simplest whole-number ratio. Glucose's empirical formula is CH₂O because the ratio C:H:O = 1:2:1. The molecular formula is always a whole-number multiple n of the empirical formula:

Molecular Formula = n × (Empirical Formula)
n = Molecular Molar Mass / Empirical Formula Mass
e.g. n = 180.16 / 30.026 ≈ 6  →  C₆H₁₂O₆

Four Calculation Modes

Mode 1 – Empirical Formula + Molar Mass

This is the most common exam question format. You are given the empirical formula (e.g.,CH₂O) and the compound's measured molar mass (e.g., 180.16 g/mol). The tool computes the empirical formula mass, divides the provided molar mass by it to obtain the integer multiplier n, then multiplies each subscript to give the molecular formula. The step-by-step panel reveals every intermediate value.

Mode 2 – Elemental % Composition + Molar Mass

In combustion analysis, you measure the mass percentages of each element in a compound (for instance, C 40.00%, H 6.72%, O 53.28%). This mode converts percentages to mole ratios, reduces them to the simplest whole-number empirical formula, and then derives the molecular formula using the provided molar mass — all in one click.

Percentage Sum Rule
The mass percentages of all elements must sum to approximately 100%. If your sum is significantly off (outside 99–101%), the tool will warn you. Small deviations are normal due to measurement rounding.

Mode 3 – Formula Verification

Already have a proposed molecular formula and a measured molar mass? This mode checks whether the two are consistent. It calculates the theoretical molar mass of your proposed formula, computes the percentage deviation from your measured value, and gives a clear ✅ Match or ❌ Mismatch verdict based on your chosen tolerance (default ±2%).

Mode 4 – Reverse Lookup (Formula → Properties)

Enter any valid molecular formula — even complex ones like (NH₄)₂SO₄ or Fe₂(SO₄)₃ — and instantly get its molar mass, complete elemental composition with mass percentages, total atom count, and the degree of unsaturation (DBE). This mode is ideal for quickly checking an unfamiliar compound or cross-referencing a textbook formula.

Degree of Unsaturation (DBE / IHD)

The Degree of Bond Equivalents (DBE), also called the Index of Hydrogen Deficiency (IHD), tells you how many rings and π bonds exist in an organic molecule. It is calculated as:

DBE = (2C + 2 + N − H − X) / 2

where C = carbons, H = hydrogens, N = nitrogens, and X = halogens. Oxygen and sulfur do not appear in the formula. A DBE of 0 means the compound is fully saturated (like alkanes); a DBE of 4 indicates an aromatic ring (like benzene).

CH₄ (methane)

DBE = 0

Fully saturated

C₂H₄ (ethene)

DBE = 1

One double bond

C₆H₆ (benzene)

DBE = 4

Aromatic ring

C₈H₁₀N₄O₂ (caffeine)

DBE = 6

Two rings + π bonds

How to Use the Formula Parser

The formula input accepts standard IUPAC notation. Here are the supported formats:

  • Simple formulas: H2O, NaCl, CH4
  • Multi-character elements: Fe2O3, CaCO3, MgSO4
  • Parentheses / brackets: (NH4)2SO4, Ca(OH)2, Fe2(SO4)3
  • Unicode subscripts: C₆H₁₂O₆ (copied from a textbook or Wikipedia)
  • Hydrates: CaSO4·2H2O (middle-dot notation)

Typical Use Cases

Combustion analysis — A chemist burns an organic compound and measures the CO₂ and H₂O produced. From this, they derive C and H percentages, infer the O percentage by difference (100% − %C − %H), and then use Mode 2 along with a mass-spectrometry molar mass to identify the compound.

Mass spectrometry interpretation — The M⁺ peak in a mass spectrum gives the molecular weight. Combined with an empirical formula from elemental analysis, Mode 1 quickly gives the molecular formula. Mode 3 can then confirm whether a proposed structure's formula matches the observed m/z value.

Organic chemistry homework — Students regularly need to determine molecular formulas from combustion data. The step-by-step view in Modes 1 and 2 shows every intermediate step in the same format expected in university answer sheets.

Accuracy and Limitations

Atomic masses are sourced from the IUPAC 2021 standard atomic weights for all 118 elements. Results are displayed to four decimal places. The accuracy of the molecular formula you obtain depends entirely on the precision of your input data — more decimal places in your percentages or molar mass will yield a more reliable result.

The DBE formula is valid for organic compounds containing C, H, N, O, S, and halogens. For compounds with phosphorus, silicon, or metal atoms, the DBE is still calculated but a caution note is shown because the classical formula may not fully apply. The tool flags non-integer multipliers so you can investigate whether your molar mass or elemental data needs refinement.

Frequently Asked Questions

Is the Molecular Formula Finder free?

Yes, Molecular Formula Finder is totally free :)

Can I use the Molecular Formula Finder offline?

Yes, you can install the webapp as PWA.

Is it safe to use Molecular Formula Finder?

Yes, any data related to Molecular Formula Finder only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is the difference between an empirical and a molecular formula?

An empirical formula gives the simplest whole-number ratio of atoms in a compound (e.g., CH₂O for glucose), while a molecular formula shows the actual count of each atom per molecule (e.g., C₆H₁₂O₆). The molecular formula is always a whole-number multiple of the empirical formula. If you know the molar mass, this tool can determine that multiple for you.

How does the Molecular Formula Finder work?

The tool offers four modes: (1) provide an empirical formula plus the known molar mass and it calculates the integer multiplier n to give the molecular formula; (2) enter elemental mass percentages plus molar mass for a full derivation from scratch; (3) verify whether a proposed formula matches a measured molar mass; and (4) reverse-lookup any formula to get its molar mass, elemental composition percentages, and degree of unsaturation.

What is the degree of unsaturation (DBE)?

The Degree of Bond Equivalents (DBE), also called the Index of Hydrogen Deficiency (IHD), counts the number of rings and π bonds in an organic molecule. It is calculated as DBE = (2C + 2 + N − H − X) / 2, where C = carbons, N = nitrogens, H = hydrogens, and X = halogens. A DBE of 0 means fully saturated; DBE = 4 for benzene rings.

Why does the tool warn when elemental percentages do not sum to 100%?

The mass percentages of all elements must sum to 100% in a pure compound. Small deviations (±1%) are acceptable due to measurement rounding, but larger discrepancies may indicate a missing element, measurement error, or a mixed sample. The tool still calculates but warns you so you can verify your data.

Can I enter formulas with parentheses like (NH₄)₂SO₄?

Yes. The formula parser supports nested parentheses and brackets (e.g., (NH4)2SO4, Ca(OH)2, Fe2(SO4)3). It also accepts unicode subscript characters such as those you might copy from a chemistry textbook or Wikipedia.

How accurate are the molar masses shown?

The tool uses IUPAC 2021 standard atomic weights for all 118 elements. Results are displayed to four decimal places. Accuracy is limited by the precision of your input percentages or molar mass — for best results, use values with at least two decimal places.