The band gap of nanomaterials can be measured using various techniques. Optical absorption spectroscopy is a common method, where the absorption spectrum is analyzed to determine the energy at which electrons transition from the valence band to the conduction band. Other techniques include photoluminescence spectroscopy and scanning tunneling microscopy, each offering unique insights into the electronic structure of the material.