He was the son of Samuel Tempelman (1711-1748), curate of Herrestad, and his wife Susanna Maria Ridderström (1718-1753).
At Uppsala University in 1763, he began studying theology and the humanities while working as a tutor for income.