John A. Magee was born in Landisburg, Pennsylvania. He attended the common schools and was graduated from New Bloomfield Academy. He engaged in the printing business and for a number of years published the "Perry County Democrat". He was a member of the Pennsylvania State House of Representatives in 1863. He was a delegate to the Democratic National Convention in 1868, 1876, and 1896.