Key facts
538
Electors in the Electoral College
Art. II, § 1; Amdt. XXIII
270
Electoral votes needed to win when all 538 are appointed
National Archives
43
States where voters elect the attorney general
NAAG (2026)
Four paths into office
- Direct election: voters choose the officeholder.
- Electors: voters choose electors, who then choose the president and vice president.
- Appointment with approval: one official nominates and another body confirms.
- Selection by an elected body: a legislature, council or board picks the officeholder.
The same title can follow different paths in different places. The path depends on the office and on the state.
Chosen directly by voters
Voters in each congressional DistrictAn area set up for a purpose, such as the area whose voters elect one representative or the area a school district or other special district serves.Read more in the glossary elect a member of the House every 2 years, and states with only one House seat elect that member statewide. Each state’s voters also elect 2 senators. In every state, voters elect a governor and state legislators, and in 43 states they also elect the attorney general. Many local offices are elected as well, including Pennsylvania’s county commissioners, sheriffs, district attorneys, school directors and judges.
Chosen through electors
For president, voters in each state and in Washington, DC, choose electors. Each state gets as many electors as it has senators and House members, and DC gets 3, for a total of 538. A candidate needs a majority of the electors appointed, which is 270 when all 538 are appointed. Most states give all their electors to the statewide winner, while Maine and Nebraska divide theirs differently. Because of this system, the candidate with the most votes nationwide does not automatically win.
Appointed and approved
The president nominates Supreme Court justices and other Article III judges, and the Senate must confirm them. They serve "during good Behaviour," which typically means for life. Full-time federal MagistrateA title for some judges, whose selection and powers vary by court system. Federal district judges appoint federal magistrate judges, while Pennsylvania voters elect local magisterial district judges.Read more in the glossary judges are appointed by district judges for 8-year terms. States use appointments too: in New Jersey, the governor appoints county prosecutors with the state Senate’s consent. In 5 states, the governor appoints the attorney general.
Chosen by another elected body
Some officials are picked by people who were themselves elected. In Maine, the Legislature elects the secretary of state, the attorney general, the treasurer and the state auditor. In many council-manager cities, the council hires the manager and often chooses the mayor from among its members. In Pennsylvania, elected school boards choose their districts’ superintendents.
Same title, different path
A title does not tell you how someone got the job. Pennsylvania voters elect magisterial district judges, while Virginia’s magistrates are appointed. Most Pennsylvania school directors are elected, but Philadelphia’s school board is appointed by the mayor and confirmed by City Council. New Jersey voters elect county sheriffs but not county prosecutors. To know how an office is filled, check the state ConstitutionThe highest law of a country or state. It sets up the government, divides its powers and protects rights, and the United States and each state have their own.Read more in the glossary, state law or local CharterA document, adopted under state law, that sets up a local government’s structure and powers. In Pennsylvania, voters adopt or change a home rule charter by referendum.Read more in the glossary that creates it.
The Senate of the United States shall be composed of two Senators from each State, elected by the people thereof, for six years; and each Senator shall have one vote.
Questions people ask
Do voters elect the president directly?
Are federal judges elected?
Who chooses a city manager?
Are school board members always elected?
Sources
Checked November 4, 2026. Primary sources first, then official records, then nonpartisan research.
How these facts were checked: our promise. Every substantive fix is listed on the corrections page.
Keep going
Offices
Which US government offices are elected?
Voters elect members of Congress, governors, legislators and many local officials, while other officials are appointed. See which offices are elected.
Elections
How does the Electoral College elect the president?
Voters choose electors, electors vote in December and Congress counts in January. See how the 538 electors are awarded and what happens if no one gets 270.
Courts
Are judges elected or appointed?
How federal judges, federal magistrate judges and state judges are chosen, and how Pennsylvania’s elected magisterial district judges differ.