3.3 Compounds and Formulas

Learning Objectives

By the end of this section, you will be able to:

  • Define molecular and structural formulas
  • Define ionic and molecular (covalent) compounds
  • Determine the number of atoms of each element in a compound

Chemical Formulae

A is a representation of a molecule that uses chemical symbols to indicate the types of atoms followed by subscripts to show the number of atoms of each type in the molecule. (A subscript is used only when more than one atom of a given type is present.) Molecular formulas are also used as abbreviations for the names of compounds.

The for a compound gives the same information as its molecular formula (the types and numbers of atoms in the molecule) but also shows how the atoms are connected in the molecule. The structural formula for methane contains symbols for one C atom and four H atoms, indicating the number of atoms in the molecule (Figure 3.3a). The lines represent bonds that hold the atoms together. (A chemical bond is an attraction between atoms or ions that holds them together in a molecule or a crystal.) We will discuss chemical bonds and see how to predict the arrangement of atoms in a molecule later. For structural formula now, simply know that the lines are an indication of how the atoms are connected in a molecule. A ball-and-stick model shows the geometric arrangement of the atoms with atomic sizes not to scale, and a space-filling model shows the relative sizes of the atoms.

Figure A shows C H subscript 4. Figure B shows a carbon atom that is bonded to four hydrogen atoms at right angles: one above, one to the left, one to the right, and one below. Figure C shows a 3-D, ball-and-stick model of the carbon atom bonded to four hydrogen atoms. Figure D shows a space-filling model of a carbon atom with hydrogen atoms partially embedded into the surface of the carbon atom.
Figure 3.3a A methane molecule can be represented as (a) a molecular formula, (b) a structural formula, (c) a ball-and-stick model, and (d) a space-filling model. Carbon and hydrogen atoms are represented by black and white spheres, respectively (credit: Chemistry (OpenStax), CC BY 4.0).

Although many elements consist of discrete, individual atoms, some exist as molecules made up of two or more atoms of the element chemically bonded together. For example, most samples of the elements hydrogen, oxygen, and nitrogen are composed of molecules that contain two atoms each (called ) and thus have the molecular formulas H2, O2, and N2, respectively. Other elements commonly found as diatomic molecules are fluorine (F2), chlorine (Cl2), bromine (Br2), and iodine (I2). The most common form of the element sulfur is composed of molecules that consist of eight atoms of sulfur; its molecular formula is S8 (Figure 3.3b).

Figure A shows eight sulfur atoms, symbolized with the letter S, that are bonded to each other to form an octagon. Figure B shows a 3-D, ball-and-stick model of the arrangement of the sulfur atoms. The shape is clearly not octagonal as it is represented in the structural formula. Figure C is a space-filling model that shows each sulfur atom is partially embedded into the sulfur atom it bonds with.
Figure 3.3b A molecule of sulfur is composed of eight sulfur atoms and is therefore written as S8. It can be represented as (a) a structural formula, (b) a ball-and-stick model, and (c) a space-filling model. Sulfur atoms are represented by yellow spheres (credit: Chemistry (OpenStax), CC BY 4.0).

It is important to note that a subscript following a symbol and a number in front of a symbol do not represent the same thing; for example, H2 and 2H represent distinctly different species. H2 is a molecular formula; it represents a diatomic molecule of hydrogen, consisting of two atoms of the element that are chemically bonded together. The expression 2H, on the other hand, indicates two separate hydrogen atoms that are not combined as a unit. The expression 2H2 represents two molecules of diatomic hydrogen (Figure 3.3c.).

This figure shows four diagrams. The diagram for H shows a single, white sphere and is labeled one H atom. The diagram for 2 H shows two white spheres that are not bonded together. It is labeled 2 H atoms. The diagram for H subscript 2 shows two white spheres bonded together. It is labeled one H subscript 2 molecule. The diagram for 2 H subscript 2 shows two sets of bonded, white spheres. It is labeled 2 H subscript 2 molecules.
Figure 3.3c The symbols H, 2H, H2, and 2H2 represent very different entities (credit: Chemistry (OpenStax), CC BY 4.0).

are formed when two or more elements chemically combine, resulting in the formation of bonds. For example, hydrogen and oxygen can react to form water, and sodium and chlorine can react to form table salt.

