Calculate the Banzhaf power index for a weighted voting system: enter the quota and player weights to see each player’s swings and share of power.
Related Calculators
- Shapley-Shubik Power Index Calculator
- Gallagher Index Calculator
- Effective Number of Parties Calculator
- Percentage Points Calculator
- Percentage Calculator
- All Math and Numbers Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Weighted voting | Counts every coalition of a weighted voting system and gives each player’s swings and normalized Banzhaf index | Requires the quota and the weights of 1 to 18 players |
| Index from swings | Finds one player’s normalized Banzhaf index from swing counts that are already known | Requires the player swing count and the total swing count |
| Player swing count | Finds the swing count that a given index implies | Requires the total swing count and the normalized index in percent |
| Total swing count | Finds the total swing count that a player’s swings and index imply | Requires the player swing count and the normalized index in percent |
| Example system | Runs the Weighted voting count on one of seven ready-made systems | Requires a choice from the list of example systems, each written as [quota; weights] |
Weights are separated by commas or semicolons and can be decimals with up to 6 places. The quota must be greater than zero, and no value can exceed 1 billion. Weighted voting and Example system return a table with every player’s swings and index, plus the number of winning coalitions and the total swings.
Banzhaf Index Formulas
| BI | Normalized Banzhaf index of the player (%) |
| Si | Swing count of the player: the number of winning coalitions in which the player is critical |
| Stotal | Total swing count: the swing counts of all players added together |
A coalition wins when the combined weight of its members meets or exceeds the quota. A player is critical in a winning coalition when the coalition would lose without that player [1]. The indexes of all players add up to 100%.
Weighted voting
The calculator examines every subset of the players, which is 2n coalitions for n players, and adds one swing to each critical member of each winning coalition. In the system [16; 7, 6, 3, 3, 2] there are 6 winning coalitions and the swing counts are 6, 6, 2, 2 and 0, for a total of 16 [1]. The first two players each hold 6 รท 16 ร 100 = 37.5%, the next two hold 12.5% each, and the last holds 0%.
A player with 0% is never critical, whatever its weight. If no coalition reaches the quota, every swing count is zero and the index is reported as undefined, since the formula would divide by zero.
Index from swings
The main formula is applied directly to two whole-number counts from the same voting system. A player with 5 of 20 swings has an index of 5 รท 20 ร 100 = 25%. A player swing count above the total is rejected, and so is a total of zero.
Player swing count
This is the main formula rearranged. With 20 total swings and an index of 25%, the player has 20 ร 25 รท 100 = 5 swings. Real swing counts are whole numbers, so a fractional answer means the index entered was rounded.
Total swing count
A player with 5 swings and an index of 25% implies 5 ร 100 รท 25 = 20 total swings. An index of 0% is rejected, because it leaves the total undetermined.
Example system
Each example is counted the same way as Weighted voting. In [51; 49, 49, 2] any two players reach the quota and no single player does, so each of the three is critical twice and holds 2 รท 6 ร 100 = 33.33%. The player with a weight of 2 has the same power as the players with a weight of 49. The examples are mathematical systems and do not describe the voting rules of any real body.
Limits of This Estimate
- The index measures power inside the voting model. It treats every coalition as equally possible and does not account for alliances, abstentions or how players are likely to vote.
- Weighted voting is limited to 18 players, because the number of coalitions doubles with each player added.
- Index from swings, Player swing count and Total swing count only apply the ratio. They do not check that the counts could come from a real voting system.
Sources
- David Lippman, Math in Society, Weighted Voting: winning coalitions, critical players, the Banzhaf power index and the [16; 7, 6, 3, 3, 2] example
