Empirical Formula Calculator

The empirical formula of a compound is the simplest whole-number ratio of the atoms of each element present. It is derived from percent composition data using the mole ratio method, which converts mass percentages into mole amounts and then simplifies the ratios to the smallest possible integers. For example, if a compound contains 40% carbon, 6.7% hydrogen and 53.3% oxygen by mass, dividing each percentage by the element's molar mass gives the number of moles per 100 grams, then dividing by the smallest mole value produces a ratio of approximately 1:2:1, which corresponds to the empirical formula CH2O. The molecular formula may be a whole-number multiple of the empirical formula, but you need the compound's actual molar mass to determine that. This calculator accepts up to five elements. For each you enter the element symbol (for display), the percentage by mass from an elemental analysis, and the element's molar mass. The mole ratio method is applied automatically: divide each percentage by the molar mass to get moles per 100 g, divide all values by the minimum, then round to the nearest integer (or multiply through by 2, 3 or 4 if fractions remain). The calculator shows the intermediate mole values and the final ratio alongside the empirical formula string. Common molar masses: H = 1.008, C = 12.011, N = 14.007, O = 15.999, S = 32.06, Cl = 35.45. Use this tool in conjunction with the molar mass calculator to determine whether your empirical formula matches the molecular formula.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building

Enter up to 5 elements (symbol, % by mass, molar mass g/mol). Percentages should sum to 100%.

CH2O
empirical formula
Element% by massMoles per 100 gDivide by minInteger ratio

If the ratio step gives 0.5 or 1.5 values, the calculator multiplies through by 2. For 0.33 or 0.67, it multiplies by 3. Results may vary slightly from published values due to rounding.

How it works

The mole ratio method has three steps. Step 1: divide each percentage by the element's molar mass to get moles per 100 g (assume a 100 g sample). Step 2: divide all mole values by the smallest mole value to get the raw ratio. Step 3: round to the nearest whole number. If any value is near 0.5, multiply all ratios by 2; if near 0.33 or 0.67, multiply by 3. The empirical formula string is built from the element symbols and their integer subscripts (subscript 1 is omitted by convention).

Worked example

A compound contains C: 40%, H: 6.7%, O: 53.3%. Moles per 100 g: C = 40 / 12.011 = 3.330; H = 6.7 / 1.008 = 6.646; O = 53.3 / 15.999 = 3.332. Divide by minimum (3.330): C = 1.00; H = 1.996 = 2; O = 1.001 = 1. Empirical formula: CH2O. These match the default values pre-filled above.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.