Hansgirg was born in Graz, Austria in 1891 and received a PhD degree in chemistry from the University of Graz. He was married to Josephine Marie (née Heller). Heller's son from her first marriage, Peter Robert Hofstätter, graduated from the University of Vienna, and served as a military psychologist in the German army during World War II.