Skip to main content
Chemistry LibreTexts

3.5: Ionic and Covalent Compounds

[ "article:topic", "showtoc:no" ]
  • Page ID
    98533
  • Skills to Develop

    • Define ionic and covalent (molecular) compounds
    • Predict the type of compound formed from elements based on their location within the periodic table
    • Determine formulas for simple ionic 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.

    The nature of the attractive forces that hold atoms or ions together within a compound is the basis for classifying chemical bonding. During the formation of some compounds, atoms gain or lose electrons, and form electrically charged particles called ions (Figure \(\PageIndex{1}\)). When this occurs, ionic bonds result. Ionic bonds are electrostatic forces of attraction, that is, the attractive forces experienced between objects of opposite electrical charge (in this case, cations and anions). When electrons are “shared” and molecules form, covalent bonds 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.

    Figure A shows a sodium atom, N a, which has a nucleus containing 11 protons and 12 neutrons. The atom’s surrounding electron cloud contains 11 electrons. Figure 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 figure A.

    Figure \(\PageIndex{1}\): (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.

    Ion Formation

    You can use the periodic table to predict whether an atom will form an anion or a cation, and you can often predict the charge of the resulting ion. Atoms of many main-group metals (not the transition metals) lose enough electrons to leave them with the same number of electrons as an atom of the preceding noble gas. To illustrate, an atom of an alkali metal (group 1) loses one electron and forms a cation with a 1+ charge; an alkaline earth metal (group 2) loses two electrons and forms a cation with a 2+ charge, and so on. For example, a neutral calcium atom, with 20 protons and 20 electrons, readily loses two electrons. This results in a cation with 20 protons, 18 electrons, and a 2+ charge. It has the same number of electrons as atoms of the preceding noble gas, argon, and is symbolized Ca2+. The name of a metal ion is the same as the name of the metal atom from which it forms, so Ca2+ is called a calcium ion.

    When atoms of nonmetal elements form ions, they generally gain enough electrons to give them the same number of electrons as an atom of the next noble gas in the periodic table. Atoms of group 17 gain one electron and form anions with a 1− charge; atoms of group 16 gain two electrons and form ions with a 2− charge, and so on. For example, the neutral bromine atom, with 35 protons and 35 electrons, can gain one electron to provide it with 36 electrons. This results in an anion with 35 protons, 36 electrons, and a 1− charge. It has the same number of electrons as atoms of the next noble gas, krypton, and is symbolized Br. (A discussion of the theory supporting the favored status of noble gas electron numbers reflected in these predictive rules for ion formation is provided in a later chapter of this text.)

    Note the usefulness of the periodic table in predicting likely ion formation and charge (Figure \(\PageIndex{2}\)). Moving from the far left to the right on the periodic table, main-group elements tend to form cations with a charge equal to the group number. That is, group 1 elements form 1+ ions; group 2 elements form 2+ ions, and so on. Moving from the far right to the left on the periodic table, elements often form anions with a negative charge equal to the number of groups moved left from the noble gases. For example, group 17 elements (one group left of the noble gases) form 1− ions; group 16 elements (two groups left) form 2− ions, and so on. This trend can be used as a guide in many cases, but its predictive value decreases when moving toward the center of the periodic table. In fact, transition metals and some other metals often exhibit variable charges that are not predictable by their location in the table. For example, copper can form ions with a 1+ or 2+ charge, and iron can form ions with a 2+ or 3+ charge.

    Group one of the periodic table contains L i superscript plus sign in period 2, N a superscript plus sign in period 3, K superscript plus sign in period 4, R b superscript plus sign in period 5, C s superscript plus sign in period 6, and F r superscript plus sign in period 7. Group two contains B e superscript 2 plus sign in period 2, M g superscript 2 plus sign in period 3, C a superscript 2 plus sign in period 4, S r superscript 2 plus sign in period 5, B a superscript 2 plus sign in period 6, and R a superscript 2 plus sign in period 7. Group six contains C r superscript 3 plus sign and C r superscript 6 plus sign in period 4. Group seven contains M n superscript 2 plus sign in period 4. Group eight contains F e superscript 2 plus sign and F e superscript 3 plus sign in period 4. Group nine contains C o superscript 2 plus sign in period 4. Group ten contains N i superscript 2 plus sign in period 4, and P t superscript 2 plus sign in period 6. Group 11 contains C U superscript plus sign and C U superscript 2 plus sign in period 4, A g superscript plus sign in period 5, and A u superscript plus sign and A u superscript 3 plus sign in period 6. Group 12 contains Z n superscript 2 plus sign in period 4, C d superscript 2 plus sign in period 5, and H g subscript 2 superscript 2 plus sign and H g superscript 2 plus sign in period 6. Group 13 contains A l superscript 3 plus sign in period 3. Group 14 contains C superscript 4 negative sign in period 2. Group 15 contains N superscript 3 negative sign in period 2, P superscript 3 negative sign in period 3, and A s superscript 3 negative sign in period 4. Group 16 contains O superscript 2 negative sign in period 2, S superscript 2 negative sign in period 3, S e superscript 2 negative sign in period 4 and T e superscript 2 negative sign in period 5. Group 17 contains F superscript negative sign in period 2, C l superscript negative sign in period 3, B r superscript negative sign in period 4, I superscript negative sign in period 5, and A t superscript negative sign in period 6. Group 18 contains H e in period 1, N e in period 2, A r in period 3, K r in period 4, X e in period 5 and R n in period 6.

    Figure \(\PageIndex{2}\): Some elements exhibit a regular pattern of ionic charge when they form ions.

    Example \(\PageIndex{1}\): Composition of Ions

    An ion found in some compounds used as antiperspirants contains 13 protons and 10 electrons. What is its symbol?

    Solution

    Because the number of protons remains unchanged when an atom forms an ion, the atomic number of the element must be 13. Knowing this lets us use the periodic table to identify the element as Al (aluminum). The Al atom has lost three electrons and thus has three more positive charges (13) than it has electrons (10). This is the aluminum cation, Al3+.

    Exercise \(\PageIndex{1}\)

    Give the symbol and name for the ion with 34 protons and 36 electrons.

    Answer

    Se2−, the selenide ion

    Example \(\PageIndex{2}\): Formation of Ions

    Magnesium and nitrogen react to form an ionic compound. Predict which forms an anion, which forms a cation, and the charges of each ion. Write the symbol for each ion and name them.

    Solution

    Magnesium’s position in the periodic table (group 2) tells us that it is a metal. Metals form positive ions (cations). A magnesium atom must lose two electrons to have the same number electrons as an atom of the previous noble gas, neon. Thus, a magnesium atom will form a cation with two fewer electrons than protons and a charge of 2+. The symbol for the ion is Mg2+, and it is called a magnesium ion.

    Nitrogen’s position in the periodic table (group 15) reveals that it is a nonmetal. Nonmetals form negative ions (anions). A nitrogen atom must gain three electrons to have the same number of electrons as an atom of the following noble gas, neon. Thus, a nitrogen atom will form an anion with three more electrons than protons and a charge of 3−. The symbol for the ion is N3−, and it is called a nitride ion.

    Exercise \(\PageIndex{2}\)

    Aluminum and carbon react to form an ionic compound. Predict which forms an anion, which forms a cation, and the charges of each ion. Write the symbol for each ion and name them.

    Answer

    Al will form a cation with a charge of 3+: Al3+, an aluminum ion. Carbon will form an anion with a charge of 4−: C4−, a carbide ion.

    The ions that we have discussed so far are called monatomic ions, that is, they are ions formed from only one atom. We also find many polyatomic ions. These ions, which act as discrete units, are electrically charged molecules (a group of bonded atoms with an overall charge). Some of the more important polyatomic ions are listed in Table \(\PageIndex{1}\). Oxyanions are polyatomic ions that contain one or more oxygen atoms. At this point in your study of chemistry, you should memorize the names, formulas, and charges of the most common polyatomic ions. Because you will use them repeatedly, they will soon become familiar.

    Table \(\PageIndex{1}\): Common Polyatomic Ions
    Name Formula Related Acid Formula
    ammonium \(\ce{NH4+}\)    
    hydronium \(\ce{H_3O^+}\)    
    oxide \(\ce{O^{2-}}\)    
    peroxide \(\ce{O_2^{2-}}\)    
    hydroxide \(\ce{OH^-}\)    
    acetate \(\ce{CH_3COO^-}\) acetic acid \(\ce{CH_3COOH}\)
    cyanide \(\ce{CN^-}\) hydrocyanic acid \(\ce{HCN}\)
    azide \(\ce{N_3^-}\) hydrazoic acid \(\ce{HN_3}\)
    carbonate \(\ce{CO_3^{2-}}\) carbonic acid \(\ce{H_2CO_3}\)
    bicarbonate \(\ce{HCO_3^-}\)    
    nitrate \(\ce{NO_3^-}\) nitric acid \(\ce{HNO_3}\)
    nitrite \(\ce{NO_2^-}\) nitrous acid \(\ce{HNO_2}\)
    sulfate \(\ce{SO_4^{2-}}\) sulfuric acid \(\ce{H_2SO_4}\)
    hydrogen sulfate \(\ce{HSO_4^-}\)    
    sulfite \(\ce{SO_3^{2-}}\) sulfurous acid \(\ce{H_2SO_3}\)
    hydrogen sulfite \(\ce{HSO_3^-}\)    
    phosphate \(\ce{PO_4^{3-}}\) phosphoric acid \(\ce{H_3PO_4}\)
    hydrogen phosphate \(\ce{HPO_4^{2-}}\)    
    dihydrogen phosphate \(\ce{H_2PO_4^-}\)    
    perchlorate \(\ce{ClO_4^-}\) perchloric acid \(\ce{HClO_4}\)
    chlorate \(\ce{ClO_3^-}\) chloric acid \(\ce{HClO_3}\)
    chlorite \(\ce{ClO_2^-}\) chlorous acid \(\ce{HClO_2}\)
    hypochlorite \(\ce{ClO^-}\) hypochlorous acid \(\ce{HClO}\)
    chromate \(\ce{CrO_4^{2-}}\) chromic acid \(\ce{H_2CrO_4}\)
    dichromate \(\ce{Cr_2O_7^{2-}}\) dichromic acid \(\ce{H_2Cr_2O7}\)
    permanganate \(\ce{MnO_4^-}\) permanganic acid \(\ce{HMnO_4}\)

    Note that there is a system for naming some polyatomic ions; -ate and -ite are suffixes designating polyatomic ions containing more or fewer oxygen atoms. Per- (short for “hyper”) and hypo- (meaning “under”) are prefixes meaning more oxygen atoms than -ate and fewer oxygen atoms than -ite, respectively. For example, perchlorate is \(\ce{ClO4-}\), chlorate is \(\ce{ClO3-}\), chlorite is \(\ce{ClO2-}\) and hypochlorite is ClO. Unfortunately, the number of oxygen atoms corresponding to a given suffix or prefix is not consistent; for example, nitrate is \(\ce{NO3-}\) while sulfate is \(\ce{SO4^{2-}}\). This will be covered in more detail in the next module on nomenclature.

    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. The compound formed by this transfer is stabilized by the electrostatic attractions (ionic bonds) between the ions of opposite charge present in the compound. For example, when each sodium atom in a sample of sodium metal (group 1) gives up one electron to form a sodium cation, Na+, and each chlorine atom in a sample of chlorine gas (group 17) accepts one electron to form a chloride anion, Cl, the resulting compound, NaCl, is composed of sodium ions and chloride ions in the ratio of one Na+ ion for each Cl ion. Similarly, each calcium atom (group 2) can give up two electrons and transfer one to each of two chlorine atoms to form CaCl2, which is composed of Ca2+ and Cl ions in the ratio of one Ca2+ ion to two Cl ions.

    A compound that contains ions and is held together by ionic bonds is called an ionic compound. 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. This guideline works well for predicting ionic compound formation for most of the compounds typically encountered in an introductory chemistry course. 

    You can often recognize ionic compounds because of their properties. Ionic compounds are solids that typically melt at high temperatures and boil at even higher temperatures. For example, sodium chloride melts at 801 °C and boils at 1413 °C. (As a comparison, the molecular compound water melts at 0 °C and boils at 100 °C.) In solid form, an ionic compound is not electrically conductive because its ions are unable to flow (“electricity” is the flow of charged particles). When molten, however, it can conduct electricity because its ions are able to move freely through the liquid (Figure \(\PageIndex{3}\)).

    This figure shows three photos connected by right-facing arrows. The first shows a light bulb as part of a complex lab equipment setup. The light bulb is not lit. The second photo shows a substances being heated or set on fire. The third shows the light bulb again which is lit.

    Figure \(\PageIndex{3}\): Sodium chloride melts at 801 °C and conducts electricity when molten. (credit: modification of work by Mark Blaser and Matt Evans)

    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.

    Example \(\PageIndex{3}\): Predicting the Formula of an Ionic Compound

    The gemstone sapphire (Figure \(\PageIndex{4}\)) is mostly a compound of aluminum and oxygen that contains aluminum cations, Al3+, and oxygen anions, O2−. What is the formula of this compound?

    This is a photograph of a ring with a sapphire set in it.

    Figure \(\PageIndex{4}\): Although pure aluminum oxide is colorless, trace amounts of iron and titanium give blue sapphire its characteristic color. (credit: modification of work by Stanislav Doronenko)

    Solution Because the ionic compound must be electrically neutral, it must have the same number of positive and negative charges. Two aluminum ions, each with a charge of 3+, would give us six positive charges, and three oxide ions, each with a charge of 2−, would give us six negative charges. The formula would be Al2O3.

    Exercise \(\PageIndex{3}\)

    Predict the formula of the ionic compound formed between the sodium cation, Na+, and the sulfide anion, S2−.

    Answer

    Na2S

    Many ionic compounds contain polyatomic ions (Table \(\PageIndex{1}\)) as the cation, the anion, or both. As with simple ionic compounds, these compounds must also be electrically neutral, so their formulas can be predicted by treating the polyatomic ions as discrete units. We use parentheses in a formula to indicate a group of atoms that behave as a unit. For example, the formula for calcium phosphate, one of the minerals in our bones, is Ca3(PO4)2. This formula indicates that there are three calcium ions (Ca2+) for every two phosphate \(\left(\ce{PO4^{3-}}\right)\) groups. The \(\ce{PO4^{3-}}\) groups are discrete units, each consisting of one phosphorus atom and four oxygen atoms, and having an overall charge of 3−. The compound is electrically neutral, and its formula shows a total count of three Ca, two P, and eight O atoms.

    Example \(\PageIndex{4}\): Predicting the Formula of a Compound with a Polyatomic Anion

    Baking powder contains calcium dihydrogen phosphate, an ionic compound composed of the ions Ca2+ and \(\ce{H2PO4-}\). What is the formula of this compound?

    Solution

    The positive and negative charges must balance, and this ionic compound must be electrically neutral. Thus, we must have two negative charges to balance the 2+ charge of the calcium ion. This requires a ratio of one Ca2+ ion to two \(\ce{H2PO4-}\) ions. We designate this by enclosing the formula for the dihydrogen phosphate ion in parentheses and adding a subscript 2. The formula is Ca(H2PO4)2.

    Exercise \(\PageIndex{4}\)

    Predict the formula of the ionic compound formed between the lithium ion and the peroxide ion, \(\ce{O2^2-}\) (Hint: Use the periodic table to predict the sign and the charge on the lithium ion.)

    Answer

    Li2O2

    Because an ionic compound is not made up of single, discrete molecules, it may not be properly symbolized using a molecular formula. Instead, ionic compounds must be symbolized by a formula indicating the relative numbers of its constituent ions. For compounds containing only monatomic ions (such as NaCl) and for many compounds containing polyatomic ions (such as CaSO4), these formulas are just the empirical formulas introduced earlier in this chapter. However, the formulas for some ionic compounds containing polyatomic ions are not empirical formulas. For example, the ionic compound sodium oxalate is comprised of Na+ and \(\ce{C2O4^2-}\) ions combined in a 2:1 ratio, and its formula is written as Na2C2O4. The subscripts in this formula are not the smallest-possible whole numbers, as each can be divided by 2 to yield the empirical formula, NaCO2. This is not the accepted formula for sodium oxalate, however, as it does not accurately represent the compound’s polyatomic anion, \(\ce{C2O4^2-}\).

    Molecular Compounds

    Many compounds do not contain ions but instead consist solely of discrete, neutral molecules. These covalent compounds (molecular compounds) 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. Thus, the periodic table can help us recognize many of the compounds that are covalent. While we can use the positions of a compound’s elements in the periodic table to predict whether it is ionic or covalent at this point in our study of chemistry, you should be aware that this is a very simplistic approach that does not account for a number of interesting exceptions. Shades of gray exist between ionic and molecular compounds, and you’ll learn more about those later.

    Example \(\PageIndex{5}\): Predicting the Type of Bonding in Compounds

    Predict whether the following compounds are ionic or molecular:

    1. KI, the compound used as a source of iodine in table salt
    2. H2O2, the bleach and disinfectant hydrogen peroxide
    3. CHCl3, the anesthetic chloroform
    4. Li2CO3, a source of lithium in antidepressants

    Solution

    1. Potassium (group 1) is a metal, and iodine (group 17) is a nonmetal; KI is predicted to be ionic.
    2. Hydrogen (group 1) is a nonmetal, and oxygen (group 16) is a nonmetal; H2O2 is predicted to be molecular.
    3. Carbon (group 14) is a nonmetal, hydrogen (group 1) is a nonmetal, and chlorine (group 17) is a nonmetal; CHCl3 is predicted to be molecular.
    4. Lithium (group 1) is a metal, and carbonate is a polyatomic ion; Li2CO3 is predicted to be ionic.

    Exercise \(\PageIndex{5}\)

    Using the periodic table, predict whether the following compounds are ionic or covalent:

    1. SO2
    2. CaF2
    3. N2H4
    4. Al2(SO4)3
    Answer a

    molecular

    Answer b

    ionic

    Answer c

    molecular

    Answer d

    ionic

    Summary

    Metals (particularly those in groups 1 and 2) tend to lose the number of electrons that would leave them with the same number of electrons as in the preceding noble gas in the periodic table. By this means, a positively charged ion is formed. Similarly, nonmetals (especially those in groups 16 and 17, and, to a lesser extent, those in Group 15) can gain the number of electrons needed to provide atoms with the same number of electrons as in the next noble gas in the periodic table. Thus, nonmetals tend to form negative ions. Positively charged ions are called cations, and negatively charged ions are called anions. Ions can be either monatomic (containing only one atom) or polyatomic (containing more than one atom).

    Compounds that contain ions are called ionic compounds. Ionic compounds generally form from metals and nonmetals. Compounds that do not contain ions, but instead consist of atoms bonded tightly together in molecules (uncharged groups of atoms that behave as a single unit), are called covalent compounds. Covalent compounds usually form from two or more nonmetals.

    Glossary

    covalent bond
    attractive force between the nuclei of a molecule’s atoms and pairs of electrons between the atoms
    covalent compound
    (also, molecular compound) composed of molecules formed by atoms of two or more different elements
    ionic bond
    electrostatic forces of attraction between the oppositely charged ions of an ionic compound
    ionic compound
    compound composed of cations and anions combined in ratios, yielding an electrically neutral substance
    molecular compound
    (also, covalent compound) composed of molecules formed by atoms of two or more different elements
    monatomic ion
    ion composed of a single atom
    polyatomic ion
    ion composed of more than one atom
    oxyanion
    polyatomic anion composed of a central atom bonded to oxygen atoms

    Contributors