Wright initially enlisted as a private in the 3rd Regiment Massachusetts Volunteer Infantry in May 1861 and was transferred to the 29th Massachusetts Infantry when that regiment was formed in December 1861. He participated with the 29th Massachusetts in the Peninsular Campaign during which he was wounded in the head by a shell fragment at the Battle of White Oak Swamp on June 30, 1862.