Valence electrons are crucial in determining how atoms bond and form compounds, especially when forming stable ionic compounds between metals and nonmetals.
Valence Electrons: The Outer Participants
Valence electrons are the electrons located in the outermost electron shell of an atom, also known as the valence shell. These electrons are the most important in chemical reactions because they are the ones that atoms gain, lose, or share when forming chemical bonds. The number and arrangement of these electrons directly influence how an atom interacts with others, particularly in forming ionic or covalent compounds.
Location of Valence Electrons
In atoms, electrons occupy energy levels or shells. Each shell holds a specific number of electrons, and the outermost shell is where valence electrons are found. For main group elements (groups 1, 2, and 13–18 on the periodic table), the number of valence electrons corresponds directly to the group number if using the A-group format:
Group 1A elements (alkali metals) have 1 valence electron.
Group 2A elements (alkaline earth metals) have 2 valence electrons.
Group 3A elements have 3 valence electrons, and so on, up to...
Group 8A elements (noble gases) which have 8 valence electrons (except helium, which has 2).
Valence electrons reside in the s and p orbitals of the highest occupied energy level. For example, carbon has the electron configuration 1s² 2s² 2p². The outermost shell is the second energy level, and it contains 4 valence electrons (2 in 2s and 2 in 2p).
Periodic Trends and Valence Electrons
The periodic table is arranged in such a way that elements in the same vertical column (group) share the same number of valence electrons, which is why elements in a group tend to exhibit similar chemical behavior. For instance:

Image Courtesy of ck12
Group 1 elements such as Li, Na, and K each have 1 valence electron and all tend to form +1 cations (Li⁺, Na⁺, K⁺).
Group 17 elements such as F, Cl, and Br each have 7 valence electrons and tend to form –1 anions (F⁻, Cl⁻, Br⁻).
These patterns are extremely useful for predicting the formulas of ionic compounds, as well as understanding why certain atoms are more reactive than others.
Ion Formation and Stability
Atoms strive to reach a state of maximum stability, which for most elements is achieved when they have eight electrons in their valence shell (the octet rule). To reach this state, atoms may lose or gain electrons, forming ions in the process.

Image Courtesy of Chemistry Land
Cations and Anions
Cations are positively charged ions, formed when an atom loses one or more electrons.
Typically, metals form cations.
Example: Sodium (Na) loses one electron to become Na⁺.
Na → Na⁺ + e⁻
Anions are negatively charged ions, formed when an atom gains one or more electrons.
Typically, nonmetals form anions.
Example: Chlorine (Cl) gains one electron to become Cl⁻.
Cl + e⁻ → Cl⁻
This electron transfer forms the foundation of ionic bonding, as oppositely charged ions attract each other.
The Role of the Octet Rule
Most atoms are more stable when they have eight valence electrons, mimicking the electron configuration of noble gases. This is the driving force behind ion formation:
Group 1 elements (1 valence electron) lose one electron to have 0 in their outermost shell, revealing a full inner shell.
Group 17 elements (7 valence electrons) gain one electron to achieve 8 in their valence shell.
Example: In NaCl (sodium chloride),
Na (Group 1) has 1 valence electron and loses it to form Na⁺.
Cl (Group 17) has 7 valence electrons and gains 1 to form Cl⁻.
The resulting Na⁺ and Cl⁻ ions attract each other to form a stable ionic compound.
Types of Elements and Their Role in Bonding
Understanding the behavior of different element types helps explain their role in forming chemical bonds.