As discussed previously, we can describe a compound with a molecular formula, in which the subscripts indicate the actual numbers of atoms of each element in a molecule of the compound.  For example, it can be determined experimentally that benzene contains two elements, carbon (C) and hydrogen (H), and that for every carbon atom in benzene, there is one hydrogen atom. An experimental determination of the molecular mass reveals that a molecule of benzene contains six carbon atoms and six hydrogen atoms, so the molecular formula for benzene is C6H6 (Figure 3.3d).

Figure A shows that benzene is composed of six carbons shaped like a hexagon. Every other bond between the carbon atoms is a double bond. Each carbon also has a single bonded hydrogen atom. Figure B shows a 3-D, ball-and-stick drawing of benzene. The six carbon atoms are black spheres while the six hydrogen atoms are smaller, white spheres. Figure C is a space-filling model of benzene which shows that most of the interior space is occupied by the carbon atoms. The hydrogen atoms are embedded in the outside surface of the carbon atoms. Figure d shows a small vial filled with benzene which appears to be clear.
Figure 3.3d Benzene, C6H6, is produced during oil refining and has many industrial uses. A benzene molecule can be represented as (a) a structural formula, (b) a ball-and-stick model, and (c) a space-filling model. (d) Benzene is a clear liquid. (credit d: modification of work by Sahar Atwa in Chemistry (OpenStax), CC BY 4.0)
Two circles with dots inside each is pictured. The left circle has individual green dots in the center which represent individual elements in the atomic structure. The right circle has paired blue dots in the center which represent the molecular state when individual elements combine.
Figure 3.3e The figure illustrates the difference in the atomic structure of an element. (credit: modification of work by Hoa112008, PD; / Adapted by Revathi Mahadevan, CC BY 4.0).
There are three chemical formulas stacked in a vertical line. At the top it represents K F. The two elements potassium, symbol K, and fluorine, symbol F combined to form K F. K F represents one potassium atom and one fluorine atom. The middle chemical formula is H subscript 3 P O subscript 4. For this compound, there are three hydrogen, symbol H, atoms, one phosphorous, symbol P, atom and four oxygen, symbol O atoms. At the bottom is A l subscript 2 ( C O subscript 3 ) subscript 3. For this compound, there are two aluminum atoms, three carbon atoms and nine oxygen atoms.
Figure 3.3f Breakdown of compounds. (credit: graphic by Revathi Mahadevan, CC BY 4.0)

Example 3.3a

Molecular Formulas

Molecules of glucose (blood sugar) contain 6 carbon atoms, 12 hydrogen atoms, and 6 oxygen atoms. What is the molecular formula of glucose?


The molecular formula is C6H12O6 because one molecule actually contains 6 C, 12 H, and 6 O atoms.

Exercise 3.3a

A molecule of metaldehyde (a pesticide used for snails and slugs) contains 8 carbon atoms, 16 hydrogen atoms, and 4 oxygen atoms. What is the molecular formula of metaldehyde?

Check Your Answer[1]

It is important to be aware that it may be possible for the same atoms to be arranged in different ways: Compounds with the same molecular formula may have different atom-to-atom bonding and therefore different structures.

Example 3.3b

Determine the number of atoms of each element and the total number of atoms for the compound AlCl3 ?


1 Al atom

3 Cl atoms

Total number of atoms in AlCl3 is 4 atoms since 1 Al atom + 3 Cl atoms = 4 total atoms

Source: “Example 3.3b” by Adrienne Richards is licensed under CC BY NC 4.0.

Example 3.3c

How many atoms of each element and the total number of atoms are present in the compound CaCO3?


1 Ca

1 C

3 O

The total number of atoms in CaCO3 is 5 since 1 Ca + 1 C + 3 O = 5 atoms.

Source: “Example 3.3c” by Adrienne Richards is licensed under CC BY NC 4.0.

The Formation of Chemical Compounds

In ordinary chemical reactions, the nucleus of each atom (and thus the identity of the element) remains unchanged. Electrons, however, can be added to atoms by transfer from other atoms, lost by transfer to other atoms, or shared with other atoms. The transfer and sharing of electrons among atoms govern the chemistry of the elements. During the formation of some compounds, atoms gain or lose electrons, and form electrically charged particles called (Figure 3.3e).

