American Civil War --- 562,130
World War 2 --- 408,306
World War 1 --- 116,516
Vietnam --- 58,219
Korea --- 33,741
Revolutionary War --- 25,324
War of 1812 -- ~20,000
Mexican War --- 13,283
Philippine (anti-insurgent) War --- 4,196
Iraq --- 3,973
Spanish American War --- 2,446
Afghanistan -- 419
First Gulf War --- 299
My comment: Iraq ranks quite low, in fact, it's the lowest of any of the "major" conflicts when one considers the number of men deployed (150,000 - 250,000) over 4 1/2 years.
The war most similiar in characteristic and scope to Iraq was the Spanish American War followed by the Philippine occupation which had the combined war deaths of (2,446 + 4,196) = 6,642.