Despite long lines at polls in many places, turnout overall looked to be down from four years ago as the president pieced together a winning coalition of women, young people, minorities and lower-income voters that reflected the country's changing demographics. Obama's superior ground organization in the most contested states was critical to his success.
Obama's victory speech — he'd written a concession, too, just in case — reflected the realities of the rough road ahead.
"By itself the recognition that we have common hopes and dreams won't end all the gridlock, or solve all our problems or substitute for the painstaking work of building consensus and making the difficult compromises needed to move this country forward," Obama said.
"But that common bond is where we must begin. Our economy is recovering. A decade of war is ending. A long campaign is now over, and whether I earned your vote or not, I have listened to you, I have learned from you and you have made me a better president."
The president said he hoped to meet with Romney and discuss how they can work together. They may have battled fiercely, he said, "but it's only because we love this country deeply."
Romney's short concession — he'd only prepared an acceptance speech — was a gracious end note after a grueling campaign.
He wished the president's family well and told subdued supporters in Boston, "I so wish that I had been able to fulfill your hopes to lead the country in a different direction, but the nation chose another leader and so Ann and I join with you to earnestly pray for him and for this great nation."
Obama won even though exit polls showed that only about 4 in 10 voters thought the economy is getting better, just one-quarter thought they're better off financially than four years ago and a little more than half think the country is on the wrong track.
But even now, four years after George W. Bush left office, voters were more likely to blame Bush than Obama for the fix they're in.
Elsewhere on the ballot, voters in Maine and Maryland became the first to approve same-sex marriage by popular vote while Washington state and Colorado legalized recreational use of marijuana.
The most expensive presidential campaign in history, at $2 billion plus, targeted people in the nine states that determined the outcome, and the two sides drenched voters there with more than a million ads, the overwhelming share of them negative.
Obama claimed at least seven of those states, most notably Ohio, seen as the big prize. He also prevailed in Iowa, New Hampshire, Colorado, Nevada, Virginia and Wisconsin. Romney got North Carolina.
Florida was too close to call Wednesday morning. The unofficial count had Obama with a 46,000-vote lead, but Florida historically has left as many as 5 percent of its votes uncounted until after Election Day.
Overall, Obama won 25 states and the District of Columbia. Romney won 24 states.
It was a more measured victory than four years ago, when Obama claimed 365 electoral votes to Arizona Sen. John McCain's 173, and won 53 percent of the popular vote.
Preliminary figures indicate fewer people participated this time. Associated Press figures showed that about 118 million people had voted in the White House race, but that number will rise as more votes are counted. In 2008, 131 million people voted, according to the Federal Election Commission.
Obama was judged by 53 percent of voters to be more in touch with people like them. More good news for him was that 6 in 10 voters said taxes should be increased, and that nearly half of voters said taxes should be increased on incomes over $250,000, as Obama has called for.
Obama's list of promises to keep includes many holdovers he was unable to deliver on in his first term, such as rolling back tax cuts for upper-income people, overhauling immigration policy and reducing federal deficits.
- Texas seizes FLDS Church's secluded ranch
- Some countries get Obama, but want his wife, too
- Get married, stay married? No fault divorce...
- Appeals judges question right to sue in...
- How does the world feel about morals and...
- Police: Student ate more pot than recommended...
- Avalanche sweeps down Everest, killing at...
- Dirty creek, old purse solve four-decade...
- Obama: Religious intolerance has... 78
- Utah, Oklahoma same-sex marriage cases... 47
- The dangers of financially illiterate... 31
- Obama: 8 million signed up for health care 27
- Appeals judges question right to sue in... 25
- Report projects health law's subsidies... 21
- Texas seizes FLDS Church's secluded ranch 19
- Police: Student ate more pot than... 18