The United States has accumulated a large national debt due to several factors including wars, social programs, and bailout programs. Wars in Iraq and Afghanistan have cost over $1.21 trillion so far. Social Security, Medicaid, and Medicare spending has increased faster than inflation and the economy, with over $2.47 trillion spent annually on these programs alone. Finally, over $700 billion has been used to bail out banks and automakers during the financial crisis to prevent further economic collapse.