Source: American war deaths through history
CONFLICT
SPAN
CASUALTIES
Revolutionary War
1775-1783
25,000
Northwest Indian War
1785-1795
~1,056
Quasi-War
1798-1800
514
War of 1812
1812-1815
~20,000
1st Seminole War
1817-1818
36
Black Hawk War
1832
305
2nd Seminole War
1835-1842
1,535
Mexican-American War
1846-1848
13,283
3rd Seminole War
1855-1858
26
Civil War
1861-1865
~625,000
Indian Wars
1865-1898
919
Great Sioux War
1875-1877
314
Spanish-America War
1898
2,446
Philippine-American War
1898-1913
4,196
Boxer Rebellion
1900-1901
131
Mexican Revolution
1914-1919
~35
Haiti Occupation
1915-1934
148
World War 1
1917-1918
116,516
North Russia Campaign
1918-1920
424
American Exp. Force Siberia
1918-1920
328
Nicaragua Occupation
1927-1933
48
World War 2
1941-1945
405,399
Korean War
1950-1953
36,516
Vietnam War
1955-1975
58,209
El Salvador Civil War
1980-1992
37
Beirut
1982-1984
266
Grenada
1983
19
Panama
1989
40
Gulf War
1990-1991
258
Operation Provide Comfort
1991-1996
19
Somalia Intervention
1992-1995
43
Bosnia
1995-2004
12
NATO Air Campaign Yugoslavia
1999
20
Afghanistan (ongoing)
2001-
2,113(09/2012)
Iraq
2003-2011
4,486(09/2012)
______________________________

As of March 2021, 11 U.S. soldiers died in Iraq in 2020.
> 2,300 American service members have been killed in Afghanistan and over 20,000 have been wounded since the conflict began.
I don’t remember the Quasi War.
The Quasi-War (French: Quasi-guerre) was an undeclared war fought from 1798 to 1800 between the United States and France. Most of the fighting took place in the Caribbean and off the Atlantic coastline of the United States. https://en.wikipedia.org/wiki/Quasi-War