🔬 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.
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) / 2where 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 = 0Fully saturated
C₂H₄ (ethene)
DBE = 1One double bond
C₆H₆ (benzene)
DBE = 4Aromatic ring
C₈H₁₀N₄O₂ (caffeine)
DBE = 6Two 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.