[How to calculate band gap of semiconductor how to calculate band gap of semiconductor, We calculate from first principles the temperature-dependent renormalization of the direct band gap of diamond arising from electron-phonon interactions. The calculated temperature dependence is in good agreement with spectroscopic ellipsometry measurements, and the zero-point renormalization of the band gap is found to be as large as 0.6 eV. ]