A classmate of Philip Sheridan, John Bell Hood, and James B. McPherson, he ranked second in the United States Military Academy class of 1853 and was commissioned in the United States Army Corps of Engineers. After working on several Atlantic coast forts including Fort Delaware, he taught engineering at the Military Academy from 1859-1862.