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 HH of a finite group GG, the group splits into disjoint blocks. These blocks are the cosets of HH, each containing exactly ∣H∣|H| elements. Counting these blocks immediately forces ∣H∣|H| to divide ∣G∣|G|: this is Lagrange's Theorem. The importance of this fact is hard to overstate. It converts a qualitative question ("is HH a subgroup of GG?") into a quantitative constraint ("∣H∣|H| must divide ∣G∣|G|"). 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 HH tile GG into non-overlapping translates of HH. 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 HH. It covers the resulting partition of GG, the definition of the index [G:H][G:H], 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.

Key takeaways
  • For a subgroup H≤GH \le G and g∈Gg \in G, the left coset gH={gh:h∈H}gH = \{gh : h \in H\} and right coset Hg={hg:h∈H}Hg = \{hg : h \in H\} are translates of HH.
  • Distinct left cosets are either identical or disjoint, so the left cosets partition GG.
  • Every coset of HH has exactly the same cardinality as HH (via a bijection h↦ghh \mapsto gh).
  • The index [G:H][G:H] is the number of distinct left cosets of HH in GG.
  • Lagrange's Theorem: if GG is finite, ∣G∣=[G:H]⋅∣H∣|G| = [G:H]\cdot |H|, so ∣H∣|H| divides ∣G∣|G|.
  • Consequences: element orders divide ∣G∣|G|; 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 (Z/pZ)×(\mathbb{Z}/p\mathbb{Z})^\times and (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times; 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 Fqn\mathbb{F}_q^n) 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 G/HG/H appear as configuration spaces (e.g. spontaneously broken symmetry vacua in particle physics are parametrized by a coset space G/HG/H).
  • 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 S3S_3 with H=⟨(1 2)⟩H = \langle(1\,2)\rangle, what is [G:H][G:H]?]

  • 1
  • 2
  • 3 ✓
  • 6

