Gerling, whose father was also called Christian Ludwig Gerling and was a pastor at the St. Jacobi church, was born in Hamburg and attended the Johanneum. In 1817, he became professor of mathematics at the University of Marburg.