hill was born on july 12, 1821 at hill's iron works in york county, south carolina. he was the son of solomon and nancy hill. his grandfather, william hill, a native of ireland, built an iron foundry that made cannon for the continental army during the american revolutionary war. he was also a revolutionary war soldier. hill was educated locally and in 1838 accepted an appointment to the united states military academy at west point. he was in the same class as james longstreet, william rosecrans, john pope, and george sykes. he graduated four years later ranked 28th in a class of 56. he was given a commission in the 1st us artillery.