Confederate States Army from other causes such as accidents, which would add several thousand to the death toll. The main Confederate armies, the Army of Northern Virginia under General Robert E. Lee and the remnants of the Army of Tennessee and various other units under General Joseph E. Johnston, surrendered to the U.S. on April 9, 1865 (officially April 12), and April 18, 1865 (officially April 26). Other Confederate forces surrendered between April 16, 1865 and June 28, 1865. By the end of the war, more than 100,000 Confederate soldiers had deserted, and some estimates put the number as high as one third
Army of Northern Virginia in the first six months from about 46,380 to 62,230 soldiers. The army was assigned in July to the Defense District of North Carolina and Richmond. In the course of the Richmond-Petersburg Campaign the number of soldiers temporarily grew to 82,633 while parts of the Army were under the command by Lieutenant General Early in Shenandoah Valley. In 1864 the Army of Northern Virginia fought against the more than twice as strong Potomac-, James- and Shenandoah Army in Grant's Overland Campaign, Early's Raid against the Baltimore and Ohio Railroad, the Richmond-Petersburg Campaign, and Shenandoah Campaign in the Shenandoah Valley. The