1787 New Hampshire gubernatorial election

The 1787 New Hampshire gubernatorial election was held on 13 March 1787 in order to elect the President of New Hampshire. (The office would be renamed to Governor in 1792.) Incumbent Federalist President John Sullivan defeated Anti-Federalist candidate and former President John Langdon, 1785 President Anti-Federalist candidate Josiah Bartlett and Federalist judge Samuel Livermore. Since no candidate received a majority in the popular vote, Sullivan was elected by the New Hampshire General Court per the state constitution, despite having come in second in the popular vote.

General election
On election day, 13 March 1787, Anti-Federalist candidate and former President John Langdon won the popular vote by a margin of 392 votes against his foremost opponent Federalist candidate and incumbent President John Sullivan. But because no candidate received a majority of the popular vote, a separate election was held by the New Hampshire General Court, which chose Sullivan as the winner instead of Langdon. Sullivan thereby held Federalist control over the office of President and was sworn in for his second term on 6 June 1787.