A chemical formula is a way of presenting information about the chemical proportions of
atom
Atoms are the basic particles of the chemical elements. An atom consists of a atomic nucleus, nucleus of protons and generally neutrons, surrounded by an electromagnetically bound swarm of electrons. The chemical elements are distinguished fr ...
s that constitute a particular
chemical compound or
molecule
A molecule is a group of two or more atoms that are held together by Force, attractive forces known as chemical bonds; depending on context, the term may or may not include ions that satisfy this criterion. In quantum physics, organic chemi ...
, using
chemical element
A chemical element is a chemical substance whose atoms all have the same number of protons. The number of protons is called the atomic number of that element. For example, oxygen has an atomic number of 8: each oxygen atom has 8 protons in its ...
symbols, numbers, and sometimes also other symbols, such as parentheses, dashes, brackets, commas and ''plus'' (+) and ''minus'' (−) signs. These are limited to a single typographic line of symbols, which may include
subscripts and superscripts. A chemical formula is not a
chemical name since it does not contain any words. Although a chemical formula may imply certain simple
chemical structures, it is not the same as a full chemical
structural formula. Chemical formulae can fully specify the structure of only the simplest of molecules and
chemical substances, and are generally more limited in power than chemical names and structural formulae.
The simplest types of chemical formulae are called ''
empirical formulae'', which use letters and numbers indicating the numerical ''proportions'' of atoms of each type. Molecular formulae indicate the simple numbers of each type of atom in a molecule, with no information on structure. For example, the empirical formula for
glucose
Glucose is a sugar with the Chemical formula#Molecular formula, molecular formula , which is often abbreviated as Glc. It is overall the most abundant monosaccharide, a subcategory of carbohydrates. It is mainly made by plants and most algae d ...
is (twice as many
hydrogen atoms as
carbon
Carbon () is a chemical element; it has chemical symbol, symbol C and atomic number 6. It is nonmetallic and tetravalence, tetravalent—meaning that its atoms are able to form up to four covalent bonds due to its valence shell exhibiting 4 ...
and
oxygen), while its molecular formula is (12 hydrogen atoms, six carbon and oxygen atoms).
Sometimes a chemical formula is complicated by being written as a
condensed formula (or condensed molecular formula, occasionally called a "semi-structural formula"), which conveys additional information about the particular ways in which the atoms are
chemically bonded together, either in
covalent bonds,
ionic bonds, or various combinations of these types. This is possible if the relevant bonding is easy to show in one dimension. An example is the condensed molecular/chemical formula for
ethanol, which is or . However, even a condensed chemical formula is necessarily limited in its ability to show complex bonding relationships between atoms, especially atoms that have bonds to four or more different
substituents.
Since a chemical formula must be expressed as a single line of chemical
element symbols, it often cannot be as informative as a true structural formula, which is a graphical representation of the spatial relationship between atoms in chemical compounds (see for example the figure for butane structural and chemical formulae, at right). For reasons of structural complexity, a single condensed chemical formula (or semi-structural formula) may correspond to different molecules, known as
isomers. For example, glucose shares its
molecular formula with a number of other
sugars, including
fructose,
galactose and
mannose. Linear equivalent chemical ''names'' exist that can and do specify uniquely any complex structural formula (see
chemical nomenclature), but such names must use many terms (words), rather than the simple element symbols, numbers, and simple typographical symbols that define a chemical formula.
Chemical formulae may be used in
chemical equations to describe
chemical reaction
A chemical reaction is a process that leads to the chemistry, chemical transformation of one set of chemical substances to another. When chemical reactions occur, the atoms are rearranged and the reaction is accompanied by an Gibbs free energy, ...
s and other chemical transformations, such as the dissolving of ionic compounds into solution. While, as noted, chemical formulae do not have the full power of structural formulae to show chemical relationships between atoms, they are sufficient to keep track of numbers of atoms and numbers of electrical charges in chemical reactions, thus
balancing chemical equations so that these equations can be used in chemical problems involving conservation of atoms, and conservation of electric charge.
Overview
A chemical formula identifies each constituent
element by its
chemical symbol and indicates the proportionate number of atoms of each element. In empirical formulae, these proportions begin with a key element and then assign numbers of atoms of the other elements in the compound, by ratios to the key element. For molecular compounds, these ratio numbers can all be expressed as whole numbers. For example, the empirical formula of
ethanol may be written because the molecules of ethanol all contain two carbon atoms, six hydrogen atoms, and one oxygen atom. Some types of ionic compounds, however, cannot be written with entirely whole-number empirical formulae. An example is
boron carbide, whose formula of is a variable non-whole number ratio with n ranging from over 4 to more than 6.5.
When the chemical compound of the formula consists of simple
molecule
A molecule is a group of two or more atoms that are held together by Force, attractive forces known as chemical bonds; depending on context, the term may or may not include ions that satisfy this criterion. In quantum physics, organic chemi ...
s, chemical formulae often employ ways to suggest the structure of the molecule. These types of formulae are variously known as ''molecular formulae'' and ''
condensed formulae''. A molecular formula enumerates the number of atoms to reflect those in the molecule, so that the molecular formula for
glucose
Glucose is a sugar with the Chemical formula#Molecular formula, molecular formula , which is often abbreviated as Glc. It is overall the most abundant monosaccharide, a subcategory of carbohydrates. It is mainly made by plants and most algae d ...
is rather than the glucose empirical formula, which is . However, except for very simple substances, molecular chemical formulae lack needed structural information, and are ambiguous.
For simple molecules, a condensed (or semi-structural) formula is a type of chemical formula that may fully imply a correct structural formula. For example, ethanol may be represented by the condensed chemical formula , and
dimethyl ether by the condensed formula . These two molecules have the same empirical and molecular formulae (), but may be differentiated by the condensed formulae shown, which are sufficient to represent the full structure of these simple
organic compound
Some chemical authorities define an organic compound as a chemical compound that contains a carbon–hydrogen or carbon–carbon bond; others consider an organic compound to be any chemical compound that contains carbon. For example, carbon-co ...
s.
Condensed chemical formulae may also be used to represent
ionic compounds that do not exist as discrete molecules, but nonetheless do contain covalently bound clusters within them. These
polyatomic ions are groups of atoms that are covalently bound together and have an overall ionic charge, such as the
sulfate ion. Each polyatomic ion in a compound is written individually in order to illustrate the separate groupings. For example, the compound
dichlorine hexoxide has an empirical formula , and molecular formula , but in liquid or solid forms, this compound is more correctly shown by an ionic condensed formula , which illustrates that this compound consists of ions and ions. In such cases, the condensed formula only need be complex enough to show at least one of each ionic species.
Chemical formulae as described here are distinct from the far more complex chemical systematic names that are used in various systems of
chemical nomenclature. For example, one systematic name for glucose is (2''R'',3''S'',4''R'',5''R'')-2,3,4,5,6-pentahydroxyhexanal. This name, interpreted by the rules behind it, fully specifies glucose's structural formula, but the name is not a chemical formula as usually understood, and uses terms and words not used in chemical formulae. Such names, unlike basic formulae, may be able to represent full structural formulae without graphs.
Types
Empirical formula
In
chemistry
Chemistry is the scientific study of the properties and behavior of matter. It is a physical science within the natural sciences that studies the chemical elements that make up matter and chemical compound, compounds made of atoms, molecules a ...
, the
empirical formula of a chemical is a simple expression of the relative number of each type of atom or ratio of the elements in the compound. Empirical formulae are the standard for
ionic compounds, such as , and for macromolecules, such as . An empirical formula makes no reference to
isomerism, structure, or absolute number of atoms. The term ''empirical'' refers to the process of
elemental analysis, a technique of
analytical chemistry used to determine the relative percent composition of a pure chemical substance by element.
For example,
hexane has a molecular formula of , and (for one of its isomers, n-hexane) a structural formula , implying that it has a chain structure of 6
carbon
Carbon () is a chemical element; it has chemical symbol, symbol C and atomic number 6. It is nonmetallic and tetravalence, tetravalent—meaning that its atoms are able to form up to four covalent bonds due to its valence shell exhibiting 4 ...
atoms, and 14
hydrogen atoms. However, the empirical formula for hexane is . Likewise the empirical formula for
hydrogen peroxide, , is simply , expressing the 1:1 ratio of component elements.
Formaldehyde and
acetic acid have the same empirical formula, . This is also the molecular formula for formaldehyde, but acetic acid has double the number of atoms.
Like the other formula types detailed below, an empirical formula shows the number of elements in a molecule, and determines whether it is a
binary compound,
ternary compound,
quaternary compound, or has even more elements.
Molecular formula

