Pennsylvania held statewide elections on November 7, 2017, to fill judicial positions on the Supreme Court, Superior Court, and the Commonwealth Court, to allow judicial retention votes, and to fill numerous county, local and municipal offices.
The necessary primary elections were held in May 2017.