He studied at the University of Tübingen from 1908, and received his doctorate in 1912, under Friedrich Paschen. The subject of his dissertation was on the measurement of radiation. After obtaining his doctorate, he continued on as an assistant to Paschen, which he had been since 1911. Gerlach completed his Habilitation at Tübingen in 1916, while serving during World War I.