The overestimation, rather than the usual underestimation, of the electronic band gap at 0 K of boron carbide with the ideally stoichiometric composition of B 4 C, represented by B 11 C p (CBC), in density functional theory calculations is one of the outstanding controversial issues in the field of icosahedral boron-rich solids. Using a first-principles approach, we explore the effect of temperature and configurational disorder on the electronic band gap of B 4 C. Ab initio molecular dynamics simulations are performed to account for the effects of vibrational disorder. The results reveal that the volumetric thermal expansion as well as the thermally induced configurational disorder of icosahedral C p atoms residing in the B 11 C p icosahedra have a minimal impact on the band gap of B 4 C, while a major decrease of the band gap is caused by explicit atomic displacements, induced by lattice vibrations. At 298 K, the band gap of B 4 C is overestimated, as compared to the experimental value, by approximately 31%. However, configurational disorder induced by introducing a small fraction of B 12 (CBC) and B 12 (B 4) into a matrix of B 11 C p (CBC) to make the composition of boron carbide approximately B 4.3 C, claimed to be the carbon-rich limit of the material in experiment, leads to a smaller band gap due to the appearance of midgap states. These results can explain at least a part of the previous discrepancies between theory and experiments for the band gap of boron carbide.