Arizona, California, Connecticut, Delaware, Florida, Illinois, Maryland, Missouri, New Hampshire, New Jersey, New York, Ohio, Oklahoma, Pennsylvania, Rhode Island, South Carolina, Texas, Vermont, Virginia, Washington state, Wisconsin
Mitt Romney 11 states, 251 delegates
Alaska, Colorado, Maine, Massachusetts, Michigan, Minnesota, Montana, Nevada, North Dakota, Wyoming, Utah
1,191 delegates needed for nomination. Source: AP (includes all kinds of delegates)
The state has 74 Democratic delegates at stake. The Associated Press (AP)news agency said Mr Obama was projected to win at least 38 of them, and Mrs Clinton 27, with nine still to be awarded.
Meanwhile, with 51% of precincts counted in Hawaii, where the Illinois senator was born, he had taken 76% of the vote, leading AP and CNN to project victory.
The state has 20 delegates up for grabs.
The BBC's Jonathan Beale says Wisconsin was a significant victory for Mr Obama, eating into Mrs Clinton's support base.
It is a major disappointment for Mrs Clinton, the senator for New York, who had been hoping to restore momentum to her campaign.
Instead, Mr Obama was reported to have gained almost equal support from white women, and to have polled well from working-class Democrats - both groups which have usually supported Mrs Clinton.
Mr Obama also took the youth vote and six out of 10 self-described independent voters, according to exit polls for ABC.
But he and Mrs Clinton are already looking ahead to March's bigger contests in Ohio and Texas, seen by analysts as crucial to her credibility as a candidate.
Speaking at a victory rally in Houston, Texas, Mr Obama said: "The change we seek is still months and miles away and we need to get all of Texas to help us get there."
Addressing a rally in Youngstown, Ohio, Mrs Clinton said the primary campaign was "about picking a president who relies not just on words but on work - hard work to get America back to work".
Before the results from Wisconsin were calculated, Mr Obama held a slight lead over Mrs Clinton, with 1,280 delegates to her 1,218.
It will take 2,025 delegates to secure the Democratic nomination at the party's national convention this summer.
Mr McCain, the senator for Arizona, appeared to target Mr Obama in his victory speech as he promised to ensure Americans were "not deceived by an eloquent but empty call for change".
On the Republican side, the race between Mr McCain and Mike Huckabee, a former Arkansas governor, continues.