H2O is water, NaCl is table salt and CO2 is carbon dioxide. Most people know a handful of chemical names like these, and then the memory runs out somewhere around the acids. This free chemical name calculator fills that gap: type a chemical formula and it gives you the common name, the type of compound and the element breakdown, so you can see exactly what the formula is made of.
At the defaults, H2O, the answer is Water, a covalent compound, with 2 hydrogen atoms and 1 oxygen atom, 3 atoms in total. The worked example below uses CO2, which is Carbon dioxide, with 1 carbon atom and 2 oxygen atoms. The calculator covers 30 common compounds by lookup, and it parses any well formed formula, so even a formula that is not in the list still gets its element breakdown and a molecule diagram drawn from its atoms.
State this plainly, because it shapes everything the calculator does: this is a lookup of common names, not a systematic IUPAC naming engine for arbitrary compounds. The names it returns are the names people actually use, water rather than oxidane, and baking soda rather than sodium hydrogen carbonate. If you need the systematic name of an unfamiliar compound, this calculator will tell you its elements, but not invent a systematic name for it.
Type a formula using element symbols and numbers, for example H2O, CO2 or Ca(OH)2. Capital letters do not matter: h2o works the same as H2O, and spaces are ignored. The calculator looks the formula up in a list of 30 common compounds and shows its common name, its type and its element breakdown. A formula that is not in the list still gets its element breakdown, so you can check how any formula is put together.
Enter a chemical formula using element symbols and numbers, for example H2O.
| Formula | Common Name | Type |
|---|
All 30 compounds in the lookup list. The row for the formula you entered is highlighted when it matches one of them. At the defaults, H2O, the Water row is highlighted.
ADVERTISEMENT
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
A chemical name calculator is a tool that turns a chemical formula into the name of the substance it stands for. A formula is a shorthand: letters stand for elements, and the small numbers after them count the atoms. H2O means two hydrogen atoms and one oxygen atom, and the name of that substance is water. CO2 means one carbon atom and two oxygen atoms, and its name is carbon dioxide.
This calculator works in two steps. First it parses the formula into element counts, reading element symbols, the numbers after them and brackets, which multiply everything inside them. Ca(OH)2 is one calcium, two oxygens and two hydrogens, because the 2 after the bracket doubles both the O and the H. Then it matches the formula against a list of 30 common compounds and returns the common name and the type: covalent compound, ionic compound, acid, base or element.
The list is deliberately small and familiar. It holds the compounds that turn up in school chemistry, in the kitchen and in everyday life: water, carbon dioxide, table salt, the common acids, the common bases, simple hydrocarbons, glucose and sucrose. A formula outside the list is not an error. The calculator says so plainly, shows the parsed breakdown and draws the molecule, and invites you to try a common compound instead.
One naming point is worth stating before you use it. A common name and a systematic name are often different words for the same substance. The systematic name of water is oxidane, and the systematic name of baking soda is sodium hydrogen carbonate, but the common names, water and sodium bicarbonate, are the ones in everyday use. This calculator returns the common name every time, and says so in the results.
Type a chemical formula in the box, using element symbols and numbers, for example H2O, CO2 or Ca(OH)2. Capital letters do not matter: h2o works the same as H2O, and spaces are ignored, so H 2 O is read as H2O. The calculator updates as you type, and the Calculate button runs it again at any time.
Read the results in order. The common name is the headline answer, followed by the formula as the calculator read it, written with proper capitalisation. The type tells you what kind of substance it is: a covalent compound, an ionic compound, an acid, a base or an element. The element breakdown lists each element with its count, and total atoms is the sum of those counts. The last two lines say whether the formula is in the list of 30 common compounds and how the name was found.
The molecule diagram in the Summary tab draws one coloured ball per atom, with a bond line from the first atom to each of the others, so the picture changes with every formula you enter. A large molecule such as sucrose, C12H22O11, draws all 45 of its atoms, with smaller balls so the whole cluster still fits. The caption under the diagram names the compound and repeats the formula it was drawn from.
The Compare Compounds tab lists all 30 compounds in the lookup, with formula, common name and type, and highlights the row for the formula you entered when it matches one of them. If the formula is not in the list, no row is highlighted, which is itself the answer: the formula is parsed, but it has no common name in this list.
There is no arithmetic formula here, because naming is a lookup plus a parse, not a calculation. The two rules the calculator follows are the parsing rule and the matching rule, and both are worth knowing.
The parsing rule reads a formula from left to right. An element symbol is a capital letter, with a lowercase letter after it when the element needs two letters, so C is carbon, Cl is chlorine and Co is cobalt. A number after a symbol counts that element’s atoms, and no number means one atom. A number after a closing bracket multiplies everything inside the brackets. Worked through for the defaults, H2O is H with a 2 and O with no number, so 2 hydrogen atoms and 1 oxygen atom, 3 atoms in total. Worked through for Ca(OH)2, the bracket holds O and H, and the 2 after it doubles both, giving Ca 1, O 2 and H 2, 5 atoms in total.
The matching rule compares the parsed formula with the 30 entries in the lookup list, ignoring case and spaces. H2O matches Water, CO2 matches Carbon dioxide and CaCO3 matches Calcium carbonate. The match is on the formula as written: acetic acid is listed as CH3COOH, the form in common use, so C2H4O2, which has the same atoms, does not match the list even though it parses to the same breakdown. That is a property of a lookup, and the calculator says so rather than pretending the two writings are the same entry.
A number with nothing in front of it, a stray bracket, an unknown symbol or an empty box is not a formula. The calculator answers those with a plain message: enter a chemical formula using element symbols and numbers, for example H2O. It dashes out the result fields until a readable formula is entered.
Take CO2, carbon dioxide, the gas that makes drinks fizzy and that plants take in during photosynthesis. First parse the formula: C with no number after it is 1 carbon atom, and O with a 2 after it is 2 oxygen atoms, so the breakdown is C: 1, O: 2, and the total is 3 atoms. Then match it against the list: CO2 is in the list, its common name is Carbon dioxide and its type is covalent compound, because carbon and oxygen are both nonmetals sharing electrons.
Check the diagram against the same numbers: it draws three balls, one dark ball labelled C and two red balls labelled O, joined by bond lines, with the caption naming carbon dioxide and repeating the formula CO2. The Compare Compounds tab highlights the CO2 row in the list. Every part of the calculator agrees, because every part works from the same parsed formula.
Try the same steps on a bracketed formula, Ca(OH)2. The bracket holds O and H, the 2 after it doubles both, so the breakdown is Ca: 1, O: 2, H: 2, 5 atoms in total, and the name is Calcium hydroxide, a base. And try a formula that is not in the list, XeF4. It parses cleanly as Xe: 1, F: 4, 5 atoms in total, the diagram draws one purple xenon ball and four teal fluorine balls, and the name field reads not in our list, with the breakdown still shown in full.
The first benefit is speed. A formula such as H3PO4 is not obvious until you know it is phosphoric acid, and looking it up by hand means reaching for a table. Typing the formula and reading the name takes seconds, and the element breakdown is shown beside the name, so you can check that the formula you typed is the one you meant.
The second benefit is seeing the structure behind the name. The breakdown turns a flat string of letters into counts you can reason about: H2SO4 is 2 hydrogens, 1 sulfur and 4 oxygens, which is why it is written with a 4 on the oxygen and not on the sulfur. The molecule diagram makes the same point visually, with one ball per atom, so a formula with 24 atoms, such as glucose, looks like the large molecule it is, and a formula with 2 atoms, such as NaCl, looks like the small formula unit it is.
The third benefit is learning the types as well as the names. Knowing that NaCl is an ionic compound and CO2 is a covalent compound is the start of knowing why salt dissolves in water the way it does and why carbon dioxide is a gas at room temperature. The type column in the Compare Compounds tab puts all 30 compounds side by side, so the pattern is visible at a glance: the salts and oxides are ionic, the gases and organic compounds are covalent, and HCl, H2SO4, HNO3, H3PO4 and CH3COOH sit together as acids.
The fourth benefit is honest handling of the unknown. A calculator that guessed a name for every formula would teach wrong names, so this one does not guess. When a formula is not in the list, it says so, shows the parsed elements and draws the molecule, and leaves the naming to a reference book. That is more useful than a confident wrong answer, and it is the right behaviour for a lookup tool.
Water. H2O has 2 hydrogen atoms and 1 oxygen atom, and its common name is water. Its systematic name is oxidane, but the common name is the one in everyday use, and it is the name this calculator returns. H2O is a covalent compound, because hydrogen and oxygen are both nonmetals sharing electrons.
Type the formula into the calculator, using element symbols and numbers, for example H2SO4 or Ca(OH)2. The calculator parses it into element counts and matches it against a list of 30 common compounds. If the formula is in the list, you get its common name and its type. If it is not in the list, you still get the element breakdown and the molecule diagram, but no name, because a lookup cannot name a compound it does not hold.
No, it gives the common name. The two are often different: water is oxidane in systematic naming, baking soda is sodium hydrogen carbonate, and ammonia is nitrogen trihydride in systematic naming but ammonia everywhere else. Common names are the names people actually use, so they are what this calculator returns. The article and the results say which kind of name you are getting, so there is no confusion.
Either it is a real compound that is not one of the 30 in the lookup, or it is written in a different form from the one listed. Acetic acid is listed as CH3COOH, so C2H4O2, which has the same atoms, does not match. Check the spelling of the element symbols first, then check the Compare Compounds tab to see whether the compound is in the list at all. A formula that parses correctly still shows its element breakdown and its molecule diagram, even when it has no name in the list.
Both, and the difference is the state of the substance. HCl as a gas is hydrogen chloride. Dissolved in water it is hydrochloric acid, and that is the form most people meet, so hydrochloric acid is the common name this calculator returns for HCl. The same care applies across the list: names follow common use, and the systematic name is noted in the article where the two differ.
Wikipedia — Chemical nomenclature, with the distinction between systematic and retained common names, the naming of ionic and covalent compounds, and the rule that a formula is read from element symbols and counts.
Wikipedia — IUPAC nomenclature of inorganic chemistry, with the systematic naming rules for salts, oxides, acids and bases, and the retained names such as water and ammonia.
IUPAC — Nomenclature of Organic Chemistry, the Blue Book, with the systematic naming rules for organic compounds such as ethanol, acetic acid, glucose and sucrose.
PubChem — The PubChem compound record for water, with the formula H2O, the common name water and the systematic name oxidane, the pattern used to verify the names in the lookup list.
NIST — The NIST Chemistry WebBook, with verified formulas and names for common compounds, used to check the lookup entries.
This calculator returns the common name of a chemical formula from a list of 30 common compounds, and parses any well formed formula into its element counts. It is for study, homework and general reference only. It does not give systematic IUPAC names for compounds outside its list, and it does not describe a compound’s structure, its hazards or how to handle it. Never use a name from here as a safety instruction: check the safety data sheet before handling any chemical, and remember that some compounds with similar names or formulas are very different substances. If a name matters for a lab report, a label or a legal document, confirm it against an authoritative reference such as IUPAC or PubChem before you use it.
Last updated: 29 November 2026
ADVERTISEMENT
ADVERTISEMENT