Hauptman was interested in science and mathematics from an early age. He studied at Townsend Harris High School. He graduated from the City College of New York (1937). He earned an M.A. degree in mathematics from Columbia University in 1939. He married Edith Citrynell on November 10, 1940, and had two daughters.