:::faq[What exactly is the index [G:H][G:H] when GG is infinite?] The index [G:H][G:H] is defined as the number of distinct left cosets of HH in GG, and this definition makes sense even when GG is infinite; it can be a finite number or an infinite cardinal. For example, in G=(Z,+)G = (\mathbb{Z},+) with H=2ZH = 2\mathbb{Z}, there are only 2 cosets (evens and odds), so [G:H]=2[G:H] = 2 even though GG itself is infinite. In contrast, taking H={0}H = \{0\} in the same group gives [G:H]=∣G∣=ℵ0[G:H] = |G| = \aleph_0. The equal-size-partition part of the coset argument works for infinite groups too; only the clean finite arithmetic equation ∣G∣=[G:H]⋅∣H∣|G| = [G:H]\cdot|H| (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?

DefinitionCosets and Index

Let GG be a group and let H≤GH \le G be a subgroup. For g∈Gg \in G, define the left coset of HH determined by gg to be the set

gH={ gh:h∈H }⊆G,gH = \{\, gh : h \in H \,\} \subseteq G,

and the right coset of HH determined by gg to be

Hg={ hg:h∈H }⊆G.Hg = \{\, hg : h \in H \,\} \subseteq G.

The element gg is called a representative of the coset gHgH (respectively HgHg). Define a relation ∼L\sim_L on GG by

a∼Lb  ⟺  a−1b∈H.a \sim_L b \iff a^{-1}b \in H.

This is an equivalence relation on GG (proved below), and its equivalence classes are exactly the left cosets of HH. (An analogous relation a∼Rb  ⟺  ab−1∈Ha \sim_R b \iff ab^{-1} \in H produces the right cosets.) The index of HH in GG, written [G:H][G:H], is the number of distinct left cosets of HH in GG (a cardinal number, possibly infinite; when GG is finite it is always finite since it is at most ∣G∣|G|).

Intuition

Think of GG as a set of points and HH as a "shape" sitting inside it containing the identity ee. Left-multiplying every point of HH by a fixed gg rigidly translates that shape to a new location gHgH elsewhere in GG — the same size and structure, just shifted. Because group multiplication by gg is invertible (multiply by g−1g^{-1} to undo it), this translation cannot stretch, shrink, or tear the shape: the translated copy gHgH has exactly as many elements as HH itself. The remarkable fact is that as gg ranges over all of GG, these translated copies of HH never partially overlap: two cosets gHgH and g′Hg'H are either the exact same set or completely disjoint. So GG ends up perfectly tiled by non-overlapping, identically-sized copies of HH. If GG is finite, we can simply count tiles: the number of tiles times the size of each tile equals the size of GG. That single sentence is Lagrange's Theorem.

Figure
GG tiled into cosets of HH: each tile has the same size ∣H∣|H|
G (|G| = 12) H = eH e h₁ h₂ h₃ gH g gh₁ gh₂ gh₃ g²H g² g²h₁ g²h₂ g²h₃ g³H g³ g³h₁ 4 cosets × |H| = 3 elements each = 12 = |G|
TheoremLagrange's Theorem

Let GG be a finite group and let HH be a subgroup of GG. Then: 1. The left cosets of HH partition GG: every element of GG lies in exactly one left coset of HH. 2. Every left coset gHgH satisfies ∣gH∣=∣H∣|gH| = |H|. 3. ∣G∣=[G:H]⋅∣H∣|G| = [G:H] \cdot |H|, where [G:H][G:H] is the (finite) number of distinct left cosets of HH in GG. In particular, ∣H∣|H| divides ∣G∣|G|.

Proof

We proceed in three steps, using the technique of exhibiting an equivalence relation whose classes are the cosets, then counting class sizes.

Step 1: ∼L\sim_L is an equivalence relation, and its classes are the left cosets. Define a∼Lba \sim_L b if and only if a−1b∈Ha^{-1}b \in H, for a,b∈Ga, b \in G.

  • Reflexive: a−1a=e∈Ha^{-1}a = e \in H since HH is a subgroup (subgroups contain the identity, by the Subgroups and the Subgroup Criterion). So a∼Laa \sim_L a.
  • Symmetric: Suppose a∼Lba \sim_L b, so a−1b∈Ha^{-1}b \in H. Since HH is closed under inverses, (a−1b)−1=b−1a∈H(a^{-1}b)^{-1} = b^{-1}a \in H, so b∼Lab \sim_L a.
  • Transitive: Suppose a∼Lba \sim_L b and b∼Lcb \sim_L c, so a−1b∈Ha^{-1}b \in H and b−1c∈Hb^{-1}c \in H. Since HH is closed under products, (a−1b)(b−1c)=a−1c∈H(a^{-1}b)(b^{-1}c) = a^{-1}c \in H, so a∼Lca \sim_L c.

Hence ∼L\sim_L is an equivalence relation on GG, and by the standard theory of equivalence relations, GG is partitioned into disjoint equivalence classes. Now we identify the equivalence class of aa. We claim it equals aHaH:

b∼La  ⟺  a−1b∈H  ⟺  b∈aH,b \sim_L a \iff a^{-1}b \in H \iff b \in aH,

where the last equivalence holds because a−1b∈Ha^{-1}b \in H means a−1b=ha^{-1}b = h for some h∈Hh \in H, i.e. b=ah∈aHb = ah \in aH, and conversely if b=ahb = ah for some h∈Hh \in H then a−1b=h∈Ha^{-1}b = h \in H. So the equivalence class of aa under ∼L\sim_L is precisely the left coset aHaH. Since equivalence classes partition GG into disjoint nonempty sets whose union is GG, the distinct left cosets of HH do the same: every g∈Gg \in G lies in the coset gHgH (since g=geg = ge and e∈He \in H), and two cosets g1H,g2Hg_1H, g_2H 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 g1H∩g2H≠∅g_1 H \cap g_2 H \neq \varnothing. Pick xx in the intersection, so x=g1h1=g2h2x = g_1 h_1 = g_2 h_2 for some h1,h2∈Hh_1, h_2 \in H. Then g1=g2h2h1−1g_1 = g_2 h_2 h_1^{-1}. For any h∈Hh \in H,

g1h=g2h2h1−1h∈g2H,g_1 h = g_2 h_2 h_1^{-1} h \in g_2 H,

since h2h1−1h∈Hh_2 h_1^{-1} h \in H by closure of HH under products and inverses. Hence g1H⊆g2Hg_1 H \subseteq g_2 H. By the symmetric argument g2H⊆g1Hg_2 H \subseteq g_1 H, so g1H=g2Hg_1H = g_2H. This directly re-derives the "equal or disjoint" dichotomy.)

Step 2: Every left coset of HH has exactly ∣H∣|H| elements. Fix g∈Gg \in G and define φg:H→gH\varphi_g : H \to gH by φg(h)=gh\varphi_g(h) = gh.

  • Well-defined and surjective onto gHgH: immediate from the definition gH={gh:h∈H}gH = \{gh : h \in H\}; every element of gHgH is φg(h)\varphi_g(h) for some h∈Hh \in H.
  • Injective: suppose φg(h1)=φg(h2)\varphi_g(h_1) = \varphi_g(h_2), i.e. gh1=gh2gh_1 = gh_2. Left-multiplying both sides by g−1g^{-1} (which exists since GG is a group) gives h1=h2h_1 = h_2. So φg\varphi_g is injective.

