← All chemistry tools
FORMULA CALCULATOR · LEARNING LAB

Small ratios.
Big discoveries.

Turn a sample into a chemical formula. See the recipe, follow the clues, then try it yourself.

THE SIMPLEST RECIPECH2O× 6 → C6H12O6Same proportions. A bigger molecule.
START WITH YOUR SAMPLE

What is it made of?

Choose an example or enter your own composition.

Use the values given in your question. Elements are entered separately, for example O, not O₂.

Only for a substance made of molecules. Ionic solids have formula units, not molecules. Mr has no units.

THE COMPOSITION STUDIO

Mass is only the first clue.

Heavier atoms contribute more mass. Divide by atomic mass to compare how many atoms there are.

01 / Divide

Mass → amount

For percentages, imagine a 100 g sample. Divide each mass by the element's molar mass.

02 / Compare

Find the ratio

Divide all amounts by the smallest. Multiply all ratios by the same number if fractions remain.

03 / Scale

Build the molecule

An empirical formula gives the simplest ratio. A molecular formula needs a relative molecular mass too.

How to use the models and rounding

These visuals explain composition; they are not molecular structures. The formula alone cannot identify a substance or show its bonding. Empirical formulas are inferred from complete elemental composition, assuming a pure compound.

The calculator looks for small whole-number ratios using multipliers up to 12, with a maximum deviation of 0.055 from a whole number. This supports typical rounded classroom data, but uncertain experimental results may need more analysis. Percentages must total within 0.5% of 100. Molecular and hydrate multipliers must be within 0.02 of a positive whole number.

Relative atomic mass Ar and relative formula/molecular mass Mr are dimensionless. An element's molar mass in g mol⁻¹ has the same numerical value as its Ar at the precision used here. Keep extra digits until the final ratio.

Keep exploring with the Moles Calculator or empirical formula guide.