According to Wikipedia, he was born on February 12, 1809 and inaugurated on March 4, 1861, which would have made him around 52.