Required background: 6.2 Energy band diagram of an MOS capacitor
Next: 6.4 The MOS inversion layer charge
The workfunction is the voltage required to extract an electron from the fermi energy to the vacuum level. This voltage is between 4 and 5 Volt for most metals. It should be noted that the actual value of the workfunction of a metal deposited onto silicon dioxide is not exactly the same as that of the metal in vacuum. The figure below provides experimental values for the workfunction of different metals as obtained from a measurement of a MOS capacitor as a function of the measured workfunction in vacuum.

The workfunction of a semiconductor requires some more thought since the fermi energy varies with the doping type as well as with the doping concentration. This workfunction equals the sum of the electron affinity, the difference between the conduction band energy and the intrinsic energy divided by the electronic charge and the bulk potential as expressed by the following equation:
(mf26)
(mf27)For MOS structures with a highly doped poly-silicon gate one must also calculate the workfunction of the gate based on the bulk potential of the poly-silicon.
(mf28a)The actual calculation of the flat band voltage is further complicated by the fact that charge can move within the oxide, while the charge at the oxide-semiconductor interface due to surface states also depends on the position of the fermi energy.
Since any additional charge affects the flat band voltage and thereby also the threshold voltage, great care has to be taken during fabrication to avoid the incorporation of charged ions as well as creation of surface states.