Who chose Spain's governments?
How to read this: the figure is the smallest number of people who, by voting for a different party in just the right seats, would have changed who could govern. The smaller it is, the closer the election was.
← All countries, closest election first
Tap an election to see which seats would have decided it. "Majority" means the largest party won more than half of all seats; ≤ means "at most".
| Election | Largest party | Fewest voters needed | Seats that would change hands |
|---|---|---|---|
| Elecciones generales 2023 | People's Party 136 | ≤ 15,119 | 9 of 350 |
| Elecciones generales November 2019 | Spanish Socialist Workers' Party 119 | ≤ 116,810 | 16 of 350 |
| Elecciones generales April 2019 | Spanish Socialist Workers' Party 122 | ≤ 348,112 | 30 of 350 |
| Elecciones generales 2016 | People's Party 135 | ≤ 337,235 | 26 of 350 |
| Elecciones generales 2015 | People's Party 120 | ≤ 121,413 | 16 of 350 |
| Elecciones generales 2011 | People's Party 179 (majority) | ≤ 10,928 | 4 of 350 |
| Elecciones generales 2008 | Spanish Socialist Workers' Party 167 | ≤ 34,025 | 8 of 350 |
| Elecciones generales 2004 | Spanish Socialist Workers' Party 163 | ≤ 25,926 | 9 of 350 |
| Elecciones generales 2000 | People's Party 182 (majority) | ≤ 12,177 | 7 of 350 |
| Elecciones generales 1996 | People's Party 153 | ≤ 12,248 | 7 of 350 |
| Elecciones generales 1993 | Spanish Socialist Workers' Party 153 | ≤ 35,835 | 12 of 350 |
| Elecciones generales 1989 | Spanish Socialist Workers' Party 168 | ≤ 354,234 | 35 of 350 |
| Elecciones generales 1986 | Spanish Socialist Workers' Party 180 (majority) | ≤ 4,258 | 5 of 350 |
| Elecciones generales 1977 | Union of the Democratic Centre 156 | ≤ 193,026 | 23 of 350 |
How this works
The data
The official results of 14 national elections in Spain, seat by seat, from the country's electoral authority. Sources
The method
Where each seat has one winner (whoever gets the most votes), the fewest people who could change a seat are the winner's voters who would need to switch to the runner-up: half the winning margin, plus one. We line up every seat from cheapest to dearest and find, exactly, the smallest set that would have cost the largest party its majority or made another party the largest, whichever takes fewer voters.
Where seats are shared out from party lists, district by district, we find the fewest votes moving from one party to another that would move a seat, using the country's own counting rule, and add them up until the outcome changes. That gives an upper bound: the true minimum can only be lower.
What this does not claim
It measures how close each election came, from the votes as counted, not how anyone would really have voted.
Words used here
- Majority (in a seat): how many more votes the winner got than the runner-up. Majority (in parliament): more than half of all seats.
- Threshold: the smallest share of the vote a party needs before it wins any list seats.
- Upper bound (≤): the most voters it could take; the true smallest number may be lower.
- D'Hondt: the counting rule used here to turn each party's votes into seats; it slightly favours larger parties.
Spotted a mistake? Write to [email protected] with the page address and what looks wrong. We check every message and correct the page if we got it wrong.

