United States
- 1840 United States presidential election – A national election held on November 2 1840 in which Whig candidate William Henry Harrison defeated incumbent Democrat Martin Van Buren.
- 1840 United States House of Representatives elections – Elections for all 242 seats in the House of Representatives (the 27th Congress). The Whig Party gained a majority, while the Democratic Party lost seats.
- 1840 United States Senate elections – Regular and special elections for Class 2 Senate seats. At the time, Senators were chosen by state legislatures; the elections resulted in a modest gain for the Whig Party.
- 1840 New York gubernatorial election – Held on November 4 1840. Incumbent Whig Governor William H. Seward was re‑elected, defeating Democratic challenger William C. Bouck.
- 1840 Massachusetts gubernatorial election – Conducted on November 10 1840. Whig nominee John Davis won the governorship, succeeding fellow Whig Edward Everett.
United Kingdom
- 1840 United Kingdom by‑elections – A series of parliamentary by‑elections held throughout the year to fill vacancies in the House of Commons caused by death, resignation, or elevation to the peerage. Notable by‑elections included those in Chester, Marlborough, and Dorset.
Other jurisdictions
- 1840 Prince of Wales Island (now Penang) Legislative Council election – The British colonial administration conducted a limited election to fill seats on the Legislative Council of the Straits Settlements.
- 1840 Various state and local elections in the United States – Numerous state legislatures, city councils, and municipal offices held elections according to their individual calendars; records of specific contests are maintained in state archives.
Note: The list includes elections for which reliable historical records are available. The scope is limited to recognized electoral events documented in reputable encyclopedic sources.