Free tool · Spain votes on 29 November 2026
D’Hondt calculator: how many seats does each party win?
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.
The calculator
Put this calculator on your website
Free to use on any blog, newspaper or school website. Copy the code below and paste it where you want the calculator to appear. It loads the same official 2026 seats, sets no cookies and shows no ads.
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




