The Gallagher index "measures an electoral system’s relative disproportionality between votes received and seats allotted in a legislature." As such, it measures the difference between the percentage of votes each party gets and the percentage of seats each party gets in the resulting legislature, and it also measures this disproportionality from all parties collectively in any one given election. That collective disproportionality from the election is given a precise score, which can then be used in comparing various levels of proportionality among various elections from various electoral systems. Michael Gallagher, who created the index, referred to it as a "least squares index", inspired by the sum of squares of residuals used in the method of least squares. The index is therefore commonly abbreviated as "LSq" even though the measured allocation is not necessarily a least squares fit. The Gallagher index is computed by taking the square root of half the sum of the squares of the difference between percent of votes and percent of seats for each of the political parties. The division by 2 gives an index whose values range between 0 and 100. The larger the differences between the percentage of the votes and the percentage of seats summed over all parties, the larger the Gallagher index. The larger the index value the larger the disproportionality and vice versa. Michael Gallagher included "other" parties as a whole category, and Arend Lijphart modified it, excluding those parties. Unlike the well-known Loosemore–Hanby index, the Gallagher index is less sensitive to small discrepancies.
Attention gained in Canada
The Gallagher index gained considerable attention in Canada in December 2016 in the context of efforts to reform Canada's electoral system. The Special Committee on Electoral Reform recommended "that the Government should, as it develops a new electoral system, use the Gallagher index in order to minimize the level of distortion between the popular will of the electorate and the resultant seat allocations in Parliament." The committee recommended that "the government should seek to design a system that achieves a Gallagher score of 5 or less." In the 2015 Canadian federal election, the Gallagher index was 12.02, where 0 would be a perfectly proportional election outcome.
Examples of calculating disproportionality
New Zealand
This table uses the New Zealand 2005 election result. Note that since New Zealand uses the MMP voting system, voters have two votes. This list uses the party vote, which determines the proportionality of the House; the electorate vote determines the local member. Thus the disproportionality of the 2005 New Zealand election is 1.13, which is very low by international standards. Note that the Māori Party has the highest difference, which is significantly above the others. This is due to New Zealand's system of reserved seats for Māori. The Māori seats are allocated by votes on a separate electoral roll, and while any party can contest these seats, they have historically been won by either the Māori Party, the Labour Party, or New Zealand First.
Australia
This table uses for example the 2012 Queensland state election, one of the largest landslides in Australian electoral history. Queensland uses preferential voting in a single member system, which tends to result in far less proportionality compared to New Zealand's MMP system, especially for larger minor parties, such as The Greens or, historically, the Australian Democrats. The 2012 Queensland election had an extremely high Gallagher Index, at 31.16, due to the massive landslide in seats for the victorious LNP. Most recent Australian state and federal elections however score between 10 and 12.
The Sainte-Laguë method is considered by Gallagher to be "probably the soundest of all the measures." This is closely related to the Pearson's chi-squared test which has better statistical underpinning.