This article gives a list of formulas for the orders of the general linear group of finite degree
and some other related groups, both for a finite field of size
and for related rings.
For a finite field of size 
Formulas
In the formulas below, the field size is
and the degree (order of matrices involved, dimension of vector space being acted upon) is
. The characteristic of the field is a prime number
.
is a prime power with underlying prime
. We let
, so
and
is a nonnegative integer.
In the table below,
stands for the
cyclotomic polynomial evaluated at
.
| Group |
Symbolic notation |
Order formula |
Order formula (powers of taken out) |
Order formula (maximally factorized) |
Degree as polynomial in (same as algebraic dimension) |
Multiplicity of factor  |
Multiplicity of factor  |
Quick explanation for order
|
| general linear group |
or  |
 |
 |
 |
 |
 |
 |
See full explanation below.
|
| special linear group |
or  |
 |
 |
 |
 |
 |
 |
; see full explanation below.
|
| projective general linear group |
or  |
 |
 |
 |
 |
 |
 |
; see full explanation below.
|
| projective special linear group |
or  |
 |
 |
 |
(ignoring gcd term) |
 |
(ignoring gcd term) |
divided by the number of roots in ; see full explanation below.
|
| general semilinear group |
or  |
 |
 |
 |
 |
 |
 |
times the order of ; see full explanation below.
|
| outer linear group |
or  |
 |
 |
 |
 |
 |
 |
Twice the order of ; see full explanation below.
|
| outer semilinear group |
or  |
 |
 |
 |
 |
 |
 |
times the order of ; see full explanation below.
|
| special semilinear group |
? |
 |
 |
 |
 |
 |
 |
times the order of ; explanation similar to that for general semilinear group.
|
| projective semilinear group |
or  |
 |
 |
 |
 |
 |
 |
times the order of ; explanation similar to that for general semilinear group.
|
| projective special semilinear group |
? |
 |
 |
 |
(ignoring gcd term) |
 |
(ignoring gcd term) |
times the order of ; explanation similar to that for general semilinear group.
|
| general affine group |
or  |
 |
 |
 |
 |
 |
 |
times the order of
|
| special affine group |
or  |
 |
 |
 |
 |
 |
 |
times the order of
|
| general semiaffine group |
or  |
 |
 |
 |
 |
 |
 |
times the order of
|
| special semiaffine group |
? |
 |
 |
 |
 |
 |
 |
times the order of
|
| unitriangular matrix group |
or  |
 |
 |
 |
 |
 |
0 |
Each of the entries above the diagonal can take any of the values in ; there are entries to choose.
|
| triangular matrix group (diagonal entries not required to be one); this is an example of a Borel subgroup |
? |
 |
 |
 |
 |
 |
 |