Two purple circles representing atoms, each with a small red central dot representing its nucleus, are pictured. The left circle labelled A shows a sodium atom, N a, which has a nucleus containing 11 protons and 12 neutrons. The atom’s surrounding electron cloud shaded purple contains 11 electrons. The right circle labelled B shows a sodium ion, N a superscript plus sign. Its nucleus contains 11 protons and 12 neutrons. The ion’s electron cloud contains 10 electrons and is smaller than that of the sodium atom in pictured in A.
Figure 3.3g (a) A sodium atom (Na) has equal numbers of protons and electrons (11) and is uncharged. (b) A sodium cation (Na+) has lost an electron, so it has one more proton (11) than electrons (10), giving it an overall positive charge, signified by a superscripted plus sign (credit: Chemistry (OpenStax), CC BY 4.0).

The nature of the attractive forces that hold atoms or ions together within a compound is the basis for classifying chemical bonding. When electrons are transferred and ions form, result. Ionic bonds are electrostatic forces of attraction, that is, the attractive forces experienced between objects of opposite electrical charge (in this case, and ). When electrons are “shared” and molecules form, result. Covalent bonds are the attractive forces between the positively charged nuclei of the bonded atoms and one or more pairs of electrons that are located between the atoms. Compounds are classified as ionic or molecular (covalent) on the basis of the bonds present in them.

Two circles with molecules inside each is pictured. In the left circle there are seven of the same molecules and is labelled as molecular. Each molecule has a large red ball in the middle with two small grey balls attached. In the right circle there is an image of an ionic compound structure. This is represented by purple and blue balls held together in a cube formation.
Figure 3.3h The figure illustrates the difference in atomic structure in a compound. (credit: graphic by Revathi Mahadevan, CC BY 4.0)

Ionic Compounds

When an element composed of atoms that readily lose electrons (a metal) reacts with an element composed of atoms that readily gain electrons (a nonmetal), a transfer of electrons usually occurs, producing ions. A compound that contains ions and is held together by ionic bonds is called an . The periodic table can help us recognize many of the compounds that are ionic: When a metal is combined with one or more nonmetals, the compound is usually ionic.

Watch Conductivity molten salt (1 mins)

Video source: Ashkenazi, G. (2012, November 15). Conductivity molten salt [Video]. YouTube.

In every ionic compound, the total number of positive charges of the cations equals the total number of negative charges of the anions. Thus, ionic compounds are electrically neutral overall, even though they contain positive and negative ions. We can use this observation to help us write the formula of an ionic compound. The formula of an ionic compound must have a ratio of ions such that the numbers of positive and negative charges are equal.

Molecular Compounds

Many compounds do not contain ions but instead consist solely of discrete, neutral molecules. These () result when atoms share, rather than transfer (gain or lose), electrons. Covalent bonding is an important and extensive concept in chemistry, and it will be treated in considerable detail in a later chapter of this text. We can often identify molecular compounds on the basis of their physical properties. Under normal conditions, molecular compounds often exist as gases, low-boiling liquids, and low-melting solids, although many important exceptions exist.

Whereas ionic compounds are usually formed when a metal and a nonmetal combine, covalent compounds are usually formed by a combination of nonmetals.

Scientists in Action: Dr. Uma Chowdhry

Photograph of Dr. Uma Chowdhry lecturing at a podium.
Figure 3.3i Dr. Uma Chowdhry (credit: Photo by Science History Institute, CC BY-SA 3.0)

Dr. Uma Chowdhry is a retired senior vice president and chief science and technology officer for DuPont, where she worked from 1977 to 2010. She was born in Mumbai, then came to the U.S. for her Masters Degree from Caltech and her PhD in material science from MIT.

Dr. Chowdhry started as a research scientist for Dupont and, throughout her career, she was responsible for overseeing a large number of projects. In 1987 the research efforts she led in ceramic superconducting materials generated over 20 patents and 50 publications.

There is a very good chance you own something that relies on materials and technology developed by DuPont during Dr. Chowdhry’s time.

See Dr. Chowdhry talking more about her life in Women in Chemistry: Uma Chowdhry [New Tab].

Links to Interactive Learning Tools

Attribution & References

Except where otherwise noted, this section is adapted by Adrienne Richards from:

  1. Molecular formula, C8H16O4


Icon for the Creative Commons Attribution 4.0 International License

Enhanced Introductory College Chemistry Copyright © 2023 by Gregory Anderson; Caryn Fahey; Jackie MacDonald; Adrienne Richards; Samantha Sullivan Sauer; J.R. van Haarlem; and David Wegman is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book