Peck was born on January 4, 1821 in Manlius, New York.
Peck entered the United States Military Academy at age 18 and graduated eighth from a class of 39 on July 1, 1843 along with Ulysses S. Grant and many other soon to be famous military officers.