Empirical Formula Calculator With Molecular Formula

Empirical Formula Calculator

Find the simplest whole-number mole ratio from element masses in grams or percent composition, then derive the molecular formula from a known molar mass using clear, worked stoichiometry.

🧪Real Compound Presets

📝Composition Inputs

Element Percent (%)  

Leave 0 for empirical formula only. Enter a value to also get the molecular formula.

Controls how ratios like 1.5, 1.33, and 1.25 are scaled to whole numbers.

Empirical formula simplest whole-number ratio
Molecular formula from molar mass
Empirical mass 0 g/mol per formula unit
Multiplier n molar mass / empirical mass

🔢Method Snapshot

molMass / atomic mass
÷Divide by smallest
×Scale to whole
nMM / emp mass

📊Worked Example Steps

ElementInputAtomic MassMoles÷ SmallestSubscript
Enter composition above to see the step-by-step mole calculation.

Common Atomic Masses

ElementSymbolAtomic MassTypical Role
HydrogenH1.008Acids, water, organics
CarbonC12.011Backbone of organics
NitrogenN14.007Amines, nitrates
OxygenO15.999Oxides, water, acids
SodiumNa22.990Salts, bases
SulfurS32.06Sulfates, sulfides
ChlorineCl35.45Chlorides, salts
IronFe55.845Oxides, ores

🗂Empirical vs Molecular Reference

CompoundEmpiricalEmp MassMolar MassnMolecular
WaterH2O18.0218.021H2O
Carbon dioxideCO244.0144.011CO2
Hydrogen peroxideHO17.0134.012H2O2
GlucoseCH2O30.03180.166C6H12O6
BenzeneCH13.0278.116C6H6
Acetic acidCH2O30.0360.052C2H4O2
ButaneC2H529.0658.122C4H10

📐Mole-Ratio Rounding Guide

Decimal PartFractionMultiply All ByExample RatioBecomes
0.10 to 0.90Near whole1 (round)1.98 : 1.002 : 1
~0.501/222.50 : 1.005 : 2
~0.33 or 0.671/3 or 2/331.33 : 1.004 : 3
~0.25 or 0.751/4 or 3/441.25 : 1.005 : 4
~0.20 or 0.401/5 group51.40 : 1.007 : 5
~0.17 or 0.831/6 group61.17 : 1.007 : 6

Full Formula Breakdown

Grams of eachIn percent mode, assume a 100 g sample so each percent value becomes grams directly. In mass mode, use grams as entered.
Molesmoles = grams ÷ atomic mass. Each element uses its own atomic mass from the periodic table.
Divide by smallestDivide every mole value by the smallest mole value to get a relative ratio starting near 1.
Scale to wholeIf a ratio ends near 0.5 multiply all by 2; near 0.33 by 3; near 0.25 by 4; near 0.2 by 5; near 0.17 by 6, then round.
Empirical formulaCombine each element with its whole-number subscript. Empirical mass = sum of atomic mass × subscript.
Molecular formulan = molar mass ÷ empirical mass, rounded to the nearest integer. Molecular subscripts = empirical subscripts × n.

💡Practical Formula Tips

Percent tip: When percentages are given they should add to about 100. A 100 g basis turns each percent straight into grams, so no extra conversion is needed before finding moles.
Rounding tip: Do not round a ratio like 1.5 straight to 2. Multiply every element by the same factor so the whole set stays proportional, then round to the nearest integer subscripts.

The problem is that you get some kind of raw mass data (e.g., “carbon, 24 grams,” “hydrogen, 2 grams,” “oxygen, 16 grams” …) But just those numbers don’t tell you what a molecule look like. To do that, you need something called an empirical formula which tells you the simple, whole-number ratio of atoms making up a given molecule. That tells you its basic skeleton. Knowing how this works will help you keep your rounding errors down.

Here is the math, calculated using steps above: First, you convert your masses into moles. Why? Because an atom is not equal in mass to other atoms; a gram of hydrogen contain more atoms than a gram of carbon, for example. To set things on an even level, you takes the mass of each element and divide by its atomic weight. Now you’ve got your mole values, so you divides each value by whatever was the lowest number you found. This establishes the base ratio: the first value is 1, and everything else will be a decimal multiple or fraction of that.

How to Calculate Empirical Formulas

If all these numbers come out as whole numbers, good, you’re finished (but this isn’t exactly how chemistry play out). The problem for most students is that they look at a number such as 1.5 and round down to 2. But rounding only one of the numbers violate the proportional nature of a compound. The trick is to scale up all the numbers together. Double them if you have a ratio close to 0.5. Triple them if it is close to 0.33. Scale them by four if your ratios are close to 0.2 (the table of references will guide you on decimals). It’s just like adjusting the amounts in a recipe; if you add more sugar, you must also add more flour. In this way, you’re maintaining the actual relationships between the components.

Perhaps you have determined the simplest formula, but that’s not the same as knowing the actual molecule. The empirical formula for glucose and formaldehyde is the same (CH2O), yet one is a sugar, the other a preservative. What do you do? Use the molar mass of the real thing to distinguish between different compounds that share the same empirical formula. Divide the molar mass by the empirical mass. This gives you a multiplier value, n, which tell you how many empirical unit are in every molecule. Multiply all your subscripts by this integer to get molecular formula.

Real-world data is often slightly off. Those little deviations could throw off the scale but that’s where this tool’s rounding sensitivity comes into play. If you’re dealing with pretty noisy data, the stricter setting will keep stubborn decimal places around. A less strict tolerance help pull out the rough integer ratio even if there’s some slight error in measurement. It requires a degree of confidence in starting measurements to understand what level of smoothing you should of allow versus what may be an actual change from the norm.

It seems like magic, but it’s very rational: converting imprecise amounts to real numbers (atoms). From determining your chemistry homework to identifying a mysterious organic substance, these same steps apply. Normalize based off the smallest amount, convert to moles, round to whole numbers, and then expand with molar mass if possible. The power in stoichiometry is how it take raw values and converts them into an exact form of matter.

Empirical Formula Calculator With Molecular Formula