---
title: "D’Hondt method calculator: seats per party | Borja Burguillos"
description: "Free D’Hondt seat calculator. Enter the votes, get the seats, the quotient table and the votes each party needs for one more seat. All 52 Spanish provinces, 2026."
url: "https://borbur.net/tools/dhondt-calculator/"
language: "en"
author: "Borja Burguillos"
date_modified: "2026-11-14T09:30:00+04:00"
alternate_es: "https://borbur.net/es/herramientas/calculadora-dhondt/"
---

Free tool · Spain votes on 29 November 2026

# D’Hondt calculator: how many seats does each party win?

By [Borja Burguillos](https://borbur.net/about/) · Updated 14 November 2026

## In short

Enter each party’s votes and the calculator shares out the seats with the D’Hondt method, the formula Spain uses for Congress. Parties below 3% of the valid votes are left out (blank votes count as valid). Each remaining party’s votes are divided by 1, 2, 3 and so on, and the seats go to the highest results. It comes loaded with the official seats of all 52 constituencies for the 29 November 2026 election, and it shows how many more votes each party would need for its next seat.

*Interactive calculator: open the page in a browser to use it.*

## Key facts

- **Seats in Congress:** 350, in 52 constituencies (50 provinces plus Ceuta and Melilla)
- **Largest and smallest:** Madrid 38 and Barcelona 32; Soria 2; Ceuta and Melilla 1 each
- **Threshold:** 3% of the valid votes in the constituency; blank votes count as valid, spoilt ballots do not
- **Ties:** The seat goes to the party with more votes in total; if that is also tied, it is drawn by lot (LOREG, article 163)
- **Change since 2023:** Madrid gains a seat (37 to 38) and Cádiz loses one (9 to 8)

## How it works

### 1. Pick the constituency

Choose a province to load its official number of seats for the 29 November 2026 general election, or type your own number of seats for any other D’Hondt election.

### 2. Enter the votes

Type the votes of each party and the blank votes. Blank votes count towards the 3% threshold but win no seats. Spoilt (null) ballots are not valid votes, so leave them out.

### 3. Read the result

The calculator leaves out parties below the threshold, divides each remaining party’s votes by 1, 2, 3 and so on, and gives one seat to each of the highest quotients. The quotient table shows every division, and the last column shows how close each party is to its next seat.

## The rules it follows

The calculator applies article 163 of Spain’s general electoral law (LOREG): the 3% threshold on the valid votes of the constituency, the division of votes by 1, 2, 3 and so on up to the number of seats, and seats for the highest quotients.

Ties: if two parties have the same quotient, the seat goes to the one with more votes in total. If the totals are also equal, the law says the first tie is drawn by lot and later ones alternate. The calculator flags that case instead of guessing.

The results are only as good as the votes you type in. The calculator does not forecast anything, and it does not apply to the Senate, where the candidates with the most votes win.

Want the method explained with a worked example? Read the guide: [How does the D’Hondt method work? Spain’s seat formula, step by step](https://borbur.net/topics/dhondt-method/)

## Go deeper in the book

Go deeper in the book

### [España, caballo ganador](https://borbur.net/books/espana-caballo-ganador/)

Change the incentives and you change the country

[Get an email when it’s out](https://borbur.net/books/espana-caballo-ganador/#notify)

[About the book](https://borbur.net/books/espana-caballo-ganador/)

## Questions

How do you calculate seats with the D’Hondt method?

Leave out the parties below the threshold (3% of the valid votes in Spain’s Congress elections). Divide each remaining party’s votes by 1, 2, 3 and so on, up to the number of seats. Rank all the results and give one seat to each of the highest, until the seats run out.

Do blank votes count?

Yes, for the threshold: in Spain blank votes are valid votes, so they raise the 3% bar slightly. They do not win seats. Spoilt (null) ballots are not valid votes and count for nothing.

How many seats does each province elect on 29 November 2026?

Madrid 38, Barcelona 32, Valencia 16, Alicante and Sevilla 12, Málaga 11, Murcia 10, down to Soria with 2 and Ceuta and Melilla with 1 each, 350 in total. The calculator loads every province from Royal Decree 806/2026.

What happens if there is a tie?

The seat goes to the party with more votes in total. If both parties also have the same total, the first tie is drawn by lot and later ones alternate, under article 163 of the electoral law.

How many votes does a seat cost?

It depends on the province and on how the votes are spread. The calculator shows, for each party, how many more votes it would need to win one more seat if everything else stayed the same.

## Sources

1. [Real Decreto 806/2026, de 5 de octubre, de disolución del Congreso y del Senado y de convocatoria de elecciones (BOE núm. 248, 6 de octubre de 2026)](https://www.democrata.es/uploads/s1/32/98/39/7/boedisolucioncortes.pdf)
2. [La Moncloa, Referencia del Consejo de Ministros (5 de octubre de 2026)](https://www.lamoncloa.gob.es/consejodeministros/referencias/paginas/2026/20261005-referencia-convocatoria-elecciones.aspx)
3. [Ley Orgánica 5/1985, del Régimen Electoral General (LOREG), artículos 162 y 163, texto consolidado (BOE)](https://www.boe.es/buscar/act.php?id=BOE-A-1985-11672)
4. [Maldita.es, Cómo funciona el sistema D’Hondt y por qué no es una ley](https://maldita.es/malditodato/20191111/elecciones-generales-como-se-reparten-los-escanos-y-como-funciona-el-sistema-dhondt-y-por-que-no-es-una-ley/)

Updated: 14 November 2026

## More books

[Coming soon**España, caballo ganador**Change the incentives and you change the country](https://borbur.net/books/espana-caballo-ganador/) · [Book**Why Bitcoin Had to Exist**The story of broken money](https://borbur.net/books/why-bitcoin-had-to-exist/) · [Book**Stablecoins for a Better World**Financial inclusion and social good](https://borbur.net/books/stablecoins-for-a-better-world/) · [Book**Beyond the Game**Web3 and the future of sports](https://borbur.net/books/beyond-the-game/)

## [Borja Burguillos](https://borbur.net/about/)

Borja writes for people who want to understand money and incentives without the jargon. Born in Madrid and based in Dubai since 2012, he has advised companies on people and pay, built tech startups, and co-chairs the People & Organisation Committee at the Middle East Stablecoin Association.

WorldatWork Total Rewards and CAIA certified, CFA Investment Foundations, executive programmes at Wharton and IE Business School.

[X @Borbur](https://x.com/Borbur) · [LinkedIn](https://www.linkedin.com/in/borjaburguillos) · [Telegram](https://t.me/borbur) · [YouTube](https://www.youtube.com/@BorjaBurguillos)

---
Source: https://borbur.net/tools/dhondt-calculator/ · By Borja Burguillos (borbur.net). Index of all pages: https://borbur.net/llms.txt
