The 1848 Pennsylvania gubernatorial election occurred on October 10, 1848. Incumbent Whig governor William F. Johnston, who became governor following the resignation and subsequent death of Francis R. Shunk in July 1848, narrowly defeated Democratic candidate Morris Longstreth by 297 votes, to win a full term.