Thomas was born in Virginia in 1816. He graduated from the United States Military Academy in 1840. He fought in the Mexican-American War in an artillery battery. When the Civil War started, he decided to stay in the Union army instead of fighting for Virginia. He became a Brigadier General. He won a victory at the Battle of Mill Springs in Kentucky in 1861.