2012 United States presidential election in Maryland
The 2012 United States presidential election in Maryland took place on November 6, 2012, as part of the 2012 United States presidential election in which all 50 states plus the District of Columbia participated. Maryland voters chose 10 electors to represent them in the Electoral College via a popular vote pitting incumbent Democratic President Barack Obama and his running mate, Vice President Joe Biden, against Republican challenger and former Massachusetts Governor Mitt Romney and his running mate, Congressman Paul Ryan.
Maryland is one of six states where Obama performed better in 2012 than in 2008, with his percentage of the vote increasing from 61.92% to 61.97%. He flipped Somerset County but lost Kent County which he won in 2008. In this election, Maryland voted 22.21% to the left of the nation at-large.
As of the 2024 presidential election, this is the last time a Republican won Anne Arundel County and a Democrat won Somerset County.
Primary elections
Republican primary
The Republican primary took place on April 3, 2012, the same day as the District of Columbia Republican primary and the Wisconsin Republican primary. After the primary, 37 delegates were selected to attend the Republican National Convention.General election
Results
By county
;County that flipped from Democratic to Republican;County that flipped from Republican to Democratic
By congressional district
Obama won seven of the state's eight congressional districts.| District | Obama | Romney | Representative |
| 38% | 60% | Andy Harris | |
| 63% | 35% | Dutch Ruppersberger | |
| 61% | 37% | John Sarbanes | |
| 78% | 21% | Donna Edwards | |
| 66% | 32% | Steny Hoyer | |
| 55% | 43% | John Delaney | |
| 76% | 22% | Elijah Cummings | |
| 62% | 36% | Chris Van Hollen |