Image Courtesy of ck12
Metals
Found on the left and center of the periodic table.
Low electronegativity and tend to lose electrons.
Form cations.
Properties include being good conductors of electricity, malleable, ductile, and shiny.
Examples:
Sodium (Na), Calcium (Ca), Aluminum (Al)
Nonmetals
Found on the right side of the periodic table (except for Hydrogen).
High electronegativity and tend to gain electrons.
Form anions.
Properties include being poor conductors, brittle, and having dull appearances.
Examples:
Oxygen (O), Fluorine (F), Nitrogen (N)
Metalloids
Elements that lie along the stair-step line on the periodic table.
Exhibit properties of both metals and nonmetals.
Can either gain or lose electrons depending on the chemical environment.
Examples:
Silicon (Si), Arsenic (As), Boron (B)
Electronegativity and Bond Type Prediction
Electronegativity is a measure of how strongly an atom attracts electrons in a bond. It plays a key role in determining the type of bond between two atoms.
Low electronegativity elements tend to lose electrons (metals).
High electronegativity elements tend to gain electrons (nonmetals).
The difference in electronegativity values between two atoms helps determine the nature of their bond:
< 0.4: Nonpolar covalent bond (equal sharing of electrons)
0.4 – 1.7: Polar covalent bond (unequal sharing)
> 1.7: Ionic bond (electron transfer)
Examples:
Sodium (0.93) and Chlorine (3.16) → difference = 2.23 → ionic bond
Hydrogen (2.2) and Fluorine (4.0) → difference = 1.8 → polar covalent bond
Ionic Bonds in Depth
What Is an Ionic Bond?
An ionic bond forms when electrons are transferred from one atom to another, typically from a metal to a nonmetal. This results in two oppositely charged ions that are held together by electrostatic forces.
Key Characteristics of Ionic Bonds
Occur between metals and nonmetals.
Involve a complete transfer of electrons.
Result in the formation of cations and anions.
The resulting ionic compound is neutral overall.
Example: Formation of Sodium Chloride (NaCl)
Na has 1 valence electron. It loses this electron to become Na⁺.
Cl has 7 valence electrons. It gains 1 electron to become Cl⁻.
The two ions, Na⁺ and Cl⁻, are attracted to each other and form the ionic compound NaCl.

This bond satisfies the octet rule for both atoms:
Na⁺ now has the same configuration as Neon (Ne).
Cl⁻ now has the same configuration as Argon (Ar).

Properties of Ionic Compounds
Ionic compounds have several distinctive features:
High melting and boiling points due to strong ionic bonds.
Soluble in water and often dissociate into free ions.
Conduct electricity when molten or dissolved (not as solids).
Form crystal lattice structures, which maximize the attraction between oppositely charged ions.
Formula Ratios and Charge Balance
An ionic compound must be electrically neutral, meaning the total positive and negative charges must balance.
Calcium and Bromine Example
Calcium (Ca) is in Group 2 and forms a Ca²⁺ ion.
Bromine (Br) is in Group 17 and forms a Br⁻ ion.
To balance +2 from Ca with –1 from Br, two Br⁻ ions are needed.
The correct formula is CaBr₂.
Other Examples
Sodium (Na⁺) and Sulfur (S²⁻) combine in a 2:1 ratio to form Na₂S.
Magnesium (Mg²⁺) and Oxygen (O²⁻) combine in a 1:1 ratio to form MgO.
Covalent Bonds vs Ionic Bonds
Although this subtopic focuses on ionic compounds, a brief comparison with covalent bonds is important for clarity.
Covalent Bonds
Formed by sharing electrons between two nonmetals.
Can be nonpolar (equal sharing) or polar (unequal sharing).
Do not form ions; instead, result in molecules.
Polar Covalent Bond Example: Hydrogen Fluoride (HF)
Fluorine is more electronegative than hydrogen.
The shared electrons are pulled closer to fluorine.
Fluorine gains a partial negative charge (δ⁻).
Hydrogen gains a partial positive charge (δ⁺).
Nonpolar Covalent Bond Example: Chlorine Gas (Cl₂)
Two chlorine atoms have equal electronegativity.
Electrons are shared equally, resulting in no charge separation.
Charges and Partial Charges
Bond polarity depends on how electrons are distributed:
In nonpolar covalent bonds, electrons are shared equally and there are no partial charges.

Image courtesy of Wayne Breslyn
In polar covalent bonds, unequal sharing causes partial positive and negative charges (indicated by δ⁺ and δ⁻).

Image Courtesy of Study
In ionic bonds, electrons are fully transferred, resulting in full charges on the resulting ions (e.g., Na⁺ and Cl⁻).
Practice: Predicting Ionic Compounds
Use your knowledge of charges to predict formulas:
What is the formula for a compound formed between Ca²⁺ and F⁻?
Two fluoride ions are needed to balance the +2 from calcium.
Formula: CaF₂
Which elements could form an ionic compound with sulfur (S²⁻)?
Any metal with a +2 charge, such as Mg²⁺ or Ba²⁺.
Examples: MgS, BaS
What ratio do Li⁺ and O²⁻ combine in?
Two lithium ions are needed for one oxide ion.
Formula: Li₂O

