**Anderson's rule** is used for the construction of energy band diagrams of the heterojunction between two semiconductor materials. It is also referred to as the **electron affinity rule**, and is closely related to the Schottky-Mott rule for metal-semiconductor junctions. Anderson's rule was first described by R. L. Anderson in 1960.

Anderson's rule states that when constructing an energy band diagram, the vacuum levels of the two semiconductors on either side of the heterojunction should be aligned (at the same energy).

Once the vacuum levels are aligned it is possible to use the electron affinity and band gap values for each semiconductor to calculate the conduction band and valence band offsets. The electron affinity (usually given by the symbol
χ
in solid state physics) gives the energy difference between the lower edge of the conduction band and the vacuum level of the semiconductor. The band gap (usually given the symbol
E
g
) gives the energy difference between the lower edge of the conduction band and the upper edge of the valence band. Each semiconductor has different electron affinity and band gap values. For semiconductor alloys it may be necessary to use Vegard's law to calculate these values.

Once the relative positions of the conduction and valence bands for both semiconductors are known, Anderson's rule allows the calculation of the band offsets of both the valence band (
Δ
E
v
) and the conduction band (
Δ
E
c
). After applying Anderson's rule and discovering the bands' alignment at the junction, Poisson’s equation can then be used to calculate the shape of the band bending in the two semiconductors.

Consider a heterojunction between semiconductor 1 and semiconductor 2. Suppose the conduction band of semiconductor 2 is closer to the vacuum level than that of semiconductor 1. The conduction band offset would then be given by the difference in electron affinity (energy from upper conducting band to vacuum level) of the two semiconductors:

Δ
E
c
=
χ
2
−
χ
1
Next, suppose that the band gap of semiconductor 2 is large enough that the valence band of semiconductor 1 lies at a higher energy than that of semiconductor 2. Then the valence band offset is given by:

Δ
E
v
=
(
χ
1
+
E
g
1
)
−
(
χ
2
+
E
g
2
)
In real semiconductor heterojunctions, Anderson's rule fails to predict actual band offsets. In Anderson's idealized model the materials are assumed to behave as they would in the limit of a large vacuum separation, yet where the vacuum separation is taken to zero. It is that assumption that involves the use of the vacuum electron affinity parameter, even in a solidly filled junction where there is no vacuum. Much like with the Schottky-Mott rule, Anderson's rule ignores the real chemical bonding effects that occur with a small or nonexistent vacuum separation:

Interface states which may have a very large electrical polarization.
Defect states, dislocations and other perturbations caused by imperfect crystal lattice matches.
To try to improve the accuracy of Anderson's rule, various models have been proposed. The *common anion rule* guesses that, since the valence band is related to anionic states, materials with the same anions should have very small valence band offsets. Tersoff proposed the presence of a dipole layer due to induced gap states, by analogy to the metal-induced gap states in a metal-semiconductor junction. Practically, heuristic corrections to Anderson's rule have found success in specific systems, such as the *60:40 rule* used for the GaAs/AlGaAs system.