Molecular formulae simply indicate the numbers of each type of atom in a molecule of a molecular substance. They are the same as empirical formulae for molecules that only have one atom of a particular type, but otherwise may have larger numbers. An example of the difference is the empirical formula for glucose, which is (''ratio'' 1:2:1), while its molecular formula is (''number of atoms'' 6:12:6). For water, both formulae are . A molecular formula provides more information about a molecule than its empirical formula, but is more difficult to establish.
Structural formula
In addition to indicating the number of atoms of each elementa molecule, a structural formula indicates how the atoms are organized, and shows (or implies) the
chemical bonds between the atoms. There are multiple types of structural formulas focused on different aspects of the molecular structure.
The two diagrams show two molecules which are
structural isomers of each other, since they both have the same molecular formula , but they have different structural formulas as shown.
Condensed formula
The
connectivity of a molecule often has a strong influence on its physical and chemical properties and behavior. Two molecules composed of the same numbers of the same types of atoms (i.e. a pair of
isomers) might have completely different chemical and/or physical properties if the atoms are connected differently or in different positions. In such cases, a
structural formula is useful, as it illustrates which atoms are bonded to which other ones. From the connectivity, it is often possible to deduce the approximate
shape of the molecule.
A condensed (or semi-structural) formula may represent the types and spatial arrangement of
bonds in a simple chemical substance, though it does not necessarily specify
isomers or complex structures. For example,
ethane consists of two carbon atoms single-bonded to each other, with each carbon atom having three hydrogen atoms bonded to it. Its chemical formula can be rendered as . In
ethylene there is a double bond between the carbon atoms (and thus each carbon only has two hydrogens), therefore the chemical formula may be written: , and the fact that there is a double bond between the carbons is implicit because carbon has a valence of four. However, a more explicit method is to write or less commonly . The two lines (or two pairs of dots) indicate that a
double bond connects the atoms on either side of them.
A
triple bond may be expressed with three lines () or three pairs of dots (), and if there may be ambiguity, a single line or pair of dots may be used to indicate a single bond.
Molecules with multiple
functional groups that are the same may be expressed by enclosing the repeated group in
round brackets. For example,
isobutane may be written . This condensed structural formula implies a different connectivity from other molecules that can be formed using the same atoms in the same proportions (
isomers). The formula implies a central carbon atom connected to one hydrogen atom and three
methyl groups (). The same number of atoms of each element (10 hydrogens and 4 carbons, or ) may be used to make a straight chain molecule, ''n''-
butane: .
Chemical names in answer to limitations of chemical formulae
The alkene called
but-2-ene has two isomers, which the chemical formula does not identify. The relative position of the two methyl groups must be indicated by additional notation denoting whether the methyl groups are on the same side of the double bond (''cis'' or ''Z'') or on the opposite sides from each other (''trans'' or ''E'').
As noted above, in order to represent the full structural formulae of many complex organic and inorganic compounds,
chemical nomenclature may be needed which goes well beyond the available resources used above in simple condensed formulae. See
IUPAC nomenclature of organic chemistry and
IUPAC nomenclature of inorganic chemistry 2005 for examples. In addition, linear naming systems such as
International Chemical Identifier (InChI) allow a computer to construct a structural formula, and
simplified molecular-input line-entry system (SMILES) allows a more human-readable ASCII input. However, all these nomenclature systems go beyond the standards of chemical formulae, and technically are chemical naming systems, not formula systems.
Polymers in condensed formulae
For
polymers in condensed chemical formulae, parentheses are placed around the repeating unit. For example, a
hydrocarbon molecule that is described as , is a molecule with fifty repeating units. If the number of repeating units is unknown or variable, the letter ''n'' may be used to indicate this formula: .
Ions in condensed formulae
For
ions, the charge on a particular atom may be denoted with a right-hand superscript. For example, , or . The total charge on a charged molecule or a
polyatomic ion may also be shown in this way, such as for
hydronium, , or
sulfate, . Here + and − are used in place of +1 and −1, respectively.
For more complex ions, brackets
are often used to enclose the ionic formula, as in , which is found in compounds such as
caesium dodecaborate, . Parentheses ( ) can be nested inside brackets to indicate a repeating unit, as in
Hexamminecobalt(III) chloride, . Here, indicates that the ion contains six
ammine groups () bonded to
cobalt, and
encloses the entire formula of the ion with charge +3.
This is strictly optional; a chemical formula is valid with or without ionization information, and Hexamminecobalt(III) chloride may be written as or . Brackets, like parentheses, behave in chemistry as they do in mathematics, grouping terms togetherthey are not specifically employed only for ionization states. In the latter case here, the parentheses indicate 6 groups all of the same shape, bonded to another group of size 1 (the cobalt atom), and then the entire bundle, as a group, is bonded to 3 chlorine atoms. In the former case, it is clearer that the bond connecting the chlorines is
ionic, rather than
covalent.
Isotopes
Although
isotopes are more relevant to
nuclear chemistry or
stable isotope chemistry than to conventional chemistry, different isotopes may be indicated with a prefixed
superscript in a chemical formula. For example, the phosphate ion containing radioactive phosphorus-32 is . Also a study involving stable isotope ratios might include the molecule .
A left-hand subscript is sometimes used redundantly to indicate the
atomic number. For example, for dioxygen, and for the most abundant isotopic species of dioxygen. This is convenient when writing equations for
nuclear reactions, in order to show the balance of charge more clearly.
Trapped atoms