Thus φg\varphi_g is a bijection H→gHH \to gH, so ∣gH∣=∣H∣|gH| = |H| as finite sets. This proves (2).

Step 3: Counting. By Step 1, GG is the disjoint union of the distinct left cosets of HH. Since GG is finite, there are finitely many such cosets; let this number be [G:H][G:H], and let the distinct cosets be g1H,g2H,…,g[G:H]Hg_1H, g_2H, \dots, g_{[G:H]}H. Then

G=g1H⊔g2H⊔⋯⊔g[G:H]H(disjoint union),G = g_1H \sqcup g_2H \sqcup \cdots \sqcup g_{[G:H]}H \quad \text{(disjoint union)},

so, counting elements and using that a finite disjoint union has cardinality equal to the sum of the cardinalities of its pieces,

∣G∣=∑i=1[G:H]∣giH∣=∑i=1[G:H]∣H∣=[G:H]⋅∣H∣,|G| = \sum_{i=1}^{[G:H]} |g_iH| = \sum_{i=1}^{[G:H]} |H| = [G:H]\cdot|H|,

where the middle equality uses Step 2 applied to each gig_i. This proves (3). Since [G:H][G:H] is a positive integer (it is finite, being at most ∣G∣|G|, and at least 11 since H=eHH = eH is itself one coset), the equation ∣G∣=[G:H]⋅∣H∣|G| = [G:H]\cdot|H| exhibits ∣G∣|G| as an integer multiple of ∣H∣|H|. Hence ∣H∣|H| divides ∣G∣|G|. ■\blacksquare

∎
CorollaryOrder of an element divides ∣G∣|G|

If GG is a finite group and g∈Gg \in G, then the order ∣g∣|g| (the order of the cyclic subgroup ⟨g⟩\langle g \rangle, as in Cyclic Groups and Generators) divides ∣G∣|G|. In particular g∣G∣=eg^{|G|} = e for every g∈Gg \in G.

Proof

The cyclic subgroup H=⟨g⟩H = \langle g\rangle has ∣H∣=∣g∣|H| = |g| by definition of the order of an element (the smallest positive nn with gn=eg^n = e equals ∣⟨g⟩∣|\langle g\rangle|, a fact from cyclic group theory). By Lagrange's Theorem, ∣H∣|H| divides ∣G∣|G|, i.e. ∣g∣|g| divides ∣G∣|G|. Writing ∣G∣=∣g∣⋅k|G| = |g| \cdot k for an integer kk, we get

g∣G∣=g∣g∣⋅k=(g∣g∣)k=ek=e.g^{|G|} = g^{|g|\cdot k} = (g^{|g|})^k = e^k = e.

■\blacksquare

∎
CorollaryGroups of prime order are cyclic

If ∣G∣=p|G| = p for a prime pp, then GG is cyclic, and the only subgroups of GG are {e}\{e\} and GG itself.

Proof

Let H≤GH \le G be any subgroup. By Lagrange's Theorem, ∣H∣|H| divides pp. Since pp is prime, its only positive divisors are 11 and pp, so ∣H∣=1|H| = 1 (giving H={e}H = \{e\}) or ∣H∣=p|H| = p (giving H=GH = G). This proves the subgroup claim. For cyclicity: since pp is prime, p≥2p \ge 2, so GG contains some element g≠eg \neq e. The subgroup ⟨g⟩\langle g \rangle is nontrivial (it contains g≠eg \neq e), so by the subgroup dichotomy just proved, ⟨g⟩=G\langle g \rangle = G. Hence GG is cyclic, generated by gg. ■\blacksquare

∎

Worked examples

Example 1: G=S3G = S_3, H=⟨(1 2)⟩H = \langle (1\,2) \rangle. Let G=S3={e,(1 2),(1 3),(2 3),(1 2 3),(1 3 2)}G = S_3 = \{e, (1\,2), (1\,3), (2\,3), (1\,2\,3), (1\,3\,2)\}, the symmetric group on {1,2,3}\{1,2,3\}, with ∣G∣=6|G| = 6. Let H=⟨(1 2)⟩={e,(1 2)}H = \langle (1\,2)\rangle = \{e, (1\,2)\}, so ∣H∣=2|H| = 2. We compute the left cosets. First, eH=H={e,(1 2)}eH = H = \{e, (1\,2)\}. Take g=(1 3)g = (1\,3): then

