In mathematics, specifically group theory, the index of a subgroup H in a group G is the number of left cosets of H in G, or equivalently, the number of right cosets of H in G. The index is denoted or or . Because G is the disjoint union of the left cosets and because each left coset has the same size as H, the index is related to the orders of the two groups by the formula
(interpret the quantities as cardinal numbers if some of them are infinite). Thus the index measures the "relative sizes" of G and H.
For example, let be the group of integers under addition, and let be the subgroup consisting of the even integers. Then has two cosets in , namely the set of even integers and the set of odd integers, so the index is 2. More generally, for any positive integer n.
When G is finite, the formula may be written as , and it implies Lagrange's theorem that divides .
When G is infinite, is a nonzero cardinal number that may be finite or infinite. For example, , but is infinite.
If N is a normal subgroup of G, then is equal to the order of the quotient group , since the underlying set of is the set of cosets of N in G.
If H has an infinite number of cosets in G, then the index of H in G is said to be infinite. In this case, the index is actually a cardinal number. For example, the index of H in G may be countable or uncountable, depending on whether H has a countable number of cosets in G. Note that the index of H is at most the order of G, which is realized for the trivial subgroup, or in fact any subgroup H of infinite cardinality less than that of G.
A subgroup H of finite index in a group G (finite or infinite) always contains a normal subgroup N (of G), also of finite index. In fact, if H has index n, then the index of N will be some divisor of n! and a multiple of n; indeed, N can be taken to be the kernel of the natural homomorphism from G to the permutation group of the left (or right) cosets of H. Let us explain this in more detail, using right cosets:
The elements of G that leave all cosets the same form a group.
Proof


If Hca ⊂ Hc ∀ c ∈ G and likewise Hcb ⊂ Hc ∀ c ∈ G, then Hcab ⊂ Hc ∀ c ∈ G. If h_{1}ca = h_{2}c for all c ∈ G (with h_{1}, h_{2} ∈ H) then h_{2}ca^{−1} = h_{1}c, so Hca^{−1} ⊂ Hc. 
Let us call this group A. Let B be the set of elements of G which perform a given permutation on the cosets of H. Then B is a right coset of A.
Proof


First let us show that if b_{1}∈B, then any other element b_{2} of B equals ab_{1} for some a∈A. Assume that multiplying the coset Hc on the right by elements of B gives elements of the coset Hd. If cb_{1} = d and cb_{2} = hd, then cb_{2}b_{1}^{−1} = hc ∈ Hc, or in other words b_{2}=ab_{1} for some a∈A, as desired. Now we show that for any b∈B and a∈A, ab will be an element of B. This is because the coset Hc is the same as Hca, so Hcb = Hcab. Since this is true for any c (that is, for any coset), it shows that multiplying on the right by ab makes the same permutation of cosets as multiplying by b, and therefore ab∈B. 
What we have said so far applies whether the index of H is finite or infinte. Now assume that it is the finite number n. Since the number of possible permutations of cosets is finite, namely n!, then there can only be a finite number of sets like B. (If G is infinite, then all such sets are therefore infinite.) The set of these sets forms a group isomorphic to a subset of the group of permutations, so the number of these sets must divide n!. Furthermore, it must be a nultiple of n because each coset of H contains the same number of cosets of A. Finally, if for some c ∈ G and a ∈ A we have ca = xc, then for any d ∈ G dca = dxc, but also dca = hdc for some h ∈ H (by the definition of A), so hd = dx. Since this is true for any d, x must be a member of A, so ca = xc implies that cac^{−1} ∈ A and therefore A is a normal subgroup.
The index of the normal subgroup not only has to be a divisor of n!, but must satisfy other criteria as well. Since the normal subgroup is a subgroup of H, its index in G must be n times its index inside H. Its index in G must also correspond to a subgroup of the symmetric group S_{n}, the group of permutations of n objects. So for example if n is 5, the index cannot be 15 even though this divides 5!, because there is no subgroup of order 15 in S_{5}.
In the case of n = 2 this gives the rather obvious result that a subgroup H of index 2 is a normal subgroup, because the normal subgroup of H must have index 2 in G and therefore be identical to H. (We can arrive at this fact also by noting that all the elements of G that are not in H constitute the right coset of H and also the left coset, so the two are identical.) More generally, a subgroup of index p where p is the smallest prime factor of the order of G (if G is finite) is necessarily normal, as the index of N divides p! and thus must equal p, having no other prime factors. For example, the subgroup Z_{7} of the nonabelian group of order 21 is normal (see List of small nonabelian groups and Frobenius group#Examples).
An alternative proof of the result that a subgroup of index lowest prime p is normal, and other properties of subgroups of prime index are given in (Lam 2004).
The group O of chiral octahedral symmetry has 24 elements. It has a dihedral D_{4} subgroup (in fact it has three such) of order 8, and thus of index 3 in O, which we shall call H. This dihedral group has a 4member D_{2} subgroup, which we may call A. Multiplying on the right any element of a right coset of H by an element of A gives a member of the same coset of H (Hca = Hc). A is normal in O. There are six cosets of A, corresponding to the six elements of the symmetric group S_{3}. All elements from any particular coset of A perform the same permutation of the cosets of H.
On the other hand, the group T_{h} of pyritohedral symmetry also has 24 members and a subgroup of index 3 (this time it is a D_{2h} prismatic symmetry group, see point groups in three dimensions), but in this case the whole subgroup is a normal subgroup. All members of a particular coset carry out the same permutation of these cosets, but in this case they represent only the 3element alternating group in the 6member S_{3} symmetric group.
Normal subgroups of prime power index are kernels of surjective maps to pgroups and have interesting structure, as described at Focal subgroup theorem: Subgroups and elaborated at focal subgroup theorem.
There are three important normal subgroups of prime power index, each being the smallest normal subgroup in a certain class:
As these are weaker conditions on the groups K, one obtains the containments
These groups have important connections to the Sylow subgroups and the transfer homomorphism, as discussed there.
An elementary observation is that one cannot have exactly 2 subgroups of index 2, as the complement of their symmetric difference yields a third. This is a simple corollary of the above discussion (namely the projectivization of the vector space structure of the elementary abelian group
and further, G does not act on this geometry, nor does it reflect any of the nonabelian structure (in both cases because the quotient is abelian).
However, it is an elementary result, which can be seen concretely as follows: the set of normal subgroups of a given index p form a projective space, namely the projective space
In detail, the space of homomorphisms from G to the (cyclic) group of order p, is a vector space over the finite field A nontrivial such map has as kernel a normal subgroup of index p, and multiplying the map by an element of (a nonzero number mod p) does not change the kernel; thus one obtains a map from
to normal index p subgroups. Conversely, a normal subgroup of index p determines a nontrivial map to up to a choice of "which coset maps to which shows that this map is a bijection.
As a consequence, the number of normal subgroups of index p is
for some k; corresponds to no normal subgroups of index p. Further, given two distinct normal subgroups of index p, one obtains a projective line consisting of such subgroups.
For the symmetric difference of two distinct index 2 subgroups (which are necessarily normal) gives the third point on the projective line containing these subgroups, and a group must contain index 2 subgroups – it cannot contain exactly 2 or 4 index 2 subgroups, for instance.