General elections were held in Brazil on 2 October 2022 to elect the president, vice president, the National Congress, the governors, vice governors and legislative assemblies of all federative units, and the district council of Fernando de Noronha. As no candidate for president (and also for governor in some states) received more than half of the valid votes in the first round, a runoff election for these offices was held on 30 October. Luiz Inácio Lula da Silva received the majority of the votes in the second round and was elected president of Brazil for a third, non-consecutive term.

Incumbent president Jair Bolsonaro was seeking a second term. He had been elected in 2018 as the candidate of the Social Liberal Party but left that party in 2019, followed by the resignation or dismissal of many of his ministers during his term. After a failed attempt to create the Alliance for Brazil, he joined the Liberal Party in 2021. For the 2022 election, he selected Walter Braga Netto of the same party as his vice presidential candidate rather than the incumbent vice president Hamilton Mourão.

Former president Luiz Inácio Lula da Silva, of the left-wing Workers' Party, was a candidate for a third non-consecutive term after previously having been elected in 2002 and re-elected in 2006. His successor from the same party, former president Dilma Rousseff, was elected in 2010 and re-elected in 2014, but was impeached and removed from office in 2016 due to accusations of administrative misconduct. Lula's intended candidacy in 2018 was disallowed due to his conviction on corruption charges in 2017 and subsequent arrest; a series of court rulings led to his release from prison in 2019, followed by the annulment of his conviction and restoration of his political rights by 2021. For his vice presidential candidate in the 2022 election, Lula selected Geraldo Alckmin, who had been a presidential candidate of the Brazilian Social Democracy Party in 2006 (facing Lula in the second round) and 2018 but changed his affiliation to the Brazilian Socialist Party in 2022.

Lula received the most votes in the first round, with 48.43% to Bolsonaro's 43.20%, which made him the first presidential candidate to obtain more votes than the incumbent president in Brazil. While Lula came close to winning in the first round, the difference between the two leading candidates was closer than opinion polls had suggested, and right-wing parties made gains in the National Congress. Nevertheless, Lula's vote share was the second-best performance for the Workers' Party in the first round of a presidential election, behind only his own record of 48.61% in 2006. In the second round, Lula received 50.90% of the votes to Bolsonaro's 49.10%, the closest presidential election result in Brazil to date. Lula became the first person to secure a third presidential term, receiving the highest number of votes in a Brazilian election. At the same time, Bolsonaro became the first incumbent president to lose a bid for a second term since a 1997 constitutional amendment allowing consecutive re-election.

In response to Lula's advantage in pre-election polls, Bolsonaro had made several pre-emptive allegations of electoral fraud. Many observers denounced these allegations as false and expressed concerns that they could be used to challenge the outcome of the election. On 1 November, during his first public remarks after the election, Bolsonaro refused to elaborate on the result, although he did authorise his chief of staff, Ciro Nogueira Lima Filho, to begin the transition process with representatives of president-elect Lula on 3 November. On 22 November, Bolsonaro and his party requested that the Superior Electoral Court invalidate the votes recorded by electronic voting machines that lacked identification numbers, which would have resulted in him being elected with 51% of the remaining votes. On the next day the court rejected the request and fined the party R$22.9 million (US$4.3 million) for what it considered bad faith litigation. Lula was sworn in on 1 January 2023; a week later, pro-Bolsonaro protestors stormed the offices of the National Congress, the Presidential Palace, and the Supreme Federal Court, unsuccessfully attempting to overthrow the newly elected government. The elected members of the National Congress were sworn in on 1 February.

On 11 September 2025, the Supreme Federal Court sentenced Bolsonaro and Braga Netto to more than 25 years in prison for attempting to overthrow the election results.

Background From 1994 to 2014 presidential elections in Brazil were dominated by candidates of the centrist Brazilian Social Democracy Party and the left-wing Workers' Party. After unsuccessful attempts in the 1989, 1994, and 1998 presidential elections, Workers' Party candidate Luiz Inácio Lula da Silva was elected in the 2002 and 2006 presidential elections. His successor from the same party, Dilma Rousseff, was elected in the 2010 and 2014 presidential elections. The controversial 2016 impeachment of Rousseff removed her from office due to allegations of administrative misconduct, and she was succeeded by her vice president, Michel Temer of the centrist Brazilian Democratic Movement. In 2017, Operation Car Wash controversially resulted in Lula being convicted on charges of corruption by judge Sergio Moro and arrested, which prevented his intended candidacy in the 2018 Brazilian presidential election, despite his substantial lead in the polls. He was replaced as his party's presidential candidate by former mayor of São Paulo, Fernando Haddad, who lost to right wing candidate Jair Bolsonaro of the Social Liberal Party.

