Sparman studied medicine in the city of Leiden, in the Netherlands. After he returned to Sweden he became the city doctor for Stockholm. Later, he was the personal doctor to Queen Christina and Charles X Gustav of Sweden.