According to the exit poll, 53 percent of voters said Obama is more in touch with people like them, compared to 43 percent for Romney.
About 60 percent said taxes should be increased, taking sides on an issue that divided the president and Romney. Obama wants to let taxes rise on upper incomes, while Romney does not.
Other than the battlegrounds, big states were virtually ignored in the final months of the campaign. Romney wrote off New York, Illinois and California, while Obama made no attempt to carry Texas, much of the South or the Rocky Mountain region other than Colorado.
There were 33 Senate seats on the ballot, 23 of them defended by Democrats and the rest by Republicans.
Rep. Chris Murphy, a Democrat, won a seat long held by Sen. Joe Lieberman, retiring after a career that included a vice presidential spot on Al Gore's ticket in 2000. It was Republican Linda McMahon's second defeat in two tries, at a personal cost of $92 million.
The GOP needed a gain of three for a majority if Romney won, and four if Obama was re-elected. Neither Majority Leader Harry Reid of Nevada nor GOP leader Mitch McConnell of Kentucky was on the ballot, but each had high stakes in the outcome.
All 435 House seats were on the ballot, including five where one lawmaker ran against another as a result of once-a-decade redistricting to take population shifts into account. Democrats needed to pick up 25 seats to gain the majority they lost two years ago.
Depending on the outcome of a few races, it was possible that white men would wind up in a minority in the Democratic caucus for the first time.
Speaker John A. Boehner, R-Ohio, raised millions to finance get-out-the-vote operations in states without a robust presidential campaign, New York, Illinois and California among them. His goal was to minimize any losses, or possibly even gain ground, no matter Romney's fate. House Democratic leader Rep. Nancy Pelosi of California campaigned aggressively, as well, and faced an uncertain political future if her party failed to win control.