Magnetic anisotropy is a difficult topic to describe by electronic structure theory. The results of ab initio calculations for iron and nickel are disappointing, especially since these calculations require high numerical precision and are very time consuming. For iron the value of the energy is too small by a factor of 3, while for nickel the sign is wrong and the value is too small by a factor of 5. The local density approximation can be improved by adding corrections that mimic the inclusion of Hund’s second rule. This is equivalent to increasing the effective spin–orbit parameter. For iron a small increase in the effective spin–orbit parameter is sufficient to reconcile theory and experiment. For nickel, this is not possible.