The @ symbol (
at sign) indicates an atom or molecule trapped inside a cage but not chemically bound to it. For example, a
buckminsterfullerene () with an atom (M) would simply be represented as regardless of whether M was inside the fullerene without chemical bonding or outside, bound to one of the carbon atoms. Using the @ symbol, this would be denoted if M was inside the carbon network. A non-fullerene example is , an ion in which one
arsenic (As) atom is trapped in a cage formed by the other 32 atoms.
This notation was proposed in 1991
with the discovery of
fullerene cages (
endohedral fullerenes), which can trap atoms such as
La to form, for example, or . The choice of the symbol has been explained by the authors as being concise, readily printed and transmitted electronically (the at sign is included in
ASCII, which most modern character encoding schemes are based on), and the visual aspects suggesting the structure of an endohedral fullerene.
Non-stoichiometric chemical formulae
Chemical formulae most often use
integers for each element. However, there is a class of compounds, called
non-stoichiometric compounds, that cannot be represented by small integers. Such a formula might be written using
decimal fractions, as in , or it might include a variable part represented by a letter, as in , where ''x'' is normally much less than 1.
General forms for organic compounds
A chemical formula used for a series of compounds that differ from each other by a constant unit is called a ''general formula''. It generates a
homologous series of chemical formulae. For example,
alcohols may be represented by the formula (''n'' ≥ 1), giving the homologs
methanol,
ethanol,
propanol for 1 ≤ ''n'' ≤ 3.
Hill system
The Hill system (or Hill notation) is a system of writing empirical chemical formulae, molecular chemical formulae and components of a condensed formula such that the number of
carbon
Carbon () is a chemical element; it has chemical symbol, symbol C and atomic number 6. It is nonmetallic and tetravalence, tetravalent—meaning that its atoms are able to form up to four covalent bonds due to its valence shell exhibiting 4 ...
atom
Atoms are the basic particles of the chemical elements. An atom consists of a atomic nucleus, nucleus of protons and generally neutrons, surrounded by an electromagnetically bound swarm of electrons. The chemical elements are distinguished fr ...
s in a
molecule
A molecule is a group of two or more atoms that are held together by Force, attractive forces known as chemical bonds; depending on context, the term may or may not include ions that satisfy this criterion. In quantum physics, organic chemi ...
is indicated first, the number of
hydrogen atoms next, and then the number of all other
chemical element
A chemical element is a chemical substance whose atoms all have the same number of protons. The number of protons is called the atomic number of that element. For example, oxygen has an atomic number of 8: each oxygen atom has 8 protons in its ...
s subsequently, in
alphabetical order of the
chemical symbols. When the formula contains no carbon, all the elements, including hydrogen, are listed alphabetically.
By sorting formulae according to the number of atoms of each element present in the formula according to these rules, with differences in earlier elements or numbers being treated as more significant than differences in any later element or number—like sorting text strings into
lexicographical order—it is possible to
collate chemical formulae into what is known as Hill system order.
The Hill system was first published by
Edwin A. Hill of the
United States Patent and Trademark Office in 1900.
It is the most commonly used system in chemical databases and printed indexes to sort lists of compounds.
[Wiggins, Gary. (1991). ''Chemical Information Sources.'' New York: McGraw Hill. p. 120.]
A list of formulae in Hill system order is arranged alphabetically, as above, with single-letter elements coming before two-letter symbols when the symbols begin with the same letter (so "B" comes before "Be", which comes before "Br").
The following example formulae are written using the Hill system, and listed in Hill order:
* BrClH
2Si
* BrI
* CCl
4
* CH
3I
* C
2H
5Br
* H
2O
4S
See also
*
Formula unit
*
Glossary of chemical formulae
*
Nuclear notation
*
Periodic table
*
Skeletal formula
The skeletal formula, line-angle formula, bond-line formula or shorthand formula of an organic compound is a type of minimalist structural formula representing a molecule's Atom, atoms, structural isomer, bonds and some details of its molecular ...
*
Simplified molecular-input line-entry system
Notes
References
*
External links
*
Hill notation example from the University of Massachusetts Lowell libraries, including how to sort into Hill system order
Molecular formula calculation applying Hill notation The library calculating Hill notation i
available on npm
{{DEFAULTSORT:Chemical Formula
Chemical nomenclature
Notation