QuickToolbox

Empirical Formula Calculator

Find the simplest whole number formula of a compound from the mass or mass percent of each element.

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

The formula

moles = mass / atomic mass; divide by the smallest, then scale to whole numbers

Frequently asked questions

Can I use percentages?

Yes. Percentages work the same as grams out of 100 g.

What if ratios are not whole?

The tool tries multipliers up to 8, for example 1.5 becomes 3 when doubled.

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