As the dust settles from the partisan fight over the debt ceiling, the recovery continues to falter, the labor market remains weak, the stock market is volatile and the public mood is increasingly pessimistic. In the ninth How We’re Doing Index, a team of scholars at the Brookings Institution has looked at the past five quarters to assess the state of our political and economic conditions. Facing a real risk of recession, and with the Iowa caucuses only six months away, the impact on the 2012 elections of macroeconomic performance and three military conflicts looms large.

Real growth in gross domestic product was barely above 1 percent in the second quarter of 2011, and the first-quarter GDP increase was just 0.4 percent. This anemic pace is not enough to dig out of the loss of nearly 9 million jobs from the recent recession. After peaking at 10.1 percent in October 2009, the unemployment rate remains stubbornly high, at more than 9 percent, and the average duration of unemployment remains persistently long.

The housing sector has often led the way out of downturns, but home prices have slipped further nationwide over the past year, with metropolitan areas in Nevada, Florida and California among those hit hardest. Consumers are pessimistic, with confidence in July slumping to its lowest level since early 2009, and the National Federation of Independent Business’s “optimism index” for small businesses is down again after two quarters of small increases.

The foreign policy situation remains difficult as well. U.S. combat fatalities rose in both Iraq and Afghanistan during the second quarter, although the situation has since improved.

After lengthy, tense negotiations between Congress and the White House over raising the debt ceiling and reducing the federal budget deficit, public confidence in government is low. About one in five voters says he or she is satisfied with the way things are going in the United States, according to Gallup polling. Neither party generates much confidence, although more than twice as many voters approve of the job being done by President Obama as approve of Congress’s work. Republicans and Democrats remain far apart in their preferred policies, which makes problem-solving very challenging for elected officials.

Against this backdrop of weak performance, the 2012 elections are taking shape. In past elections, Democrats have often sought to emphasize domestic economic circumstances, while Republican candidates emphasized foreign policy and national security. In the upcoming cycle, though, we may see the parties switch roles as the GOP highlights high unemployment and weak economic growth, and the president campaigns on his policy of scaling back involvement in unpopular wars in Iraq and Afghanistan.

So far, there are nine Republicans likely to seek to replace Obama, but the president does not have opposition in the Democratic nominating process. Historically, presidents who have not faced a primary challenge are more likely to win reelection. That was the case with Ronald Reagan, Bill Clinton and George W. Bush, but the unemployment rate was lower when each of them sought a second term. No president since Franklin Roosevelt has been reelected — or even run for reelection — with unemployment over 8 percent.

For analysis of this and other data, go to www.brookings.edu/index.

Darrell M. West is vice president of the Brookings Institution’s governance studies program, and Ted Gayer is co-director of Brookings’s economic studies program.