Skip to main content
Chemistry LibreTexts

3.8: Formulas of Ionic Compounds

  • Page ID
    86603
    • Anonymous
    • LibreTexts

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Write the chemical formula for a simple ionic compound based on the charges of the cations and anions in the compound.

    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.

    Ionic Compounds Formed From Monoatomic Ions

    Consider an Na atom in the presence of a Cl atom. The two atoms have these Lewis electron dot diagrams and electron configurations:

    \[\mathbf{Na\, \cdot }\; \; \; \; \; \; \; \; \; \; \mathbf{\cdot }\mathbf{\ddot{\underset{.\: .}Cl}}\mathbf{\: :}\nonumber \]

    \[\left [ Ne \right ]3s^{1}\; \; \; \; \left [ Ne \right ]3s^{2}3p^{5}\nonumber \]

    For the Na atom to obtain an octet, it must lose an electron; for the Cl atom to obtain an octet, it must gain an electron. An electron transfers from the Na atom to the Cl atom:

    \[\mathbf{Na\, \cdot }\curvearrowright \mathbf{\cdot }\mathbf{\ddot{\underset{.\: .}Cl}}\mathbf{\: :}\nonumber \]

    resulting in two ions—the Na+ ion and the Cl ion:

    \[\mathbf{Na\, \cdot }^{+}\; \; \; \; \; \; \; \; \mathbf{:}\mathbf{\ddot{\underset{.\: .}Cl}}\mathbf{\: :}^{-}\nonumber \]

    \[\left [ Ne \right ]\; \; \; \; \; \left [ Ne \right ]3s^{2}3p^{6}\nonumber \]

    Both species now have complete octets, and the electron shells are energetically stable. From basic physics, we know that opposite charges attract. This is what happens to the Na+ and Cl ions:

    \[\mathbf{Na\, \cdot }^{+}\; + \; \mathbf{:}\mathbf{\ddot{\underset{.\: .}Cl}}\mathbf{\: :}^{-}\rightarrow Na^{+}Cl^{-}\; \; or\; \; NaCl\nonumber \]

    where we have written the final formula (the formula for sodium chloride) as per the convention for ionic compounds, without listing the charges explicitly. As explained previously, the attraction between oppositely charged ions is called an ionic bond.

    In electron transfer, the number of electrons lost must equal the number of electrons gained. We saw this in the formation of NaCl. A similar process occurs between Mg atoms and O atoms, except in this case two electrons are transferred:

    e6d8794799ce3792113a9f4de4a682f6.jpg
    Magnesium donates two electrons to oxygen to empty its own orbital and fill oxygens, thus creating Mg2+ and O2-.

    The two ions each have octets as their valence shell, and the two oppositely charged particles attract, making an ionic bond:

    \[\mathbf{Mg\,}^{2+}\; + \; \mathbf{:}\mathbf{\ddot{\underset{.\: .}O}}\mathbf{\: :}^{2-}\; \; \; \; \; Mg^{2+}O^{2-}\; or\; MgO\nonumber \]

    What about when an Na atom interacts with an O atom? The O atom needs two electrons to complete its valence octet, but the Na atom supplies only one electron:

    \[\mathbf{Na\, \cdot }\curvearrowright \mathbf{\cdot }\mathbf{\ddot{\underset{.}O}}\mathbf{\: :}\nonumber \]

    The O atom still does not have an octet of electrons. What we need is a second Na atom to donate a second electron to the O atom:

    adfbf03706a63dce97dca01856fd6e60.jpg
    Two sodium atoms donate one electron each to oxygen to empty their orbitals and fill oxygen's, thus creating 2 Na+ and O2-.

    These three ions attract each other to form an overall neutrally charged ionic compound, which we write as Na2O. The need for the number of electrons lost to be equal to the number of electrons gained explains why ionic compounds have the ratio of cations to anions that they do. This is also required by the law of conservation of matter.

    Example \(\PageIndex{1}\)

    With arrows, illustrate the transfer of electrons to form calcium chloride from Ca atoms and Cl atoms.

    Solution

    A Ca atom has two valence electrons, while a Cl atom has seven electrons. A Cl atom needs only one more to complete its octet, while Ca atoms have two electrons to lose. We need two Cl atoms to accept the two electrons from one Ca atom. The transfer process is as follows:

    imageedit_2_9882044137.png
    Calcium donates two electrons, one each going to a chlorine. This empties calcium's orbital and fills both of the chlorines'. This creates Ca2+ and two Cl-.

    The oppositely charged ions attract one another to make CaCl2.

    Exercise \(\PageIndex{1}\)

    With arrows, illustrate the transfer of electrons to form potassium sulfide from K atoms and S atoms.

    Answer
    imageedit_4_9402336583.png
    Two potassium atoms donate an electron to sulphur to fill sulphur's orbital and empty their own, thus creating two K+ and one S2-. They ionically bond to form K2S.

    For compounds in which the ratio of ions is not as obvious, the subscripts in the formula can be obtained by crossing charges: use the absolute value of the charge on one ion as the subscript for the other ion. This method is shown schematically in Figure 3.3.2.

    clipboard_e64c1887b23a249cc7a2605e9b461ade9.png
    clipboard_ed576e471896366351a85627f08757b22.png
    Figure \(\PageIndex{1}\): Crossing charges. One method for obtaining subscripts in the empirical formula is by crossing charges.

    When crossing charges, it is sometimes necessary to reduce the subscripts to their simplest ratio to write the empirical formula. Consider, for example, the compound formed by Pb4+ and O2−. Using the absolute values of the charges on the ions as subscripts gives the formula Pb2O4. This simplifies to its correct empirical formula PbO2. The empirical formula has one Pb4+ ion and two O2− ions.

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

    The gemstone sapphire (Figure \(\PageIndex{2}\)) 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{2}\): 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{2}\)

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

    Answer

    Na2S

    Ionic Compounds Formed From Polyatomic Ions

    Many ionic compounds contain polyatomic ions 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{3}\): 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{3}\)

    Write the chemical formula for an ionic compound composed of each pair of ions.

    1. the magnesium ion and the carbonate ion
    2. the aluminum ion and the acetate ion
    Answer a:

    Mg2+ and CO32- = MgCO3

    Answer b:

    Al3+ and C2H3O2- = Al(C2H3O2)3

    Formula Unit

    Ionic compounds exist as alternating positive and negative ions in regular, three-dimensional arrays called crystals (Figure \(\PageIndex{3}\)). As you can see, there are no individual \(\ce{NaCl}\) “particles” in the array; instead, there is a continuous lattice of alternating sodium and chloride ions. However, we can use the ratio of sodium ions to chloride ions, expressed in the lowest possible whole numbers or simplest formula, as a way of describing the compound. In the case of sodium chloride, the ratio of sodium ions to chloride ions, expressed in lowest whole numbers, is 1:1, so we use \(\ce{NaCl}\) (one \(\ce{Na}\) symbol and one \(\ce{Cl}\) symbol) to represent the compound. Thus, \(\ce{NaCl}\) is the chemical formula for sodium chloride, which is a concise way of describing the relative number of different ions in the compound. A macroscopic sample is composed of myriads of NaCl pairs; each individual pair called a formula unit. Although it is convenient to think that \(\ce{NaCl}\) crystals are composed of individual \(\ce{NaCl}\) units, Figure \(\PageIndex{3}\) shows that no single ion is exclusively associated with any other single ion. Each ion is surrounded by ions of opposite charge.

    Figure 1.jpg
    Figure \(\PageIndex{3}\): A Sodium Chloride Crystal. A crystal contains a three-dimensional array of alternating positive and negative ions. The precise pattern depends on the compound. A crystal of sodium chloride, shown here, is a collection of alternating sodium and chlorine ions.

    This page titled 3.8: Formulas of Ionic Compounds is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Anonymous.

    • Was this article helpful?