On June 26, 1861 Baxter enlisted for the American Civil War, joining the 12th Massachusetts Volunteer Infantry as regimental surgeon. He served until April, 1862, when he was appointed as a brigade surgeon in the Army of the Potomac. He took part in the Peninsula Campaign, including the Battles of Yorktown, Hanover Court House, and Seven Pines.