<Table> <Tr> <Th_colspan="2"> Battle of Gettysburg </Th> </Tr> <Tr> <Td_colspan="2"> Part of the American Civil War </Td> </Tr> <Tr> <Td_colspan="2"> The Battle of Gettysburg, by Thure de Thulstrup </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Th> Date </Th> <Td> July 1--3, 1863 </Td> </Tr> <Tr> <Th> Location </Th> <Td> Gettysburg, Adams County, Pennsylvania 39 ° 48 ′ 40" N 77 ° 13 ′ 30" W ﻿ / ﻿ 39.811 ° N 77.225 ° W ﻿ / 39.811; - 77.225 Coordinates: 39 ° 48 ′ 40" N 77 ° 13 ′ 30" W ﻿ / ﻿ 39.811 ° N 77.225 ° W ﻿ / 39.811; - 77.225 </Td> </Tr> <Tr> <Th> Result </Th> <Td> Union victory </Td> </Tr> </Table> </Td> </Tr> <Tr> <Th_colspan="2"> Belligerents </Th> </Tr> <Tr> <Td> United States </Td> <Td> Confederate States </Td> </Tr> <Tr> <Th_colspan="2"> Commanders and leaders </Th> </Tr> <Tr> <Td> George G. Meade </Td> <Td> Robert E. Lee </Td> </Tr> <Tr> <Th_colspan="2"> Units involved </Th> </Tr> <Tr> <Td> Army of the Potomac </Td> <Td> Army of Northern Virginia </Td> </Tr> <Tr> <Th_colspan="2"> Strength </Th> </Tr> <Tr> <Td> 104,256 ("present for duty") </Td> <Td> 71,000--75,000 (estimated) </Td> </Tr> <Tr> <Th_colspan="2"> Casualties and losses </Th> </Tr> <Tr> <Td> 23,049 total (3,155 killed; 14,529 wounded; 5,365 captured / missing) </Td> <Td> 23,000--28,000 (estimated) </Td> </Tr> </Table> <Tr> <Th_colspan="2"> Battle of Gettysburg </Th> </Tr>

How many confederate soldiers died in the battle of gettysburg