The short answer
Disease was the biggest killer of soldiers in the Civil War. Sickness caused roughly two-thirds of the deaths on both sides, far more than bullets, shells, or the wounds they caused.
How many died from disease
Estimates of total Civil War deaths range from roughly 620,000 to about 750,000, depending on how historians count and classify the records. Across those estimates, disease accounts for roughly two-thirds of deaths. Combat deaths were about half as many, so disease killed about twice as many soldiers as fighting did.
These numbers come from different kinds of records, and the exact split varies by source. The general pattern is consistent, though.
The diseases that killed the most
Intestinal illnesses such as diarrhea and dysentery were among the most common killers in both armies. Typhoid fever was another major cause of death. Malaria, measles, smallpox, pneumonia, and tuberculosis also took many lives. Some illnesses were especially hard on young recruits from rural areas who had little exposure to diseases that spread in towns and crowded places.
Historians do not agree on a single exact ranking of the diseases. It is safer to say that intestinal diseases and typhoid were among the deadliest, and that many different illnesses together made up the bulk of the total.
Why camps were dangerous
Army camps were crowded, and that made illness spread quickly. Latrines were sometimes placed too close to water sources, and flies carried germs from waste to food. Many men drank untreated water. Diets could be poor, especially when supplies ran short, and marching in bad weather wore men down and left them open to infection.
Many doctors of the time did not accept germ theory, so they could not always see how these conditions spread disease. Sanitation improved over the war, but it came slowly.
Infection after wounds
Disease was not only a camp problem. Men who were wounded in battle often died from infection, and amputations carried serious risks. Infections in wounds could spread quickly, and surgery was done under difficult conditions. Because of this, the line between “battle death” and “disease death” is not always clear.
Medical responses
The United States Sanitary Commission, a private relief organization founded in 1861, worked to improve camp sanitation, supply medical care, and push army officials toward better practices. Army medical leaders also introduced reforms during the war. These changes helped reduce some deaths, but they came after many men had already died from preventable causes.
Why the numbers vary
Records from the period were incomplete, and not every death was recorded the same way. Some men died after being discharged or after a long illness that began during service. Those cases make exact totals hard to pin down. That is one reason historians give ranges rather than single figures.