He was born in Jonsrud, Vestby, Akershus, Norway. In 1763, having completed secondary school, he went to Denmark for further studies (since Norway didn't have any university in 1763). In 1778 he acquired got degree of "candidatus juris". In 1794 he was hired as a surveyor; in 1798, a Royal inspector of Surveying.