Length of U.S. participation in major wars

Length of U.S. official participation in major wars
{| class="wikitable sortable" cellpadding="6" cellspacing="2" style="border:1px solid #cccccc;" bgcolor="#cccccc" !||War||Dates||Duration||class="unsortable"|Timeline
 * style="text-align:right"| 1. || Vietnam Conflict || 1965/3 – 1975/05 ||(9 years, 10 months) ||
 * style="text-align:right"| 2. || War in Afghanistan || 2001/10 – present ||  years (22 years, 9 months) ||
 * style="text-align:right"| 3. ||War in North-West Pakistan || 2004/03 – present || 9.5 years (9 years, 6 months) ||
 * style="text-align:right"| 2. || War in Afghanistan || 2001/10 – present ||  years (22 years, 9 months) ||
 * style="text-align:right"| 3. ||War in North-West Pakistan || 2004/03 – present || 9.5 years (9 years, 6 months) ||
 * style="text-align:right"| 2. || War in Afghanistan || 2001/10 – present ||  years (22 years, 9 months) ||
 * style="text-align:right"| 3. ||War in North-West Pakistan || 2004/03 – present || 9.5 years (9 years, 6 months) ||
 * style="text-align:right"| 3. ||War in North-West Pakistan || 2004/03 – present || 9.5 years (9 years, 6 months) ||


 * style="text-align:right"| 4. || Iraq War || 2003/03 – 2011/12      || 8.7 years (8 years, 9 months)  ||
 * style="text-align:right"| 5. ||American Revolutionary War || 1775/04 – 1783/09 || 8.4 years (8 years, 5 months) ||
 * style="text-align:right"| 6. || American Civil War || 1861/04 – 1865/04 || 4 years ||
 * style="text-align:right"| 7. || World War II || 1941/12 – 1945/08 || 3.7 years (3 years, 8 months) ||
 * style="text-align:right"| 8. || Korean Conflict || 1950/06 – 1953/07 || 3.1 years (3 years 1 month) ||
 * style="text-align:right"| 9. || War of 1812 || 1812/06 – 1814/12 || 2.5 years (2 years, 6 months) ||
 * style="text-align:right"| 10. || Mexican-American War || 1846/05 – 1848/02 || 1.8 years (1 year, 10 months) ||
 * style="text-align:right"|11. || World War I || 1917/04 – 1918/11 || 1.6 years (1 year, 7 months) ||
 * style="text-align:right"|12. || Spanish-American War || 1898/05 – 1898/12 || 0.7 years (8 months) ||
 * style="text-align:right"|13. || Persian Gulf War || 1990/08 – 02/1991 || 0.6 years (7 months)  ||
 * }
 * style="text-align:right"| 9. || War of 1812 || 1812/06 – 1814/12 || 2.5 years (2 years, 6 months) ||
 * style="text-align:right"| 10. || Mexican-American War || 1846/05 – 1848/02 || 1.8 years (1 year, 10 months) ||
 * style="text-align:right"|11. || World War I || 1917/04 – 1918/11 || 1.6 years (1 year, 7 months) ||
 * style="text-align:right"|12. || Spanish-American War || 1898/05 – 1898/12 || 0.7 years (8 months) ||
 * style="text-align:right"|13. || Persian Gulf War || 1990/08 – 02/1991 || 0.6 years (7 months)  ||
 * }
 * style="text-align:right"|12. || Spanish-American War || 1898/05 – 1898/12 || 0.7 years (8 months) ||
 * style="text-align:right"|13. || Persian Gulf War || 1990/08 – 02/1991 || 0.6 years (7 months)  ||
 * }
 * }
 * }

(Ongoing wars indicated in bold and with orange bars.) Source: Associated Press