In 2019, Bolsonaro left the Social Liberal Party. This was followed by the dismissal or resignation of many members of the Bolsonaro administration, including Moro, whom he had appointed as Minister of Justice and Public Safety. Bolsonaro then attempted to create another party, the Alliance for Brazil, but he was unsuccessful. In 2021, Bolsonaro joined the Liberal Party and selected Walter Braga Netto of his party as the vice presidential candidate instead of Hamilton Mourão, the incumbent vice president. A series of rulings by the Supreme Federal Court questioning the legality of Lula's trial and the impartiality of then judge Moro led to Lula's release from prison in 2019, followed by the annulment of Moro's cases against Lula and the restoration of Lula's political rights by 2021. Lula launched his candidacy for president in 2022, selecting as his vice presidential candidate Geraldo Alckmin, who had been a presidential candidate of the Brazilian Social Democracy Party in 2006 and 2018 but changed his affiliation to the left-wing Brazilian Socialist Party in 2022. The three parties supporting Bolsonaro in 2022 (Liberal Party, Progressistas, and Republicans) had supported Alckmin in 2018 and Rousseff in 2014. After Bolsonaro's departure from the Social Liberal Party, the party merged with the Democrats to form the Brazil Union in 2022.

Electoral system

Brazil's president and vice president are elected as a joint ticket using the two-round system. The first round of elections is held on the first Sunday of October, which in 2022 was on 2 October. A candidate who receives more than 50% of the total valid votes in the first round is elected. If the 50% threshold is not met by any candidate, the two candidates who receive the most votes in the first round participate in a second round of voting, held on the last Sunday of October (in this instance, 30 October 2022), and the candidate who receives a plurality of votes in the second round is elected. The 2022 Brazilian gubernatorial elections to elect the governors and vice governors of all states of Brazil and of the Federal District were held on the same dates and with the same two-round system as the presidential election. One-third of the 81 members of the Brazilian Senate were up for election in 2022, one senator being elected from each of the states and the Federal District using first-past-the-post voting. The other two-thirds of the Senate were elected in 2018 and continued in office.

All 513 members of the Chamber of Deputies (federal deputies) are elected from 27 multi-member constituencies corresponding to the states and the Federal District, varying in size from 8 to 70 seats. All members of the Legislative Assemblies of Brazilian states (state deputies) and of the Legislative Chamber of the Federal District (district deputies), varying in size from 24 to 94 seats, are also elected. These elections are held using open list, proportional representation, with seats allocated using integer quotients and the D'Hondt method. All seven members of the District Council of Fernando de Noronha are elected by single non-transferable vote. Unlike elections for other offices in Brazil, candidates for this council are not nominated by political parties.

Voters

Voting in Brazil is allowed for all citizens over 16 years old. There is compulsory voting for literate citizens between 18 and 70 years old except conscripts; as there is conscription in Brazil, those who serve the mandatory military service are not allowed to vote. Those who are required but do not vote in an election and do not present an acceptable justification, such as being absent from their voting locality at the time, must pay a fine, normally R$3.51, which is equivalent to US$0.67 as of October 2022. In some cases, the fine may be waived, reduced, or increased up to R$35.13 (US$6.67).

The Brazilian diaspora may only vote for president and vice president. Due to the Equality Statute between Brazil and Portugal, Portuguese citizens legally residing in Brazil for more than three years may also register to vote in Brazilian elections.

Candidates and political parties

All candidates for federal, state, Federal District, and municipal offices must be nominated by a political party. For offices to be elected by majority or plurality (executive offices and senators), parties may form an electoral coalition (coligação) to nominate a single candidate. The coalitions do not need to be composed of the same parties for every nomination, do not need to be maintained after the election, and are not valid for offices to be elected proportionally (deputies and aldermen). A new law, valid for this election, also allowed parties to form a different type of alliance called federation (federação), which acts as a single party to nominate candidates for all offices in all locations, including those to be elected proportionally, and must be maintained with a single leadership structure over the course of the elected legislature. Federations may also act as parties to form coalitions. For 2022, the federations formed were Brazil of Hope (PT–PCdoB–PV), Always Forward (PSDB–Cidadania), and the PSOL REDE Federation (PSOL–REDE).

For offices to be elected proportionally, each party must nominate candidates of each sex in a distribution between 30 and 70%. Under rulings by the Superior Electoral Court and the Supreme Federal Court, parties must also allocate their funds and broadcast time proportionally to the number of their candidates of each sex and race.

Procedure

Voting in Brazilian elections can only be done in person and only on election day, which is always a Sunday. There is no provision for either postal voting or early voting. Voter registration must be done in advance, and each voter can only vote in one designated voting station, either based on the voter's registered domicile or at a different location that the voter must specifically request if planning to be there temporarily on election day. Voters must provide photo identification at their voting station before proceeding to vote.