Molecular Formula Calculator
Find the molecular formula from an empirical formula and the measured molar mass of the compound.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
n = molar mass / empirical formula mass; molecular formula = empirical formula x n
Frequently asked questions
Why do two compounds share an empirical formula?
Acetylene C2H2 and benzene C6H6 both reduce to CH.
What if n is not whole?
Check the molar mass. Small differences are normal, but a gap is an error.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Empirical Formula Calculator
Find the simplest whole number formula of a compound from the mass or mass percent of each element.
Molar Mass Calculator
Type a chemical formula such as C6H12O6 or Ca(OH)2 and get its molar mass with the mass percent of each element.
Mole Calculator
Convert between grams, moles and number of particles for any substance using its molar mass and Avogadro's number.