 He was a son of office manager Christian Fredrik Gottfred Bohr Harbitz (1833–1916) and his wife Fanny Theobald (1839–1872).He was the older brother of pathologist Francis Harbitz, and a paternal grandson of Georg Prahl Harbitz.He enrolled as a law student in 1880, and graduated with the cand.jur.