Wainwright was born December 31, 1826, in New York City, the brother of future doctor and Union general, William P. Wainwright.
He left behind an elderly father and two sisters when he joined the army in the early autumn of 1861 at the age of 34.