Each of the entries above the diagonal can take any of the values in ; there are entries to choose. Each of the entries of the diagonal can take any of values.
|
Explanation for order of general linear group over a finite field
We describe here the reasoning behind the formula for the order of the general linear group
.
The order equals the number of invertible
matrices with entries over
. The set of such matrices is in correspondence with the set of ordered bases for
, the
-dimensional vector space over
(for instance, we can identify the columns of the matrix with the vectors in the ordered basis). Thus, it suffices to count the number of possible ordered bases for
.
For the first vector of the ordered basis, there are
possible choices (all nonzero vectors work). For the second vector, there are
choices (all vectors that are not in the span of the first vector work). After the first
basis vectors are chosen, the number of possibilities for the next basis vector are
, because
is the size of the subspace spanned by the first
basis vectors. By the product rule in combinatorics, we get that the total number of possibilities is:
Explanation for order of special linear group over a finite field
The group
is the kernel of the determinant map, a surjective homomorphism from
to
. The homomorphism is surjective because for any
, we can construct a diagonal matrix with one diagonal entry
and the remaining entries equal to 1, and this maps to
under the determinant map.
Essentially by Lagrange's theorem and the first isomorphism theorem, we know that the order of the kernel is the order of the whole group divided by the order of the image. Thus:
We now use the expression obtained for
and use that
.
Explanation for order of projective general linear group over a finite field
The group
is the quotient of
by the center of
.
The center of
is the subgroup of scalar matrices (see center of general linear group is group of scalar matrices over center), and is isomorphic to
.
Thus, by Lagrange's theorem, the order of the quotient
is:
We now use the expression obtained for
and use that
.
Explanation for order of projective special linear group over a finite field
The group
is the quotient group of
by its intersection with the center of
.
The intersection of
and the center of
is the subgroup of scalar matrices of determinant 1. The determinant of a
scalar matrix is the
power of the scalar value, so the intersection comprises those scalar matrices whose scalar values are
roots of unity. Since
is cyclic of order
(see multiplicative group of a finite field is cyclic), the number of such elements is
.
Thus, the kernel of the quotient map from
to
has order
. We thus get, by Lagrange's theorem:
Simplifying this gives the expressions in the table above.
Explanation for order of general semilinear group over a finite field
The general semilinear group
is a semidirect product:
Therefore, we have:
Since
,
is a degree
extension of its prime subfield
. The extension is a Galois extension, and the automorphism group is therefore equal to the Galois group of the extension, and is cyclic of order
(it is generated by the Frobenius automorphism
). We thus get:
We substitute the formulas calculated for
and obtain the formulas for
.
Explanation for order of outer linear group over a finite field
The outer linear group
is a semidirect product:
where the non-identity element of
acts via the transpose-inverse map. Thus:
We substitute the formulas calculated for
and obtain the formulas for
.
Explanation for order of outer semilinear group over a finite field
The outer semilinear group
is a semidirect product:
Therefore, we have:
Since
,
is a degree
extension of its prime subfield
. The extension is a Galois extension, and the automorphism group is therefore equal to the Galois group of the extension, and is cyclic of order
(it is generated by the Frobenius automorphism
). We thus get:
We substitute the formulas calculated for
and obtain the formulas for
.
General justification for degree of polynomial describing the order
The degree of the polynomial giving the order of the group can be thought of as corresponding to the algebraic dimension, using, for instance, the Zariski topology. Note that applying the Zariski topology on a finite field won't work, because the topology for a variety over a finite field is discrete. However, we can look at the corresponding concept for an infinite field and then intersect with the points realized over the finite field
. We go over these justifications briefly for the important cases:
| Group |
Degree of polynomial giving the order |
Justification in terms of algebraic dimension
|
| general linear group |
 |
Over an infinite field, the general linear group is an open, and hence dense, subset of the -dimensional space of matrices over the field, because it is defined by the determinant (a degree polynomial in the variables) being nonzero.
|
| special linear group |
 |
Over an infinite field, the special linear group is a codimension-one closed subset of the -dimensional space of matrices over the field, because it is defined by the determinant (a degree polynomial in the variables) being exactly one.
|
| projective general linear group |
 |
Over an infinite field, the projective general linear group is a quotient variety of the general linear group by the equivalence relation of being scalar multiples of each other. It therefore has dimension one less than the general linear group.
|
| general affine group |
 |
The dimension of this is the sum of the dimension of the vector space ( ) and the dimension of the general linear group ( ).
|
| special affine group |
 |
The dimension of this is the sum of the dimension of the vector space ( ) and the dimension of the general linear group ( ).
|
General justification for largest power of
dividing the order
For all linear groups, the largest power of
dividing the order is
. All of these factors of
are attained in the unitriangular matrix group (the group of upper triangular matrices with 1s on the diagonal).
For affine groups, we get an additional factor of
, and thus an addition of
to the exponent.
General justification for largest power of
dividing the order
The largest power of
dividing the order corresponds to the dimension of the maximal torus (without considering extensions, i.e., the torus realizable over
). We go over the justifications briefly for some important cases:
| Group |
Power of in order |
Justification in terms of algebraic dimension of largest torus
|
| general linear group |
 |
The torus is the group of invertible diagonal matrices. The points in this torus over form the group , and the dimension is
|
| special linear group |
 |
The torus is the group of invertible diagonal matrices where the product of the diagonal entries is 1. There are entries that can be freely chosen from the multiplicative group, and the entry is constrained by them. The points in this torus over form the group , and the dimension is
|
| projective general linear group |
 |
