Edinburghshire (also known as Midlothian) was a Scottish county constituency of the House of Commons of the Parliament of Great Britain (at Westminster) from 1708 to 1801 and of the Parliament of the United Kingdom (also at Westminster) from 1801 to 1918. It elected one Member of Parliament (MP) by the first past the post system of election.