DataElectionsPresident2012Pennsylvania President · 2012

President · 2012

Pennsylvania, 2012

In 2012, Barack H. Obama (Democratic) received 2,990,274 votes (52.1% of the total) in the presidential election in Pennsylvania. Barack H. Obama received 309,840 more votes than Mitt Romney (Republican), a margin of 5.4 points. The margin was 5.4 points, compared with 10.3 points in 2008. Candidates other than the two leading candidates received 1.2% of the vote combined.

Certified

Certified results. Source: MIT Election Data and Science Lab (MEDSL), U.S. President 1976–2024. Harvard Dataverse, doi:10.7910/DVN/42MVDX, dataset version 10.1. Figures are the dataset’s compilation of certified state results.

Election

November 6, 2012

Ballots counted for this office

5,742,040

Margin

5.4 points

Shift from the previous election

5.0 points toward the Republican candidate, from 2008

Where this race sits

Pennsylvania is outlined in orange. Its color is the margin scale used across the archive.

Republican marginDemocratic margin

Steps of 10 points: 0–10, 10–20, 20–30, 30–40, 40–50, 50 or more. The same scale is used for every year.

Map: U.S. Census Bureau cartographic boundary files, via us-atlas. The fill is this race’s margin.

All presidential elections in Pennsylvania

YearCandidate with most votesPartyMargin (points)
1976Jimmy CarterDemocratic2.7View
1980Ronald ReaganRepublican7.1View
1984Ronald ReaganRepublican7.3View
1988George H.W. BushRepublican2.3View
1992Bill ClintonDemocratic9.0View
1996Bill ClintonDemocratic9.2View
2000Al GoreDemocratic4.2View
2004John KerryDemocratic2.5View
2008Barack H. ObamaDemocratic10.3View
2012
This race
Barack H. ObamaDemocratic5.4
2016Donald J. TrumpRepublican0.7View
2020Joseph R. Biden Jr.Democratic1.2View
2024Donald J. TrumpRepublican1.7View

Results

CandidatePartyVotesShare of totalTwo-party share
Barack H. ObamaDemocratic2,990,27452.1%52.7%
Mitt RomneyRepublican2,680,43446.7%47.3%
Gary JohnsonLibertarian49,9910.9%–
Jill SteinGreen21,3410.4%–

Two-party share is the candidate’s share of the combined Democratic and Republican vote. It is shown for Democratic and Republican candidates only.

Vote shares are rounded to 1 decimal place; the shares may not sum to exactly 100% because of rounding.

Source: MIT Election Data and Science Lab (MEDSL), U.S. President 1976–2024. Harvard Dataverse, doi:10.7910/DVN/42MVDX, dataset version 10.1. Every figure on this page is from the 2012 election recorded in that source.