gH={(1 3)⋅e, (1 3)⋅(1 2)}={(1 3), (1 3)(1 2)}.gH = \{(1\,3)\cdot e,\ (1\,3)\cdot(1\,2)\} = \{(1\,3),\ (1\,3)(1\,2)\}.

Composing permutations right-to-left, (1 3)(1 2)(1\,3)(1\,2) sends 1↦21\mapsto 2 (since (1 2)(1\,2) sends 1→21\to2, then (1 3)(1\,3) fixes 22), sends 2↦1↦32 \mapsto 1 \mapsto 3, and sends 3↦3↦13\mapsto 3\mapsto1; so (1 3)(1 2)=(1 2 3)(1\,3)(1\,2) = (1\,2\,3). Thus

(1 3)H={(1 3), (1 2 3)}.(1\,3)H = \{(1\,3),\ (1\,2\,3)\}.

Take g=(2 3)g = (2\,3): then (2 3)⋅e=(2 3)(2\,3)\cdot e = (2\,3) and (2 3)⋅(1 2)(2\,3)\cdot(1\,2) sends 1↦2↦31\mapsto2\mapsto3, 2↦1↦12\mapsto1\mapsto1, 3↦3↦23\mapsto3\mapsto2, giving (1 3 2)(1\,3\,2). So

(2 3)H={(2 3), (1 3 2)}.(2\,3)H = \{(2\,3),\ (1\,3\,2)\}.

These three sets, HH, (1 3)H(1\,3)H, (2 3)H(2\,3)H, are pairwise disjoint and their union is all of S3S_3 (each has 2 elements, 3×2=63 \times 2 = 6 elements total, matching ∣G∣|G|). So [G:H]=3[G:H] = 3, and indeed

∣G∣=[G:H]⋅∣H∣=3⋅2=6.|G| = [G:H]\cdot|H| = 3 \cdot 2 = 6.

