Methodology
How the official polling-station results become the map: what is counted, how the territory is grouped into nations and what limits the data have.
Elections
General elections to the Congress of Deputies: November 2011, December 2015, June 2016, April and November 2019, and July 2023. The Senate is not included.
What is counted
- Voters = votes for candidates + blank votes + spoiled votes. Turnout = voters / electorate.
- Each party's percentage is calculated over the votes for candidates, without blank or spoiled votes. That is why it does not match the official percentage, which is calculated over valid votes (including blank votes).
- The vote from abroad (CERA, residents abroad) is not assigned to any section or municipality. Municipalities and sections exclude it; from the province upward (community, nation and State), votes and percentages include it, as in the official result, and the panel breaks it down separately. Turnout is given both ways: the official one, with it, and that of residents, without it, which is the one used by the map layer and the evolution (the vote from abroad turns out very little: with it, Ourense drops from 72 % to 53 % in 2023).
- Everything is added up from the polling station: section, municipality, province, community, nation and State.
- Merged municipalities are shown as they are today in every election: Oza-Cesuras (Oza dos Ríos and Cesuras, 2013) and Cerdedo-Cotobade (Cerdedo and Cotobade, 2016).
Nations
The map reads the State as a State of nations. Each autonomous community belongs to a nation; nations made up of several communities have internal parts, such as EAE and Nafarroa Garaia in Hego Euskal Herria.
| Nation | Parts |
|---|---|
| Hego Euskal Herria | EAE · Nafarroa Garaia |
| Països Catalans | Catalunya · País Valencià · Illes Balears |
| Galiza | Its provinces |
| Asturies | Its provinces |
| Andalucía | Its provinces |
| Canarias | Its provinces |
| Aragón | Its provinces |
| Rest of the State | By autonomous community: Cantabria, Castilla y León, Castilla-La Mancha, Extremadura, Madrid, Murcia, La Rioja, Ceuta, Melilla |
Only territory that votes for the Spanish Congress is included: from Euskal Herria, Hego Euskal Herria (Iparralde votes in France), and from the Països Catalans, the three communities in the State (the Franja de Ponent stays within Aragón). Cantabria and León are in the rest of the State. This is an editorial table and can be revised.
Parties
Up to the autonomous community, each party appears under the name it stood with there (PSC, PSdeG-PSOE, EH Bildu…). In nations made up of several communities and in the State, they are grouped under the State-wide party they belong to, as set by the Ministry itself: PSC, PSdeG-PSOE and PSOE are added up as PSOE. Where one brand stood with several State-wide tickets, they are also added up as one: En Comú Podem, Podemos-Compromís and Podemos go as Podemos, and Más País, Más País-EQUO and Más País-Chunta Aragonesista go as Más País.
For changes (▲▼) from the previous election, the same party is recognised even if its name changes (ERC-SOBIRANISTES and ERC, for example). Party colours come from our own table.
Map layers
- Winner: the party with the most votes in each area.
- Close seats (by province only, as provinces are the constituencies): votes the next party was short of taking the last seat from whoever won it: 1,000 or less, 1,000–5,000, 5,000–10,000, 10,000–20,000 and over 20,000.
- Turnout: 58 % or less, 58–64, 64–70, 70–76 and over 76 %.
- Blocs: investiture against right, at every level; in provinces, by the last seat. See «Blocs» below.
- Constituencies (by province only): small, medium and large, by the seats they elect. See «Constituency size» below.
Seats
Seats are the official ones for each constituency (the province; Ceuta and Melilla, one each), published by the Ministry of the Interior. Those of a community, a nation or the State are the sum of their provinces; 350 in total. Municipalities and sections have no seats of their own, so none are shown for them.
For the last seat in each province, the allocation is recalculated with the D'Hondt method (the proportional allocation used by the electoral law): parties with at least 3 % of the province's valid votes (including blank votes) and, in a tie, the seat goes to the one with more votes. Here the vote from abroad (CERA) is included, because the official allocation includes it. The result matches the official seats in every province and election. The margin is how many more votes the party with the best chance needed to take the last seat from whoever won it, with all other votes unchanged.
Blocs
The Blocs layer splits the parties into two blocs, those of the 2023 investiture (our own table, which can be revised):
- Investiture bloc: PSOE (with PSC, PSdeG-PSOE, PSE-EE…), SUMAR, EH Bildu, EAJ-PNV, ERC, Junts, BNG and Coalición Canaria.
- Right-wing bloc: PP, VOX, UPN and Ciudadanos.
- Predecessors, in elections before 2023: those of SUMAR (Podemos and its alliances, IU, EQUO, Más País, Compromís, MÉS per Mallorca and Chunta Aragonesista), those of Junts (CiU, DL and CDC), Amaiur (EH Bildu), Nós (BNG) and Navarra Suma (UPN).
- Others: the rest, such as UPyD, Geroa Bai, the CUP, the PRC or Teruel Existe.
In provinces, which are the constituencies, the map colours the bloc that won the last seat, more intense the more votes the other bloc was short of taking it (those of its party with the best chance): 5,000 or less, 5,000–10,000, 10,000–20,000 and over 20,000; in grey, if it went to a party outside both blocs. At the other levels (nation, community, municipality and section), the bloc with most votes, more intense the larger its lead over the other: 5 points or less, 5–10, 10–20 and over 20. The Seats tab shows each bloc's seats; the Results tab, its votes.
Constituency size
The Constituencies layer groups provinces by the number of seats they elect in each election: small, 1 to 5 seats; medium, 6 to 9; and large, 10 or more. Each group works as a territory: it adds up the votes and seats of its provinces and has its own evolution.
The groups are formed with each election's seats, so a province can change group: Jaén became small in 2015 and Badajoz in 2023, after losing a seat. In 2023, the large ones are Madrid, Barcelona, València, Sevilla, Alacant, Málaga and Murcia.
It shows the effect of size on the allocation: the fewer seats a constituency elects, the more votes it takes to win one, and the further the allocation strays from the vote percentages.
Trend
The Trend tab shows how each area has voted in the six elections, from the State down to the municipality (sections change from year to year and cannot be compared). Each line is a party, even if its name changes (shown with its latest name); parties that reached 4 % at least once are shown, seven at most. If two candidacies of the same party stand in one election, the one with more votes counts. With the Blocs layer, one line per bloc.
The tab follows the map layer. With Turnout, the area's turnout and, for reference, the State's. With Close seats, in a province, by how many votes the last seat was decided in each election and who won it; in a larger area, how many last seats were decided by 1,000 or 5,000 votes or fewer. With Constituencies, in the State, the first party's bonus in each size group: its share of seats minus its share of votes. It works for every aggregation: State, nations, communities, provinces, municipalities and constituencies by size.
Territory and census sections
- Census sections: the INE (Spain's statistics institute) publishes the section boundaries as of 1 January each year. Each election is drawn with the year that best matches the sections of its polling stations: November 2011 → 2012; December 2015 → 2015; June 2016 → 2016; April 2019 → 2019; November 2019 → 2020; July 2023 → 2024.
- Municipalities: INE boundaries from 2025. Provinces, communities and nations are made by joining their municipalities.
- Boundaries are simplified so that the website loads quickly, without opening gaps between neighbouring areas.
- Common land that belongs to no municipality (such as the Bardenas Reales) has no voters and is shown in grey.
Place names
Names of municipalities, provinces and communities are in the local language, in every language of the website: those of the INE (in bilingual municipalities, the local form) and, in Hego Euskal Herria, the official Basque names and, in Asturies, the Asturian names (in the west, in Galician-Asturian). The search box also finds the INE names (Gijón, Pamplona…). Party names are those of the Ministry.
Regional elections
With the Elections selector (or the A key), the map switches to the elections to the parliaments of the seventeen autonomous communities, from 2008 to 2026, with the official results published by each community (see Sources). Ceuta and Melilla are not included: their assemblies are elected together with the municipal councils.
- Timeline: the state of the regions at each moment, month by month up to today: each community with its election in force, the latest one up to that day. It changes whenever any of them votes, from May 2011 (when those of Andalusia, 2008; Galicia and the Basque Country, 2009; and Catalonia, 2010, were still in force).
- Election search (to the right of the timeline): a day with elections (28, since 2008) or the election of a single community, by month, year or community. The map shows only what was chosen and leaves the rest empty; tapping another community tells you why it is not there and leads to its elections. The × goes back to the timeline.
- No nations: each parliament belongs to one community, and the communities of the same nation vote on different dates; so regional elections go from the community down to the section, with no nations and no state-wide total.
- Census sections: where the source gives results by polling station or by section (58 of the 78 elections; Andalusia, by section from its API), polling stations are added up by section, as for Congress, and drawn with the INE section map that best matches them. Where the source only gives them by municipality (Asturias, Aragon 2011 and 2015, Murcia except 2019, Cantabria 2015 and 2019, Castilla-La Mancha except 2019) or by province (Extremadura), those areas are shown by municipality when zooming in.
- As for Congress: voters = votes for parties + blank + invalid (where the source gives no blank or invalid votes, its own voter count); percentages of the votes for parties; the vote from abroad (CERA) included from the province upward where the source gives it; merged municipalities as they are today.
- Abbreviations: those of each source, with the same abbreviation always written the same way (P.P. and PARTIDO POPULAR, as PP). Coalitions take the colour of their main party: Adelante Andalucía in 2018, formed by Podemos and IU, as Podemos.
- The Canary Islands have voted with two ballots since 2019, an island one and a regional one: the map uses the island ballot; the seats, both.
- Changes (▲▼): from the previous election in the same community.
- Close seats: by community: the last seat of its closest constituency, with its name (all its constituencies in the Seats tab). No blocs, which are those of Congress (see Blocs), and no Constituencies layer, also for Congress only.
More detail: how each parliament allocates its seats (electoral thresholds and constituencies)
- Seats: each parliament allocates its own by the D'Hondt method in each constituency, with the threshold of its electoral law: 3 % of the valid votes in the constituency (Andalusia, Aragon, Asturias, Castilla y León, Castilla-La Mancha, Catalonia, Navarre, the Basque Country and Murcia since 2019) or 5 % (the Balearic Islands, Cantabria, Galicia, Madrid and La Rioja); 5 % of the whole community (Murcia until 2015; in the Valencian Community, of the votes cast); in Extremadura, 5 % in the province or in the whole community; in the Canary Islands, on each island, 30 % of the island or 6 % of the region (since 2019, 15 % or 4 %) and, in the regional constituency, 4 %. The constituencies are the provinces, except for the islands (the Balearic and the Canary Islands, which since 2019 also elect 9 seats across the whole community), the three in Asturias and the five in Murcia until 2015. As in the official allocation, with the vote from abroad (CERA); in Castilla y León until 2022, whose polling-station data do not include it, with the official votes of each party that won seats. The result matches, in every election, the official seats published by each community (see Sources). They are shown by community, that of each parliament, with its constituencies; provinces, municipalities and sections have no seats of their own.
Known limits
- Municipalities and sections exclude the vote from abroad (CERA): their sum is slightly lower than their province's total. From the province up it is included, except in the regional elections whose source does not give it (there, totals are slightly lower than the official ones). The turnout layer uses residents' turnout at every level.
- Percentages over votes for candidates, not over valid votes.
- In 2015, in the polling stations of about 2,200 municipalities, the Ministry's files do not agree with each other: the polling stations' total of votes for parties falls short of the sum of each party's votes (43,292 votes across the State, 0.17 %). The sum of the parties is used, for percentages and for voters (plus blank and invalid votes), as it is the one that matches the official provincial totals.
- Section boundaries change from year to year: the same section may not be comparable between elections. That is why sections show no changes.
- Changes (▲▼) compare with the previous election of the same kind: for Congress, the previous general election; for regional elections, the previous election in each community.
Regional elections: what is missing or incomplete in the sources
- Extremadura: by province only (Badajoz and Cáceres), with the results of the Electoral Board of Extremadura checked against the DOE (official gazette): no results by municipality have been published. Its official totals include the vote from abroad (CERA), which cannot be separated.
- Cantabria: none for 2011 either. For 2015, the provisional count (it matches ICANE's final figures); for 2019, only the votes for each party, with small parties added up as «Otros» (others) and no electorate or voters.
- Castilla-La Mancha: in 2011 and 2015, small parties added up as «Otros» (others) and no blank or invalid votes; for 2023, the final votes by municipality; each municipality's electorate, blank and invalid votes from the provisional count, which lacks polling stations in 23 municipalities (there, no turnout; each province's turnout is the official one in the DOCM, without the vote from abroad); no sections, because the final count is not published by polling station.
- Canary Islands: at some polling stations in 2011 (and one in 2019), the source gives an impossible electorate, zero or smaller than the voters: those municipalities (Las Palmas de Gran Canaria, La Laguna, Mogán, Puntallana and Alajeró in 2011; Santa Lucía de Tirajana in 2019) have no turnout. El Pinar de El Hierro comes with Adeje's number: it gets its own.
- Castilla-La Mancha 2015: the source shifts the code of 66 municipalities (and, in seven, the name as well): each one gets its own by its name and, where the name is wrong too, by its electorate (that of the 2015 general election).
Checks
Automated tests check, for every version, that Congress adds up to 350 seats, that they match the official 2023 seats and that the votes at each level add up to the same as those at the level below.
For regional elections, that the votes of each municipality add up, that the totals match those each source publishes separately, where it does, and that the D'Hondt allocation gives each parliament's official seats.