2020Final results
2020 election for Pennsylvania Attorney General
Attorney General · Pennsylvania
Josh Shapiro (D) won with 50.8% of the vote, defeating Heather S. Heidelbaugh (R) by 4.5 points.
Josh ShapiroDemocrat · winner
50.8%3,458,663
Heather S. HeidelbaughRepublican
46.3%3,152,464
Daniel WassmerLibertarian
1.8%120,201
Richard L. WeissOther party
1.0%70,640
Sturgill SimpsonOther party
0.0%1
6,803,419 votes
Source: MIT Election Data and Science LabUpdated Oct 1, 2026, 10:09 AM ET
The seat over time
D − R margin in this seat's races around 2020
Races before and after
Source: MIT Election Data and Science LabUpdated Oct 1, 2026, 10:09 AM ET
The candidates
Josh Shapiro (D)Heather S. Heidelbaugh (R)
Also on the ballot: Daniel Wassmer (Libertarian), 1.8%; Richard L. Weiss (Other party), 1.0%; Sturgill Simpson (Other party), 0.0%