Image Courtesy of Chem LibreTexts
These types of questions are common in AP Biology contexts where students need to understand the basic principles of chemical bonding, especially for understanding biological molecules and ion transport.
FAQ
To determine the number of valence electrons, you must identify the electrons in the outermost principal energy level (the highest number before the orbital letter) in an element's electron configuration. Valence electrons include those in both the s and p orbitals of this level.
For example, carbon has an electron configuration of 1s² 2s² 2p². The highest energy level is 2, and the electrons in this level are 2s² and 2p², totaling 4 valence electrons.
This method is most straightforward for main group elements (Groups 1–2 and 13–18).
Transition metals are more complex because their outermost electrons may come from both the s and d orbitals, and the AP Biology exam generally does not focus on determining valence electrons in these cases.
Noble gases are located in Group 18 and are characterized by having full valence shells, typically with eight electrons (except helium, which has two). This full outer shell configuration makes them highly stable and energetically unfavorable to either gain or lose electrons.
Noble gases do not readily form chemical bonds because:
They have no strong drive to achieve greater stability.
They possess a complete octet and thus do not tend to attract or donate electrons.
Their high ionization energies and negligible electronegativities (in some cases) further limit interactions.
As a result, noble gases like neon and argon are chemically inert under most conditions, though some can form compounds under extreme laboratory environments (e.g., xenon fluorides).
No, ionic compounds generally do not form between two nonmetals, because both types of atoms tend to gain electrons rather than donate them. Ionic bonds involve the transfer of electrons, which requires one atom (typically a metal) to lose electrons and the other (typically a nonmetal) to gain them.
Nonmetals, having high electronegativities, do not favor electron donation.
Instead, when two nonmetals react, they share electrons, leading to the formation of covalent bonds.
For example, oxygen and hydrogen bond in water (H₂O) via polar covalent bonds, not ionic bonds.
The electron-sharing in covalent bonds allows both atoms to achieve full valence shells, but without forming ions.
Ionic compounds are held together by strong electrostatic forces between oppositely charged ions arranged in a rigid crystal lattice structure. These forces, called ionic bonds, require a significant amount of energy to overcome.
The strength of these bonds results in:
High melting points, often above 300°C.
High boiling points, as the crystal lattice must be completely disrupted.
In contrast, covalent compounds consist of individual molecules with relatively weak intermolecular forces, such as hydrogen bonds or van der Waals forces, which require less energy to break.
Therefore, even though covalent bonds within molecules are strong, the forces between covalent molecules are weak, making them easier to separate at lower temperatures.
Polyatomic ions are groups of covalently bonded atoms that carry an overall positive or negative charge due to an imbalance in total electrons and protons. These ions participate in ionic bonding in the same way as monatomic ions.
The charge on a polyatomic ion arises from extra or missing valence electrons across the entire group of atoms.
Common examples include:
Ammonium (NH₄⁺): Acts as a cation and forms ionic compounds like NH₄Cl.
Sulfate (SO₄²⁻): Acts as an anion and forms compounds like CaSO₄.
When forming ionic compounds, these ions combine with oppositely charged ions to form electrically neutral compounds.
Understanding the valence structure within these ions helps predict how they will interact and bond with other ions or compounds.
Practice Questions
Explain how the transfer of valence electrons leads to the formation of an ionic compound between magnesium and chlorine. Identify the ions formed and the correct formula of the compound.
When magnesium (Mg), a Group 2 metal, reacts with chlorine (Cl), a Group 17 nonmetal, it loses its two valence electrons to become a Mg²⁺ ion. Each chlorine atom gains one electron to form two Cl⁻ ions. This electron transfer results in the formation of oppositely charged ions, which are held together by strong electrostatic forces, forming an ionic bond. The resulting compound is electrically neutral because the +2 charge of magnesium is balanced by the two –1 charges of chlorine. The correct formula for the compound is MgCl₂, representing one magnesium ion and two chloride ions.
A student claims that potassium (K) and oxygen (O) form an ionic compound in a 1:1 ratio. Evaluate this claim based on valence electron behavior and ionic charges.
The claim is incorrect because it does not account for the charges that result from valence electron transfer. Potassium (K), a Group 1 metal, has one valence electron and forms a K⁺ ion after losing it. Oxygen (O), a Group 16 nonmetal, has six valence electrons and gains two electrons to form an O²⁻ ion. To balance the –2 charge of oxygen, two potassium atoms are needed, each providing one electron. Therefore, potassium and oxygen form the ionic compound K₂O in a 2:1 ratio, not 1:1. The formation ensures that the compound is electrically neutral and follows the octet rule.