The distortion theorem of the bond-valence theory predicts that the mean bond length 〈D〉 increases with increasing deviation of the individual bond lengths from their mean value according to the equation 〈D〉 = (D' + ΔD), where D' is the length found in a polyhedron having equivalent bonds and ΔD is the bond distortion. For a given atom, D' is expected to be similar from one structure to another, whereas 〈D〉 should vary as a function of ΔD. However, in several crystal structures 〈D〉 significantly varies without any relevant contribution from ΔD. In accordance with bond-valence theory, 〈D〉 variation is described here by a new equation: 〈D〉 = (DRU + ΔDtop + ΔDiso + ΔDaniso + ΔDelec), where DRU is a constant related to the type of cation and coordination environment, ΔDtop is the topological distortion related to the way the atoms are linked, ΔDiso is an isotropic effect of compression (or stretching) in the bonds produced by steric strain and represents the same increase (or decrease) in all the bond lengths in the coordination sphere, ΔDaniso is the distortion produced by compression and stretching of bonds in the same coordination sphere, ΔDelec is the distortion produced by electronic effects. If present, ΔDelec can be combined with ΔDaniso because they lead to the same kind of distortions in line with the distortion theorem. Each D-index, in the new equation, corresponds to an algebraic expression containing experimental and theoretical bond valences. On the basis of this study, the ΔD index defined in bond valence theory is a result of both the bond topology and the distortion theorem (ΔD = ΔDtop + ΔDaniso + ΔDelec), and D' is a result of the compression, or stretching, of bonds (D' = DRU + ΔDiso). The deficiencies present in the bond-valence theory in explaining mean bond-length variations can therefore be overcome, and the observed variations of 〈D〉 in crystal structures can be described by a self-consistent model.