Molecular Formula Calculator
A ratio that is not near a whole number means bad data.
Work out Molecular Formula. A ratio that is not near a whole number means bad data. States the assumption instead of hiding it.
Mass of the simplest whole-number formula — CH₂O is 30.026
Measured by mass spectrometry or freezing-point depression
Empirical formula multiplier
× 6
Raw ratio 6, clean enough to round
The ratio is close enough to a whole number to trust. Multiply each subscript in the empirical formula by it: CH₂O × 6 gives C₆H₁₂O₆, glucose.
How the Molecular Formula Calculator works
Divides the molecular mass by the empirical formula mass to get the multiplier that turns one into the other, and reports how far the raw ratio sits from a whole number. A ratio of 5.4 is not a 5 — it means one of the two masses is wrong, and the page says so.
Also known as: empirical to molecular formula · formula from molar mass · how to get c6h12o6 from ch2o · molecular formula multiplier
What the empirical formula leaves out
An empirical formula is a ratio, and a ratio discards the scale. CH₂O tells you there is one carbon for every two hydrogens and one oxygen, and says nothing at all about whether the molecule holds one of each or six. Formaldehyde, acetic acid and glucose share it with multipliers of 1, 2 and 6, and they are not remotely the same substance.
That is the whole reason a second measurement is needed. Combustion analysis or any other composition method gives ratios, because it measures the proportions of elements. Molar mass has to come from somewhere else — mass spectrometry reading the molecular ion directly, or a colligative method like freezing-point depression.
The multiplier is then just molar mass divided by empirical formula mass, and it counts how many repeat units make one molecule. Multiply every subscript by it and the molecular formula falls out: CH₂O at 30.03 against glucose at 180.16 gives 6, and C₆H₁₂O₆.
A ratio that is not near a whole number is data, not a rounding problem
The multiplier counts repeat units, so it has to be an integer. There is no such thing as 5.4 copies of an empirical formula. A raw ratio of 5.4 is therefore not a 5 to be rounded into — it is a statement that at least one of the two masses is wrong.
How close is close enough depends on the measurement. Mass spectrometry pins the molecular mass to within a fraction of a unit, so a ratio should land within a percent or two of an integer. Freezing-point depression on a real solution is much rougher, and a ratio of 5.85 from that method probably is a 6. The page reports the deviation as a percentage so the judgement is yours rather than a hidden threshold's.
When the deviation is large, the empirical formula is the more likely culprit. It came from an elemental analysis where oxygen was found by difference, and a single mis-weighed product mass propagates into the ratio and then into the mass. Recomputing the empirical formula from the raw analysis is usually more productive than re-measuring the molar mass.
Where formula stops and structure starts
A molecular formula fixes composition and nothing else. C₂H₆O is both ethanol, which is drinkable in moderation, and dimethyl ether, which is a gas at room temperature. C₄H₁₀ is butane and isobutane. Anything with more than a handful of atoms has isomers, often many of them.
Degrees of unsaturation is the one structural hint a formula does give: (2C + 2 + N − H − X) ÷ 2 counts rings plus π bonds. C₆H₆ returns 4, which is three double bonds and one ring — benzene, or one of its less stable isomers. It narrows the field without choosing within it.
Everything past that needs spectroscopy. Infrared identifies functional groups, NMR maps the hydrogen and carbon environments, and X-ray crystallography settles the geometry outright. The formula is where structural work starts, not where it ends.
Where to go next
The Molecular Formula question rarely arrives on its own. These are the ones that usually come with it:
- Empirical Formula Calculator — From percentages to formula, without rounding 1.5 to 2.
- Molar Mass Calculator — Any formula, with brackets, hydrates and percent composition.
- Molecular Geometry Calculator — VSEPR shape, hybridisation and bond angle from two counts.
- Speed Distance Time Calculator — Any one of the three from the other two, in four units.
Frequently asked questions
How do I find the molecular formula from the empirical formula?
Divide the molecular mass by the empirical formula mass and multiply every subscript by the whole-number result. CH₂O has a mass of 30.03; glucose measures 180.16, giving a multiplier of 6 and C₆H₁₂O₆.
What if the ratio is not a whole number?
Then one of the two masses is wrong. The ratio is a count of repeat units, so it must be a whole number within experimental error — a value like 5.4 signals a bad molar mass measurement or a miscalculated empirical formula, not a formula to round into.
Can the empirical and molecular formula be the same?
Yes, when the multiplier is 1. Water, methane and carbon dioxide are all already at their simplest ratios, so no further reduction is possible.
How is the molecular mass measured?
Usually by mass spectrometry, which reads the molecular ion directly. Colligative methods such as freezing-point depression also work and are what a teaching lab is likely to use.
Does this tell me the structure?
No. C₂H₆O is both ethanol and dimethyl ether, which behave nothing alike. Formula fixes composition; structure needs spectroscopy.
How is molar mass measured in practice?
Mass spectrometry, which reads the molecular ion directly and gives the answer to a fraction of a mass unit. Colligative methods such as freezing-point depression or osmometry also work and are far less precise, which affects how clean a multiplier you should expect.
What is high-resolution mass spectrometry good for here?
Distinguishing formulas of the same nominal mass. C₃H₈O and C₂H₄O₂ are both 60 to the nearest whole number, but their exact masses are 60.0575 and 60.0211 — a difference an instrument reading to four decimal places resolves outright.
How do I calculate degrees of unsaturation?
(2C + 2 + N − H − X) ÷ 2, where X counts halogens. The result is rings plus π bonds. Benzene at C₆H₆ gives 4, which is one ring and three double bonds.
Can a multiplier be less than 1?
No. The molecular formula is the empirical formula repeated a whole number of times, so the multiplier is at least 1. A result below 1 means the molecular mass entered is smaller than the empirical formula mass, which cannot happen.
What if the compound is a polymer?
Then the multiplier is large and not fixed — a polymer sample contains chains of different lengths, so it has a distribution of molar masses rather than a single value. Number-average and weight-average molar masses are quoted instead, along with the dispersity between them.
Does a hydrate count in the molecular formula?
It does in the formula mass. Copper sulfate pentahydrate is CuSO₄·5H₂O at 249.68 g/mol, not 159.61. Weighing out a hydrate as though it were anhydrous is one of the most common preparation errors in a teaching laboratory.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/molecular-formula-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Molecular Formula Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/molecular-formula-calculator" style="color:#64748b">Molecular Formula Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Empirical Formula Calculator
From percentages to formula, without rounding 1.5 to 2.
OpenMolar Mass Calculator
Any formula, with brackets, hydrates and percent composition.
OpenMolecular Geometry Calculator
VSEPR shape, hybridisation and bond angle from two counts.
OpenSpeed Distance Time Calculator
Any one of the three from the other two, in four units.
Open