 Through his mother, he was a descendant of Thomas Hastings who came from the East Anglia region of England to the Massachusetts Bay Colony in 1634.Hamilton graduated from Union College in 1830 and received the degree of MD degree at the University of Pennsylvania in 1835.After teaching in various colleges, he became in 1861 professor in the Bellevue Hospital Medical College.