Ludwig was born at Witzenhausen, near Kassel, and studied medicine at Erlangen and Marburg, taking his doctor's degree at Marburg in 1839.
In 1865 Ludwig was appointed to the newly created chair of physiology at Leipzig, and continued there until his death on 23 April 1895.