The spoiler effect is a term to describe the effect of a third party candidacy on a close election, possibly tipping the balance between two relatively close leading candidates. The effect is common in the first-past-the-post election system, in which the candidate that receives a plurality of votes (and not necessarily a majority of votes) wins the election. Other voting systems, such as approval voting or instant-runoff voting, are less vulnerable to spoiler effects, but Arrow's impossibility theorem shows that no voting system that meets other reasonable criteria can avoid such effects completely.

The "spoiler" part of the phrase (which is usually used by the losing party), usually implies that the third party candidate in question is more similar to the losing party then the winning party. This term also usually implies that the people who voted for the spoiler would have voted for the losing party if the spoiler had not been present.

One example of the spoiler effect at work was the 2000 U.S. Presidential election. In that election, George W. Bush and Al Gore had a very close election in many states, with neither candidate winning a majority of the votes. Many Gore supporters contended that the votes that went to Ralph Nader, a popular third-party candidate, would have likely been votes for Gore had Nader not been in the election. They contend that Nader's candidacy "spoiled" the election for Gore, by taking away enough votes from Gore in many states to give Bush enough votes to win the electors in those states. On the other hand, some Nader defenders have claimed that many of those who voted for Nader would otherwise not have voted at all.

A novel attempt at an end run around the spoiler effect was attempted by numerous groups during the 2000 U.S. election campaign. These groups encouraged and arranged vote swapping between third party supporters in states in which the polls were close and mainstream party supporters in states where a close result was not expected, a form of tactical voting with the goal of electing a preferred candidate while still giving the third party enough votes to qualify for public financing in the next election.

The spoiler effect is one of the components contributing to the effect known as Duverger's law, which states that the first-past-the-post election system creates and preserves a two-party system.