Note that (1 2)H=H(1\,2)H = H (since (1 2)∈H(1\,2)\in H gives the same coset as ee) and (1 2 3)H=(1 3)H(1\,2\,3)H = (1\,3)H (check: (1 2 3)⋅e=(1 2 3)(1\,2\,3)\cdot e = (1\,2\,3) and (1 2 3)(1 2)(1\,2\,3)(1\,2) sends 1→2→3, 2→1→21\to2\to3,\ 2\to1\to2... let's verify directly: apply (1 2)(1\,2) first then (1 2 3)(1\,2\,3): 1↦2↦31\mapsto2\mapsto3, 2↦1↦22\mapsto1\mapsto2... recompute carefully: (1 2)(1\,2) sends 1→2,2→1,3→31\to2,2\to1,3\to3; then (1 2 3)(1\,2\,3) sends 1→2,2→3,3→11\to2,2\to3,3\to1. Composite: 1→2→31\to2\to3, 2→1→22\to1\to2, 3→3→13\to3\to1, giving the permutation 1→3,2→2,3→11\to3,2\to2,3\to1, i.e. (1 3)(1\,3). So (1 2 3)H={(1 2 3),(1 3)}=(1 3)H(1\,2\,3)H = \{(1\,2\,3),(1\,3)\} = (1\,3)H, confirming consistency.) This illustrates: right cosets need not equal left cosets for this HH — for instance H(1 3)={(1 3),(1 2)(1 3)}H(1\,3) = \{(1\,3), (1\,2)(1\,3)\}, and (1 2)(1 3)(1\,2)(1\,3) sends 1→3→31\to3\to3... apply (1,3)(1,3) first: 1→3,3→1,2→21\to3,3\to1,2\to2; then (1,2)(1,2): 1→2,2→1,3→31\to2,2\to1,3\to3; composite 1→3→31\to3\to3, 2→2→12\to2\to1, 3→1→23\to1\to2, giving (2 3 1)(2\,3\,1) read as cycle 1→3,3→2,2→11\to3,3\to2,2\to1, i.e. (1 3 2)(1\,3\,2). So H(1 3)={(1 3),(1 3 2)}H(1\,3) = \{(1\,3),(1\,3\,2)\}, which is not equal to (1 3)H={(1 3),(1 2 3)}(1\,3)H = \{(1\,3),(1\,2\,3)\} computed above (they share only (1 3)(1\,3)). 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: G=Z/12ZG = \mathbb{Z}/12\mathbb{Z}, H={0,4,8}H = \{0,4,8\}. Let G=Z/12Z={0,1,…,11}G = \mathbb{Z}/12\mathbb{Z} = \{0,1,\dots,11\} under addition mod 12, and let H={0,4,8}H = \{0,4,8\} (this is a subgroup: it is ⟨4⟩\langle 4\rangle, closed under addition mod 12 and containing 00, with inverses −4≡8-4\equiv8, −8≡4-8\equiv4). Here ∣G∣=12|G|=12, ∣H∣=3|H|=3. Since GG is abelian, left and right cosets coincide; we just call them cosets. Compute cosets by adding representatives:

0+H={0,4,8},1+H={1,5,9},2+H={2,6,10},3+H={3,7,11}.0+H = \{0,4,8\}, \qquad 1+H=\{1,5,9\}, \qquad 2+H=\{2,6,10\}, \qquad 3+H=\{3,7,11\}.

Check exhaustiveness: 0+H,1+H,2+H,3+H0+H, 1+H, 2+H, 3+H together contain {0,4,8}∪{1,5,9}∪{2,6,10}∪{3,7,11}\{0,4,8\}\cup\{1,5,9\}\cup\{2,6,10\}\cup\{3,7,11\}, which is exactly {0,1,…,11}=G\{0,1,\dots,11\} = G, with no repeats. So there are exactly [G:H]=4[G:H] = 4 distinct cosets, and

∣G∣=[G:H]⋅∣H∣=4⋅3=12,|G| = [G:H]\cdot|H| = 4\cdot 3 = 12,

consistent with Lagrange's Theorem. Notice also that 5+H={5,9,1}=1+H5 + H = \{5, 9, 1\} = 1+H (since 5−1=4∈H5 - 1 = 4 \in H), illustrating that many different representatives gg give the same coset gHgH exactly when they differ by an element of HH — precisely the content of the equivalence relation ∼L\sim_L from the proof.

CounterexampleWhy finiteness of GG is needed

Lagrange's Theorem as stated requires GG to be a finite group; drop this hypothesis and the numerical conclusion "∣H∣|H| divides ∣G∣|G|" becomes meaningless or false in the naive sense, even though the partition into cosets of equal cardinality still holds. Take G=(Z,+)G = (\mathbb{Z}, +), the integers under addition, an infinite group. Let H=2Z={…,−4,−2,0,2,4,… }H = 2\mathbb{Z} = \{\dots,-4,-2,0,2,4,\dots\}, the even integers, which is a subgroup of GG. Here ∣G∣|G| and ∣H∣|H| are both countably infinite cardinals, ℵ0\aleph_0. The cosets of HH are 0+H=2Z0 + H = 2\mathbb{Z} (the evens) and 1+H=2Z+11+H = 2\mathbb{Z}+1 (the odds); these two cosets partition Z\mathbb{Z}, each is a bijective (via n↦n+1n \mapsto n+1 or similar) copy of HH, so [G:H]=2[G:H] = 2, 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 "[G:H][G:H] copies of ∣H∣|H|" using ordinary arithmetic to recover ∣G∣|G| as an integer multiple of ∣H∣|H| in any way that gives useful divisibility information, because ∣G∣=∣H∣=ℵ0|G| = |H| = \aleph_0 and ℵ0=2⋅ℵ0=ℵ0⋅ℵ0\aleph_0 = 2 \cdot \aleph_0 = \aleph_0 \cdot \aleph_0 trivially — cardinal arithmetic is degenerate here and carries no numerical content analogous to "does ∣H∣|H| divide ∣G∣|G|" in the integers. Worse, one can also cook up examples where [G:H][G:H] itself is infinite (e.g. G=ZG = \mathbb{Z}, H={0}H = \{0\}, giving [G:H]=ℵ0[G:H] = \aleph_0 cosets each of size 11), so the clean finite equation ∣G∣=[G:H]⋅∣H∣|G| = [G:H]\cdot |H| 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 GG: the conclusion "∣H∣|H| divides ∣G∣|G|" is a statement about positive integers, and it requires ∣G∣|G| (hence [G:H][G:H]) to be a genuine finite integer for the multiplication [G:H]⋅∣H∣=∣G∣[G:H]\cdot|H| = |G| to carry the intended arithmetic meaning.

Scope, edge cases & common traps

SituationWhat holdsWhat can fail
GG finite, H≤GH \le G∣H∣\lvert H\rvert divides ∣G∣\lvert G\rvert; [G:H]=∣G∣/∣H∣[G:H] = \lvert G\rvert/\lvert H\rvert—
GG infinite, H≤GH \le GCosets still partition GG into equal-cardinality pieces"∣H∣\lvert H\rvert divides ∣G∣\lvert G\rvert" is not meaningful/useful (see counterexample)
HH not normalLeft cosets gHgH and right cosets HgHg both partition GGgH≠HggH \neq Hg in general (Example 1)
nn divides ∣G∣\lvert G\rvert—GG need not have a subgroup of order nn (converse of Lagrange is false in general, e.g. A4A_4 has order 12 but no subgroup of order 6)
g∈Gg \in G∣g∣\lvert g\rvert divides ∣G∣\lvert G\rvertgg 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
JL
Joseph-Louis Lagrange
1736–1813 · Turin, Berlin, Paris

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 SnS_n acting on functions of nn 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.

History
- 1770–1771: Lagrange studies permutations of roots of polynomials in his work on solvability of equations, proving a counting result equivalent to a special case of the modern theorem.
- 1799: Ruffini extends permutation-counting ideas in his attempted proof of the unsolvability of the general quintic, implicitly using coset-type counting.
- 1830s: Galois develops the theory of groups of permutations in the context of solvability by radicals, using subgroup counting arguments closely related to Lagrange's original insight.
- 1854: Cayley gives the first abstract definition of a finite group independent of permutations, setting the stage for the fully general statement of the theorem.
- Late 19th century: The theorem is stated and proved in its modern, fully abstract form for arbitrary finite groups, becoming a standard cornerstone of group theory textbooks.
Are left cosets and right cosets always the same set?

Not in general. For a subgroup H≤GH \le G, the left coset gHgH and right coset HgHg can differ when HH is not a normal subgroup, as shown explicitly in Example 1 with G=S3G = S_3. Both collections — the set of all left cosets and the set of all right cosets — still each partition GG into pieces of size ∣H∣|H|, and there are always equally many of each type (the map gH↦Hg−1gH \mapsto Hg^{-1} is a bijection between the two collections), so the index [G:H][G:H] is the same whether computed via left or right cosets. But the individual cosets themselves need not coincide unless HH is normal, in which case gH=HggH = Hg for every gg, 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 HH is a subgroup, its order divides ∣G∣|G|. It does not assert the converse, that every divisor of ∣G∣|G| is realized as the order of some subgroup. The counterexample A4A_4 (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 pp be prime and aa an integer not divisible by pp. The set G=(Z/pZ)×={1,2,…,p−1}G = (\mathbb{Z}/p\mathbb{Z})^\times = \{1, 2, \dots, p-1\} under multiplication mod pp is a group of order p−1p - 1 (every nonzero residue mod a prime has a multiplicative inverse). The residue class of aa is an element of this group, so by the corollary to Lagrange's Theorem, its order divides ∣G∣=p−1|G| = p-1, and hence ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p. 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 ∣H∣|H| elements — could some cosets be smaller?

No: the bijection φg:H→gH\varphi_g: H \to gH given by φg(h)=gh\varphi_g(h) = gh is always a genuine bijection, for every g∈Gg \in G, regardless of which coset we look at. Injectivity follows from cancelling gg (multiplying by g−1g^{-1}), and surjectivity onto gHgH is immediate from the definition of gHgH as the image of HH under left-multiplication by gg. Since this argument uses only that GG is a group (so g−1g^{-1} exists) and never any special property of gg, it applies uniformly to every coset, so all cosets — including HH itself, the coset of ee — have exactly ∣H∣|H| elements, with no exceptions.

Is it true that HH itself is always one of the cosets?

Yes. Since HH is a subgroup, e∈He \in H, and the coset of the identity element is

eH={eh:h∈H}={h:h∈H}=H.eH = \{eh : h \in H\} = \{h : h \in H\} = H.

So HH is always exactly one of its own left cosets — namely the coset corresponding to the representative ee (or, equivalently, to any representative g∈Hg \in H, since gH=HgH = H whenever g∈Hg \in H, by the equal-or-disjoint dichotomy applied to gH∩H∋ggH \cap H \ni g). This is why the index [G:H][G:H] is always at least 1, and equals 1 precisely when H=GH = G.

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 VV with subspace WW, the cosets v+Wv + W partition VV and form the quotient vector space V/WV/W; in a ring RR with ideal II, the cosets r+Ir + I partition RR and form the quotient ring R/IR/I. 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.

Before this

Where this leads