The number density of electrons is much less than in conductors and is artificially created by doping. To calculate number densities (Electron, Hole) just enter the values of temperature, electron effective masses, hole effective masses and band gap in the number density of electrons calculator. The value of Boltzmann constant and Planck constant is given as 1.3806488e-23 and 6.62606876e-34.