Cosets and Lagrange's Theorem
How many ways can a finite group be sliced into equal-sized pieces by a subgroup? This question has a startlingly clean answer. It is one of the first truly structural facts a student meets in group theory. Given a subgroup of a finite group , the group splits into disjoint blocks. These blocks are the cosets of , each containing exactly elements. Counting these blocks immediately forces to divide : this is Lagrange's Theorem. The importance of this fact is hard to overstate. It converts a qualitative question ("is a subgroup of ?") into a quantitative constraint (" must divide "). This instantly rules out most candidate subgroup orders without any further work. It explains why a group of order 15 cannot contain an element of order 4. It also explains why groups of prime order have no proper nontrivial subgroups at all. It is the seed from which the order-of-an-element theorem grows. Fermat's Little Theorem and eventually the Sylow theorems also grow from it. The big picture is a partition: cosets of tile into non-overlapping translates of . All these translates are the same size. They are like identical tiles covering a floor with no gaps and no overlaps. This geometric picture of an equivalence relation is the true engine behind the theorem. Lagrange's Theorem is really a counting argument dressed up in algebraic language. Once the partition is understood, the divisibility is immediate. This article builds the coset machinery from scratch. It covers the equivalence relation behind cosets, and the proof that every coset has the same cardinality as . It covers the resulting partition of , the definition of the index , and the full proof of Lagrange's Theorem. It closes with worked examples, and a counterexample showing why finiteness (or an appropriate hypothesis) is needed. Finally, it points toward where cosets reappear — most immediately in the theory of Normal Subgroups and Group Actions.
- For a subgroup and , the left coset and right coset are translates of .
- Distinct left cosets are either identical or disjoint, so the left cosets partition .
- Every coset of has exactly the same cardinality as (via a bijection ).
- The index is the number of distinct left cosets of in .
- Lagrange's Theorem: if is finite, , so divides .
- Consequences: element orders divide ; groups of prime order are cyclic with no proper nontrivial subgroups.
- Key idea: cosets are equal-sized tiles that partition a group, and counting tiles proves that subgroup order divides group order.
Where this lives today
Cosets and Lagrange's Theorem are not a historical curiosity confined to pure algebra — they recur constantly wherever discrete symmetry or modular structure appears.
- Number theory: Fermat's Little Theorem and Euler's Theorem are direct corollaries of Lagrange's Theorem applied to the multiplicative groups and ; this underlies primality testing and the correctness of RSA-style cryptographic schemes.
- Cryptography: the security and correctness of Diffie–Hellman key exchange and RSA rely on group orders and the fact that element orders divide the order of the ambient multiplicative group, a direct application of Lagrange's corollary.
- Coding theory: cosets of a linear code (a subgroup of ) partition the ambient space into equal-size classes used in syndrome decoding, a direct combinatorial echo of coset partitioning.
- Crystallography and physics: the classification of crystallographic symmetry groups uses subgroup indices to organize space groups into point-group cosets, and coset spaces appear as configuration spaces (e.g. spontaneously broken symmetry vacua in particle physics are parametrized by a coset space ).
- Computer science / algorithms: coset enumeration (the Todd–Coxeter algorithm) computes the index of a subgroup given by generators and relations, used in computational group theory software.
- Combinatorics: counting arguments in enumerative combinatorics (e.g. Burnside's lemma / the orbit-counting theorem in Group Actions) build directly on the coset-counting technique introduced here.
:::quiz[In with , what is ?]
- 1
- 2
- 3 ✓
- 6
:::faq[What exactly is the index when is infinite?] The index is defined as the number of distinct left cosets of in , and this definition makes sense even when is infinite; it can be a finite number or an infinite cardinal. For example, in with , there are only 2 cosets (evens and odds), so even though itself is infinite. In contrast, taking in the same group gives . The equal-size-partition part of the coset argument works for infinite groups too; only the clean finite arithmetic equation (and the resulting integer divisibility conclusion) is specific to the finite case.
Ask the tutor: Can you show me why Cauchy's Theorem gives a partial converse to Lagrange's Theorem for prime divisors?
Let be a group and let be a subgroup. For , define the left coset of determined by to be the set
and the right coset of determined by to be
The element is called a representative of the coset (respectively ). Define a relation on by
This is an equivalence relation on (proved below), and its equivalence classes are exactly the left cosets of . (An analogous relation produces the right cosets.) The index of in , written , is the number of distinct left cosets of in (a cardinal number, possibly infinite; when is finite it is always finite since it is at most ).
Intuition
Think of as a set of points and as a "shape" sitting inside it containing the identity . Left-multiplying every point of by a fixed rigidly translates that shape to a new location elsewhere in — the same size and structure, just shifted. Because group multiplication by is invertible (multiply by to undo it), this translation cannot stretch, shrink, or tear the shape: the translated copy has exactly as many elements as itself. The remarkable fact is that as ranges over all of , these translated copies of never partially overlap: two cosets and are either the exact same set or completely disjoint. So ends up perfectly tiled by non-overlapping, identically-sized copies of . If is finite, we can simply count tiles: the number of tiles times the size of each tile equals the size of . That single sentence is Lagrange's Theorem.
Let be a finite group and let be a subgroup of . Then: 1. The left cosets of partition : every element of lies in exactly one left coset of . 2. Every left coset satisfies . 3. , where is the (finite) number of distinct left cosets of in . In particular, divides .
We proceed in three steps, using the technique of exhibiting an equivalence relation whose classes are the cosets, then counting class sizes.
Step 1: is an equivalence relation, and its classes are the left cosets. Define if and only if , for .
- Reflexive: since is a subgroup (subgroups contain the identity, by the Subgroups and the Subgroup Criterion). So .
- Symmetric: Suppose , so . Since is closed under inverses, , so .
- Transitive: Suppose and , so and . Since is closed under products, , so .
Hence is an equivalence relation on , and by the standard theory of equivalence relations, is partitioned into disjoint equivalence classes. Now we identify the equivalence class of . We claim it equals :
where the last equivalence holds because means for some , i.e. , and conversely if for some then . So the equivalence class of under is precisely the left coset . Since equivalence classes partition into disjoint nonempty sets whose union is , the distinct left cosets of do the same: every lies in the coset (since and ), and two cosets are either equal or disjoint. This proves (1). (For completeness, and to justify the equal-or-disjoint claim directly without invoking general equivalence-relation theory: suppose . Pick in the intersection, so for some . Then . For any ,
since by closure of under products and inverses. Hence . By the symmetric argument , so . This directly re-derives the "equal or disjoint" dichotomy.)
Step 2: Every left coset of has exactly elements. Fix and define by .
- Well-defined and surjective onto : immediate from the definition ; every element of is for some .
- Injective: suppose , i.e. . Left-multiplying both sides by (which exists since is a group) gives . So is injective.
Thus is a bijection , so as finite sets. This proves (2).
Step 3: Counting. By Step 1, is the disjoint union of the distinct left cosets of . Since is finite, there are finitely many such cosets; let this number be , and let the distinct cosets be . Then
so, counting elements and using that a finite disjoint union has cardinality equal to the sum of the cardinalities of its pieces,
where the middle equality uses Step 2 applied to each . This proves (3). Since is a positive integer (it is finite, being at most , and at least since is itself one coset), the equation exhibits as an integer multiple of . Hence divides .
∎If is a finite group and , then the order (the order of the cyclic subgroup , as in Cyclic Groups and Generators) divides . In particular for every .
The cyclic subgroup has by definition of the order of an element (the smallest positive with equals , a fact from cyclic group theory). By Lagrange's Theorem, divides , i.e. divides . Writing for an integer , we get
∎
If for a prime , then is cyclic, and the only subgroups of are and itself.
Let be any subgroup. By Lagrange's Theorem, divides . Since is prime, its only positive divisors are and , so (giving ) or (giving ). This proves the subgroup claim. For cyclicity: since is prime, , so contains some element . The subgroup is nontrivial (it contains ), so by the subgroup dichotomy just proved, . Hence is cyclic, generated by .
∎Worked examples
Example 1: , . Let , the symmetric group on , with . Let , so . We compute the left cosets. First, . Take : then
Composing permutations right-to-left, sends (since sends , then fixes ), sends , and sends ; so . Thus
Take : then and sends , , , giving . So
These three sets, , , , are pairwise disjoint and their union is all of (each has 2 elements, elements total, matching ). So , and indeed
Note that (since gives the same coset as ) and (check: and sends ... let's verify directly: apply first then : , ... recompute carefully: sends ; then sends . Composite: , , , giving the permutation , i.e. . So , confirming consistency.) This illustrates: right cosets need not equal left cosets for this — for instance , and sends ... apply first: ; then : ; composite , , , giving read as cycle , i.e. . So , which is not equal to computed above (they share only ). This shows left and right cosets of a non-normal subgroup genuinely differ — the seed of the distinction that becomes crucial in Normal Subgroups.
Example 2: , . Let under addition mod 12, and let (this is a subgroup: it is , closed under addition mod 12 and containing , with inverses , ). Here , . Since is abelian, left and right cosets coincide; we just call them cosets. Compute cosets by adding representatives:
Check exhaustiveness: together contain , which is exactly , with no repeats. So there are exactly distinct cosets, and
consistent with Lagrange's Theorem. Notice also that (since ), illustrating that many different representatives give the same coset exactly when they differ by an element of — precisely the content of the equivalence relation from the proof.
Lagrange's Theorem as stated requires to be a finite group; drop this hypothesis and the numerical conclusion " divides " becomes meaningless or false in the naive sense, even though the partition into cosets of equal cardinality still holds. Take , the integers under addition, an infinite group. Let , the even integers, which is a subgroup of . Here and are both countably infinite cardinals, . The cosets of are (the evens) and (the odds); these two cosets partition , each is a bijective (via or similar) copy of , so , finite. The partition-into-equal-size-tiles part of the argument (Steps 1 and 2 of the proof) still works perfectly here — it never used finiteness. What breaks is Step 3, the counting step: we cannot sum " copies of " using ordinary arithmetic to recover as an integer multiple of in any way that gives useful divisibility information, because and trivially — cardinal arithmetic is degenerate here and carries no numerical content analogous to "does divide " in the integers. Worse, one can also cook up examples where itself is infinite (e.g. , , giving cosets each of size ), so the clean finite equation from Step 3 of the proof, which relies on summing finitely many equal finite terms, has no meaningful integer-divisibility analogue at all. This is precisely why the theorem's hypothesis restricts to finite : the conclusion " divides " is a statement about positive integers, and it requires (hence ) to be a genuine finite integer for the multiplication to carry the intended arithmetic meaning.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| finite, | divides ; | — |
| infinite, | Cosets still partition into equal-cardinality pieces | " divides " is not meaningful/useful (see counterexample) |
| not normal | Left cosets and right cosets both partition | in general (Example 1) |
| divides | — | need not have a subgroup of order (converse of Lagrange is false in general, e.g. has order 12 but no subgroup of order 6) |
| divides | need not have order equal to any particular divisor unless further structure (e.g. cyclicity, Sylow/Cauchy theorems) is known |
The mathematician behind it
Origins · 1 minJoseph-Louis Lagrange and how this was discovered
Lagrange was one of the towering mathematicians of the 18th century, making foundational contributions to analysis, number theory, mechanics, and the theory of equations. He never stated "Lagrange's Theorem" in the group-theoretic language used today — the abstract notion of a group did not yet exist in his lifetime. His relevant result, from an 1771 memoir on the theory of equations, concerned permutations of the roots of a polynomial and the number of values taken by a rational function under those permutations; in modern language this is a special case (for the symmetric group acting on functions of variables) of the coset-counting argument now bearing his name. The full abstract statement, for arbitrary finite groups, was crystallized later by mathematicians developing group theory in the 19th century, notably in the wake of Galois's work and subsequent systematizations by Cauchy, Cayley, and others; the name "Lagrange's Theorem" was attached in recognition of Lagrange's priority on the underlying counting idea.
Are left cosets and right cosets always the same set?
Not in general. For a subgroup , the left coset and right coset can differ when is not a normal subgroup, as shown explicitly in Example 1 with . Both collections — the set of all left cosets and the set of all right cosets — still each partition into pieces of size , and there are always equally many of each type (the map is a bijection between the two collections), so the index is the same whether computed via left or right cosets. But the individual cosets themselves need not coincide unless is normal, in which case for every , a property developed further under Normal Subgroups.
Does Lagrange's Theorem tell us a subgroup of every divisor order exists?
No — this is a very common misreading. Lagrange's Theorem is a one-directional statement: it says that if is a subgroup, its order divides . It does not assert the converse, that every divisor of is realized as the order of some subgroup. The counterexample (order 12, no subgroup of order 6) shows the converse fails in general. Partial converses — Cauchy's Theorem for prime divisors, and the Sylow Theorems for prime-power divisors — do hold, but they require substantially more machinery than the coset-counting argument used here.
How does Lagrange's Theorem imply Fermat's Little Theorem?
Let be prime and an integer not divisible by . The set under multiplication mod is a group of order (every nonzero residue mod a prime has a multiplicative inverse). The residue class of is an element of this group, so by the corollary to Lagrange's Theorem, its order divides , and hence . This is exactly Fermat's Little Theorem, recovered as a direct specialization of the "element order divides group order" corollary.
Why must every coset have exactly elements — could some cosets be smaller?
No: the bijection given by is always a genuine bijection, for every , regardless of which coset we look at. Injectivity follows from cancelling (multiplying by ), and surjectivity onto is immediate from the definition of as the image of under left-multiplication by . Since this argument uses only that is a group (so exists) and never any special property of , it applies uniformly to every coset, so all cosets — including itself, the coset of — have exactly elements, with no exceptions.
Is it true that itself is always one of the cosets?
Yes. Since is a subgroup, , and the coset of the identity element is
So is always exactly one of its own left cosets — namely the coset corresponding to the representative (or, equivalently, to any representative , since whenever , by the equal-or-disjoint dichotomy applied to ). This is why the index is always at least 1, and equals 1 precisely when .
Does this generalize beyond groups, e.g. to rings or vector spaces?
Yes, the coset idea is far more general than groups. In a vector space with subspace , the cosets partition and form the quotient vector space ; in a ring with ideal , the cosets partition and form the quotient ring . In every one of these settings the underlying mechanism is the same equivalence-relation-and-translation argument used here for groups. The group-theoretic version is the most primitive instance, and the requirement that cosets combine consistently into a well-defined quotient group structure (rather than merely a partition) is exactly what forces the extra hypothesis of normality, explored next under Normal Subgroups.