The torus is the group of invertible matrices where the product of the diagonal entries is 1, modulo the scalar matrices. There are degrees of freedom, because 1 degree of freedom is taken away by the ability to scale the matrix.
|
General justification for largest power of other cyclotomic polynomials dividing the order
For any
with
, the exponent for the largest power of the cyclotomic polynomial
dividing the order is
. This can also be justified in terms of a "torus" as follows:
- The field extension
can be embedded in the ring of
matrices over
as a subring, through its action on itself as a
-dimensional vector space over
. With this,
gets embedded in
.
- Inside
, we can think of
as occupying a block of size
. Thus, a block of size
can accommodate
.
- There is space for
such blocks, so
can be embedded in
, but no larger power of
can.
Notes on primes that divide the order of linear groups
The following are equivalent conditions determining whether a prime
other than
divides the order of
. These conditions also work for
,
, and
for
:
- The order of
modulo
is less than or equal to
.
divides
for some
between 1 and
.
divides
for some
between 1 and
.
Further notes:
- All the primes less than or equal to
divide the order of
. This can be seen from the above description; it can also be seen from the embedding of the symmetric group
inside
.
For a finite discrete valuation ring (DVR) of length
over a field of size 
Formulas
In the formulas below, the length of the discrete valuation ring
is
and the size of the residue field is
. The size of the discrete variation ring is therefore
.
The degree (order of matrices involved, or dimension of free module over the DVR being acted upon) is
.
The characteristic of the field is a prime number
.
is a prime power with underlying prime
. We let
, so
and
is a nonnegative integer.
Example discrete variation rings to consider:
![{\displaystyle \mathbb {F} _{q}[t]/(t^{l})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d1a1f7b16a007689998a95443a905e0f4f96dab8)
(here
so
)
The special case
reduces to the previous section.
For
, there is an additional variable,
, which is the number of
roots of unity in the multiplicative group of
. The value of
doesn't have a formula in terms of the parameters discussed so far, and it can vary for different rings with the same values of
and
. (For more discussion, see the section #Explanation for order of projective special linear group over a finite discrete valuation ring).
For
, there is an additional parameter,
, for the order of the automorphism group of
. The value of
doesn't have a formula in terms of the parameters discussed so far, and it can vary for different rings with the same values of
and
. (For more discussion, see the section #Explanation for order of general semilinear group over a finite discrete valuation ring).
| Group |
Symbolic notation |
Order formula |
Order formula (powers of taken out) |
Order formula (maximally factorized) |
Degree as polynomial in (same as algebraic dimension) |
Multiplicity of factor  |
Multiplicity of factor  |
Quick explanation for order
|
| general linear group |
 |
 |
 |
 |
 |
 |
 |
See full explanation below.
|
| special linear group |
 |
 |
 |
 |
 |
 |
 |
See full explanation below
|
| projective general linear group |
 |
 |
 |
 |
 |
 |
 |
See full explanation below
|
| projective special linear group |
 |
 |
 |
 |
 |
(ignoring ) |
(ignoring ) |
Here is the number of roots of unity in . See full explanation below
|
| general semilinear group |
 |
 |
 |
 |
 |
 |
 |
Here is the size of . See full explanation below.
|
Explanation for order of general linear group over a finite discrete valuation ring
There are a couple of ways of looking at this.
Using the concept of freely generating sequences
NOTE: The statements below are not rigorously justified, but the argument can be made more rigorous.
corresponds to the set of freely generating sequences (of length
) for the free module
. To obtain such a freely generating sequence:
- The first element of the sequence can be any element of
that is not in
where
is the unique maximal ideal. The number of possibilities is
.
- The second element has to be outside of the submodule generated by the first element with
. The number of possibilities is
.
- The
element has to be outside the submodule generated by the first
elements with
. The number of possibilities is
.
The total number of elements is therefore
Using kernels of homomorphisms
If
is the maximal ideal of
, we have a sequence of homomorphisms:
All elements in the kernel at each stage comprise matrices that are congruent to the identity matrix modulo the relevant power of
.
We can also establish the converse:
- The multiplicative monoid of all
matrices over
that are congruent to the identity matrix modulo
is isomorphic to the additive group of
matrices over
. This can be seen by verifying the matrix multiplication.
- Therefore, all matrices over
that are congruent to the identity matrix modulo
are invertible, and hence in the kernel of
.
- The map
is surjective: to see this, pick any element of
. Lift both it and its inverse arbitrarily to
matrices over
(we don't yet know if these lifts are invertible, but we'll show that in a moment). The product of these lifts is congruent to the identity matrix mod
. As established right above, this product is invertible, hence so is the lift of the original matrix. Thus, the map is surjective.
Thus, by Lagrange's theorem and the first isomorphism theorem, we get:
Applying this for
we get:
Explanation for order of special linear group over a finite discrete valuation ring
The special linear group
is the kernel of the determinant map
.
The determinant map is surjective, because for each element of
, we have a diagonal matrix with that as the top left entry and the remaining diagonal entries as 1s.
Thus, by Lagrange's theorem and the first isomorphism theorem, we get:
Plugging in the value of
from the previous section, we get the formula we expect.
Explanation for order of projective general linear group over a finite discrete valuation ring
The group
is the quotient of
by the center of
.
The center of
is the subgroup of scalar matrices (see center of general linear group is group of scalar matrices over center), and is isomorphic to
.
Thus, by Lagrange's theorem, the order of the quotient
is:
Explanation for order of projective special linear group over a finite discrete valuation ring
The group
is the quotient group of
by its intersection with the center of
.
The intersection of
and the center of
is the subgroup of scalar matrices of determinant 1. The determinant of a
scalar matrix is the
power of the scalar value, so the intersection comprises those scalar matrices whose scalar values are
roots of unity. Let the number of
roots of unity in
be
.
We then get:
This gives the formulas in the table.
Examples to show that the number of roots of unity is not determined by the listed parameters
Consider the case
, so that
, with
, and further,
. (For concreteness, we can take
).
Consider two discrete valuation rings meeting these criteria:

![{\displaystyle R_{2}=\mathbb {F} _{p}[t]/(t^{3})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7ce5b7be48668d169509231d9b9f6a11a82180b6)
Then we have:
is a cyclic group of order
. In particular, the number of
roots of unity in it is
.
is a group of exponent
, and has
many
roots of unity (in particular, an element is a
root of unity if its constant term, when it's written as a polynomial, is 1).
We thus see that the value
could be
or
depending on the ring, even though both rings have the same values of all other listed parameters.
Explanation for order of general semilinear group over a finite field
The general semilinear group
is a semidirect product:
Therefore, we have:
Letting
and using the expressions for
gives the expressions for
.
Example to illustrate that the order of the automorphism group is not completely determined by the listed parameters
Consider the case
, so that
, with
. For concreteness, we can take
.
We will show that these two rings have different automorphism groups:
is the ring 
is the ring ![{\displaystyle \mathbb {F} _{p}[t]/(t^{2})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/183df429fbdebc1c79d90f6fd555b91e37b4ae4c)
has a trivial automorphism group, because the multiplicative unit 1 is fixed by any automorphism, and every element is a multiple of 1.
On the other hand,
has automorphism group
of order
, with
acting as the automorphism that sends
to
. Since
, this is a nontrivial automorphism group.
General justification for degree of polynomial describing the order
In general, the degree of polynomial describing the order of a linear group over a discrete valuation ring is
times the degree of the corresponding polynomial over the residue field. The loose reason: we are operating over a ring of size
instead of a field of size
. More explicitly, we can use similar reasoning about algebraic dimension as we use over fields, but the algebraic dimension is now over the ring of size
instead of the field of size
, so all the degrees get multiplied by
.
| Group |
Degree of polynomial describing the order, when on a field of size  |
Degree of polynomial describing the order, when on a discrete valuation ring of length with residue field of size
|
| general linear group |
 |
|
| special linear group |
 |
|
| projective general linear group |
 |
|
| general affine group |
 |
|
| special affine group |
 |
|