ThisCalculator

Everyday

Molecular Formula Calculator: How to Find It

Updated · Standard formula, shown below

Empirical formula mass 100.00 g/mol
Molecular formula multiplier
1.80
Result
Carbon %
40 %
You entered
Hydrogen %
6.7 %
You entered

A molecular formula calculator works out the exact number of each atom in a molecule from the compound’s percentage composition and molar mass. You enter the mass percentages of each element and the molecular weight, and it returns the empirical formula first, then scales it to the true molecular formula. This page explains the maths behind that process, shows a worked example, and covers the common pitfalls that lead to wrong answers.

Formula

The calculation follows a fixed sequence. First, convert each element’s percentage to moles by dividing by its atomic mass:

moles of element = (percentage / atomic mass)

Then divide every mole value by the smallest mole value to get the simplest whole-number ratio. That ratio is the empirical formula. Finally, compare the empirical formula mass with the given molar mass:

multiplier = molar mass / empirical formula mass

Multiply each subscript in the empirical formula by that multiplier to get the molecular formula. In the calculator above, c, h, and o are the percentages of carbon, hydrogen, and oxygen; m is the molar mass in g/mol. The first output is the empirical formula mass, and the second is the multiplier you apply to the subscripts.

Worked Example

Using the defaults (40.0% C, 6.7% H, 53.3% O, molar mass 180.0 g/mol):

  1. Moles of C = 40.0 / 12.011 = 3.33
  2. Moles of H = 6.7 / 1.008 = 6.65
  3. Moles of O = 53.3 / 15.999 = 3.33
  4. Divide by the smallest (3.33): C = 1, H = 2, O = 1 → empirical formula CH₂O
  5. Empirical formula mass = 12.011 + 2×1.008 + 15.999 = 30.03 g/mol
  6. Multiplier = 180.0 / 30.03 = 5.99 ≈ 6

Molecular formula = (CH₂O)₆ = C₆H₁₂O₆, which is glucose. The calculator’s multiplier of 6.00 confirms this.

How the Calculator Works

The calculator performs the same steps you would on paper but avoids arithmetic errors. It assumes you already have the percentage composition from elemental analysis (combustion data) and the molar mass from mass spectrometry or freezing-point depression. The tool does not identify the compound; it only gives the formula. You still need to interpret the result in context, because different compounds can share the same molecular formula (isomers).

When to Use It

Use this calculator in chemistry homework, lab reports, or when verifying a product’s label. It is especially useful when you have a combustion analysis result and need a quick check before drawing a structure. It also helps distinguish an empirical formula (like CH₂O) from a molecular formula (like C₆H₁₂O₆) when you know the molar mass. Without the molar mass, you can only get the empirical formula, which is still valuable for identifying the simplest ratio.

Common Mistakes and Misconceptions

  • Using atomic weights rounded too early. Use at least three significant figures (e.g., 12.011 for C, 1.008 for H, 15.999 for O). Rounding to 12, 1, and 16 can change the multiplier by 1–2%.
  • Forgetting to divide by the smallest mole value. If you skip this, you get the actual mole ratio, not the simplest ratio, and the empirical formula will be wrong.
  • Rounding the multiplier prematurely. A multiplier of 5.99 is 6, but 5.5 is not. Only round when the value is within ~0.1 of a whole number; otherwise recheck the percentages or molar mass.
  • Assuming percentages must sum to 100. They usually do, but if they don’t, the remainder is often oxygen (or another element). Include it in the calculation.
  • Confusing empirical and molecular formulas. The empirical formula is the simplest ratio; the molecular formula is the actual number of atoms. They are identical only when the multiplier is 1.

Limits of the Formula

The calculation is only as good as the inputs. If the percentage composition is off by even 0.5%, the mole ratio can shift enough to give a non-integer ratio. Also, the molar mass must be accurate; a wrong molar mass leads to a wrong multiplier. The method works for any compound with a known molar mass, but it cannot distinguish isomers. For example, both glucose and fructose have the formula C₆H₁₂O₆, but the calculator cannot tell which one you have. That requires additional data like NMR or IR spectroscopy.

Alternatives and Related Calculations

If you only need the empirical formula, you can stop after the mole ratio step and ignore the molar mass. If you have the molar mass and the empirical formula mass, you can compute the multiplier directly. For organic compounds, combustion analysis gives percentages of C, H, and sometimes N, S, or halogens; the same calculator works with any set of elements. For ionic compounds, the empirical formula is usually the formula unit, so the multiplier is often 1.

Frequently Asked Questions

What is the difference between empirical and molecular formula?

The empirical formula shows the simplest whole-number ratio of atoms in a compound, while the molecular formula shows the actual number of each atom in one molecule. For example, the empirical formula of hydrogen peroxide is HO, but the molecular formula is H₂O₂.

Can I calculate the molecular formula without the molar mass?

No. You can get the empirical formula from percentages alone, but to scale it to the molecular formula you need the molar mass. Without it, you cannot know the multiplier.

Why do my percentages not add up to 100%?

Usually the missing percentage is oxygen, especially in organic compounds. If you know the compound contains oxygen, add the difference as oxygen. If not, check for experimental error or an unlisted element.

How accurate do my atomic masses need to be?

Use at least three significant figures. The standard atomic weights (C=12.011, H=1.008, O=15.999) are sufficient. Using rounded values like 12, 1, and 16 can cause the multiplier to be off by a few percent, which may lead to an incorrect formula.

What if the multiplier is not a whole number?

If the multiplier is within 0.1 of a whole number (e.g., 5.99), round it. If it is far from a whole number (e.g., 5.5), your empirical formula or molar mass is likely wrong. Recalculate the mole ratios and check the percentages.

Does the calculator work for compounds with more than three elements?

Yes. You can add more inputs for each element. The same steps apply: convert percentages to moles, divide by the smallest, and scale by the molar mass. Just ensure the percentages sum to 100% (or account for the missing element).

Related

Formula used
in c | Carbon % | % | 40.0 | 0
in h | Hydrogen % | % | 6.7 | 0
in o | Oxygen % | % | 53.3 | 0
in m | Molar mass | g/mol | 180.0 | 0
out ef | Empirical formula mass | g/mol | c/12.011*12.011 + h/1.008*1.008 + o/15.999*15.999 | 2
out mf | Molecular formula multiplier | - | m / ef | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.