Fermi level
The Fermi level is the energy at which an electron state has a 50% chance of being occupied at thermal equilibrium. In metals it lies inside a partly filled band, which is why metals conduct so well. In a pure intrinsic semiconductor it sits near the middle of the band gap. Doping moves it toward the conduction band in n-type material and toward the valence band in p-type material. When n-type and p-type regions meet, their Fermi levels line up, and that alignment bends the bands and creates the built-in voltage of a solar cell's junction.
Related terms: P-n junction, Built-in voltage, Work function, Energy levels