# Irreducible polynomial

An irreducible polynomial is a nonconstant polynomial over a field (or, more generally, over an integral domain) that cannot be written as a product of two polynomials of strictly lower degree; it is the polynomial analog of a prime number. Formally, a polynomial \( f(x) \in K[x] \) is irreducible in \( K[x] \) if \( \deg f \ge 1 \) and whenever \( f(x) = g(x)h(x) \) with \( g, h \in K[x] \), one of \( g \) or \( h \) is a constant<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>. Every polynomial of degree 1 is irreducible by this definition<sup>[2](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)</sup>.

| Key fact | Detail |
|---|---|
| Definition | \( f \in K[x] \) is irreducible if \( \deg f \ge 1 \) and every factorization \( f = gh \) has \( g \) or \( h \) constant<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup> |
| Dependence on the field | \( x^2 + 1 \) is irreducible in \( \mathbb{R}[x] \) but factors as \( (x+i)(x-i) \) in \( \mathbb{C}[x] \)<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup> |
| Small degrees | Over a field, a polynomial of degree 2 or 3 is irreducible if and only if it has no root in the field<sup>[3](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)</sup> |
| Gauss' Lemma | A polynomial in \( \mathbb{Z}[x] \) is irreducible over \( \mathbb{Z} \) if and only if it is irreducible over \( \mathbb{Q} \)<sup>[4](https://crypto.stanford.edu/pbc/notes/numberfield/gausslemma.html)</sup> |
| Finite fields | For \( E(x) \) irreducible of positive degree \( s \) over \( \mathbb{F}_p \), the quotient \( \mathbb{F}_p[x]/E(x) \) is a field with \( p^s \) elements<sup>[5](https://cse.buffalo.edu/faculty/atri/courses/coding-theory/book/chapters/chap5.pdf)</sup> |
| Counting | The number of monic irreducibles of degree \( m \) over \( \mathbb{F}_p \) is \( I_p^m = \frac{1}{m} \sum_{d \mid m} \mu(m/d)\, p^d \)<sup>[6](https://www.cs.cmu.edu/~cdm/pdf/41-ffields.pdf)</sup> |
| Cryptographic use | AES defines multiplication in \( \mathrm{GF}(2^8) \) by reduction modulo \( m(x) = x^8 + x^4 + x^3 + x + 1 \)<sup>[7](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf)</sup> |

## Dependence on the coefficient field

Irreducibility is a property of the polynomial together with its coefficient ring, not of the polynomial alone. The standard example is \( x^2 + 1 \), which is irreducible in \( \mathbb{R}[x] \) but reducible in \( \mathbb{C}[x] \) since \( x^2 + 1 = (x+i)(x-i) \)<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>. The same polynomial is irreducible in \( \mathbb{Q}[x] \)<sup>[2](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)</sup>. For this reason one says that \( f \) is irreducible *over* \( K \), and the coefficient field is always stated explicitly<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>.

Over a field \( K \), the ring \( K[x] \) is a unique factorization domain: every nonzero polynomial factors into a product of irreducible polynomials, uniquely up to order and unit multiples<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>. Irreducible polynomials over a field are also prime elements, and the principal ideal they generate is a prime ideal<sup>[8](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>.

## Basic tests

**Roots and small degree.** If \( a \in F \) is a root of \( f \), then \( x - a \) divides \( f \), so a polynomial of degree greater than 1 with a root in \( F \) is reducible<sup>[2](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)</sup>. Since a reducible polynomial of degree 2 or 3 must have a linear factor, a degree 2 or 3 polynomial over a field is irreducible exactly when it has no root in the field<sup>[2](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)</sup><sup> • </sup><sup>[3](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)</sup>. Over a finite field \( \mathbb{F}_p \) this gives a direct test: evaluate \( f \) at each element of \( \mathbb{F}_p \)<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>.

The root test fails in higher degree. The polynomial \( (1 + X + X^2)^2 \) over \( \mathbb{F}_2 \) has no root in \( \mathbb{F}_2 \) but is obviously reducible<sup>[5](https://cse.buffalo.edu/faculty/atri/courses/coding-theory/book/chapters/chap5.pdf)</sup>. Similarly, \( x^4 - x^2 - 2x - 1 = (x^2 + x + 1)(x^2 - x - 1) \) is reducible in \( \mathbb{Q}[x] \) yet has no rational root<sup>[2](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)</sup>.

**Reduction modulo a prime.** If a monic polynomial over an integral domain reduces modulo a proper ideal to a polynomial that cannot be factored into two nonconstant polynomials, then the original polynomial is irreducible<sup>[3](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)</sup>. This underlies the common practice of testing irreducibility over \( \mathbb{Q} \) by reducing coefficients modulo a prime \( p \) and working in \( \mathbb{F}_p[x] \)<sup>[1](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)</sup>.

## Gauss' Lemma and irreducibility over the integers

For polynomials with integer coefficients, irreducibility over \( \mathbb{Z} \) and over \( \mathbb{Q} \) coincide: a polynomial in \( \mathbb{Z}[x] \) is irreducible over \( \mathbb{Z}[x] \) if and only if it is irreducible over \( \mathbb{Q}[x] \)<sup>[4](https://crypto.stanford.edu/pbc/notes/numberfield/gausslemma.html)</sup><sup> • </sup><sup>[9](https://crypto.stanford.edu/pbc/notes/numbertheory/eisenstein.html)</sup>. The proof rests on the fact that the product of two primitive polynomials (polynomials whose coefficients have gcd 1) is again primitive, so the content of a product is the product of the contents<sup>[3](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)</sup>.

More generally, if \( R \) is a unique factorization domain with field of fractions \( K \), then \( p \in R[x] \) is irreducible in \( R[x] \) if and only if \( p \) is primitive and irreducible in \( K[x] \)<sup>[3](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)</sup>. A consequence is Gauss' theorem that \( R[x] \) is a UFD whenever \( R \) is<sup>[8](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>. In \( \mathbb{Z}[x] \) specifically, the irreducible elements are the ordinary primes, their negatives, and the primitive polynomials of positive degree that are irreducible over \( \mathbb{Q} \)<sup>[10](https://math.stanford.edu/~conrad/121Page/handouts/gausslemma.pdf)</sup>.

## Irreducibility criteria

**The Schönemann–Eisenstein criterion.** The best-known sufficient condition states that a monic polynomial \( f(x) = x^n + a_{n-1}x^{n-1} + \cdots + a_1 x + a_0 \) with integer coefficients is irreducible in \( \mathbb{Z}[x] \) if a prime \( p \) divides \( a_0, a_1, \ldots, a_{n-1} \) but \( p^2 \) does not divide \( a_0 \)<sup>[11](https://web.math.pmf.unizg.hr/~duje/pdf/section11-3.pdf)</sup>. Historically, Theodor Schönemann published a version of this criterion in 1846, before Gotthold Eisenstein's 1850 paper in the same journal, and Dorwart's 1935 survey accordingly calls it the Schönemann–Eisenstein theorem<sup>[12](https://people.math.ethz.ch/~halorenz/4students/Algebra/Schoenemann_Eisenstein.pdf)</sup>. Both authors were inspired by Gauss's *Disquisitiones Arithmeticae*, though they took different routes to the result<sup>[12](https://people.math.ethz.ch/~halorenz/4students/Algebra/Schoenemann_Eisenstein.pdf)</sup>.

**Cyclotomic polynomials.** A classic application is the irreducibility of \( f(x) = x^{p-1} + x^{p-2} + \cdots + x + 1 \) for a prime \( p \). The substitution \( x = y + 1 \) turns \( f \) into a polynomial to which [Eisenstein's criterion](https://www.edgepedia.org/eisensteins-criterion) applies directly, since each intermediate binomial coefficient \( \binom{p}{i} \) is divisible by \( p \) and the constant term \( p \) is not divisible by \( p^2 \)<sup>[9](https://crypto.stanford.edu/pbc/notes/numbertheory/eisenstein.html)</sup><sup> • </sup><sup>[11](https://web.math.pmf.unizg.hr/~duje/pdf/section11-3.pdf)</sup>. Gauss had already proved this irreducibility in article 341 of the *Disquisitiones Arithmeticae* (1801)<sup>[13](https://www.ams.org/journals/notices/201903/rnoti-p330.pdf)</sup>.

## Role in field theory

Irreducible polynomials control algebraic extensions. For an element \( \alpha \) algebraic over a field \( k \), the polynomials annihilating \( \alpha \) form an ideal in \( k[x] \); its monic generator, the minimal polynomial of \( \alpha \), is irreducible, and its degree equals the extension degree \( [k(\alpha) : k] \)<sup>[14](https://stacks.math.columbia.edu/tag/09GL)</sup>. Conversely, for a nonconstant \( f \in F[x] \), the quotient \( F[x]/(f) \) is a field exactly when \( f \) is irreducible, because \( (f) \) is then a maximal ideal in the principal ideal domain \( F[x] \)<sup>[15](https://math.stackexchange.com/questions/272784/let-f-be-a-field-fx-is-a-polynomial-in-fx-e-fx-f-is-a-field)</sup>.

Over finite fields this construction is exhaustive. For each prime \( p \) and positive integer \( d \) there exists an irreducible polynomial of degree \( d \) in \( \mathbb{F}_p[x] \), and the quotient by it gives the field \( \mathbb{F}_{p^d} \)<sup>[16](https://users.math.msu.edu/users/jhall/classes/codenotes/topstuff.pdf)</sup>. The polynomial \( x^{p^n} - x \) factors over \( \mathbb{F}_p \) as the product of all monic irreducible polynomials whose degree divides \( n \)<sup>[17](https://web.ma.utexas.edu/users/ikmartin/notes/finite-fields-existence-and-galois-theory/)</sup><sup> • </sup><sup>[6](https://www.cs.cmu.edu/~cdm/pdf/41-ffields.pdf)</sup>, and Möbius inversion yields the count \( I_p^m = \frac{1}{m} \sum_{d \mid m} \mu(m/d)\, p^d \) of monic irreducibles of degree \( m \)<sup>[6](https://www.cs.cmu.edu/~cdm/pdf/41-ffields.pdf)</sup>.

## Algorithms

**Rabin's irreducibility test.** [Michael O. Rabin](https://www.edgepedia.org/michael-o-rabin), the computer scientist known for work in randomized algorithms and complexity theory, published probabilistic algorithms for finite fields in the *SIAM Journal on Computing* (Volume 9, Issue 2, May 1980, pages 273–280), including finding irreducible polynomials of a given degree, finding roots, and factoring polynomials over finite fields<sup>[18](https://epubs.siam.org/doi/10.1137/0209024)</sup>. Rabin's deterministic criterion says that a degree-\(m \) polynomial over \\(\mathrm{GF}(q) \\) is irreducible exactly when it divides \\(x^{q^m} - x \\) and, for each of the \\(k \\) prime factors \\(p_i \\) of \\(m \\), the greatest common divisor of \\(f(x) \\) and \\(x^{q^{m/p_i}} - x \\) equals 1, with \\(i \\) running from 1 to \\(k \\)<sup>[19](https://mhostetter.github.io/galois/v0.4.11/api/galois.Poly.is_irreducible/)</sup>. The test exploits the identity that \( x^{q^d} - x \) is the product of all irreducibles whose degree divides \( d \)<sup>[20](https://www.kevos.com/engineering/testing-and-constructing-irreducible-polynomials)</sup>, and it is implemented in libraries such as the Python galois package<sup>[19](https://mhostetter.github.io/galois/v0.4.11/api/galois.Poly.is_irreducible/)</sup>.

**Sieve method.** Over a finite field, where only finitely many polynomials of a fixed degree exist, one can find irreducibles by elimination: a reducible polynomial of degree \( d \) must be a multiple of an irreducible of degree at most \( d/2 \), so sieving out all such multiples leaves exactly the irreducibles<sup>[16](https://users.math.msu.edu/users/jhall/classes/codenotes/topstuff.pdf)</sup>.

## Applications

Irreducible polynomials define the arithmetic of finite fields used throughout computing and coding theory. The [Advanced Encryption Standard](https://www.edgepedia.org/advanced-encryption-standard) interprets each byte as an element of \( \mathrm{GF}(2^8) \) and defines multiplication by polynomial multiplication followed by reduction modulo the fixed polynomial \( m(x) = x^8 + x^4 + x^3 + x + 1 \)<sup>[7](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf)</sup>. Tables of lowest-weight irreducible polynomials over \( \mathrm{GF}(q) \) for \( q \le 27 \) are maintained for such applications<sup>[21](https://people.math.carleton.ca/~daniel/hff/)</sup>.

## References

1. [Fields and polynomials, Galois Theory III (MATH3041), Durham University](https://www.maths.dur.ac.uk/users/daniel.evans/GaloisTheory/Notes/fields-and-polynomials.html)
2. [Romyar Sharifi, Abstract Algebra, Chapter 3: Ring theory](https://www.math.ucla.edu/~sharifi/notes/algebra-ch03.html)
3. [AAR: Identifying irreducibles, Dartmouth abstract algebra refresher](https://math.dartmouth.edu/~trs/PreTeXtProjects/old/abstract-algebra-refresher-CLI/output/web/section-15.html)
4. [Gauss' Lemma, Stanford PBC notes](https://crypto.stanford.edu/pbc/notes/numberfield/gausslemma.html)
5. [Coding Theory, Chapter 5, University at Buffalo (Venkatesan Guruswami et al.)](https://cse.buffalo.edu/faculty/atri/courses/coding-theory/book/chapters/chap5.pdf)
6. [CDM: Finite Fields, Carnegie Mellon University](https://www.cs.cmu.edu/~cdm/pdf/41-ffields.pdf)
7. [FIPS 197: Advanced Encryption Standard, NIST](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf)
8. [Comm. Algebra: Factorization, Stanford PBC notes](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)
9. [Eisenstein's Irreducibility Criterion, Stanford PBC notes](https://crypto.stanford.edu/pbc/notes/numbertheory/eisenstein.html)
10. [Eisenstein criterion and Gauss' Lemma, Math 121 handout, Keith Conrad, Stanford University](https://math.stanford.edu/~conrad/121Page/handouts/gausslemma.pdf)
11. [Irreducibility of Polynomials, University of Zagreb lecture notes](https://web.math.pmf.unizg.hr/~duje/pdf/section11-3.pdf)
12. [David A. Cox, Why Eisenstein Proved the Eisenstein Criterion and Why Schönemann Discovered It First, American Mathematical Monthly 118 (2011)](https://people.math.ethz.ch/~halorenz/4students/Algebra/Schoenemann_Eisenstein.pdf)
13. [The Mathematics of Grace, Notices of the AMS 66 (2019)](https://www.ams.org/journals/notices/201903/rnoti-p330.pdf)
14. [Section 9.9: Minimal polynomials, The Stacks Project](https://stacks.math.columbia.edu/tag/09GL)
15. [Let F be a field, f(x) a polynomial; E = F[x]/(f) is a field iff f is irreducible, Mathematics Stack Exchange](https://math.stackexchange.com/questions/272784/let-f-be-a-field-fx-is-a-polynomial-in-fx-e-fx-f-is-a-field)
16. [Notes on Coding Theory, Jonathan Hall, Michigan State University](https://users.math.msu.edu/users/jhall/classes/codenotes/topstuff.pdf)
17. [Finite Fields: Existence and Galois Theory, Isaac Martin, University of Texas](https://web.ma.utexas.edu/users/ikmartin/notes/finite-fields-existence-and-galois-theory/)
18. [Michael O. Rabin, Probabilistic Algorithms in Finite Fields, SIAM Journal on Computing 9(2): 273–280 (1980)](https://epubs.siam.org/doi/10.1137/0209024)
19. [galois.Poly.is_irreducible documentation](https://mhostetter.github.io/galois/v0.4.11/api/galois.Poly.is_irreducible/)
20. [Testing and Constructing Irreducible Polynomials, KEVOS](https://www.kevos.com/engineering/testing-and-constructing-irreducible-polynomials)
21. [Handbook of Finite Fields tables, Mullen and Panario, CRC Press](https://people.math.carleton.ca/~daniel/hff/)

---
*Topic: Encyclopedia › Physical world and mathematics › Mathematics and statistics › Numbers and algebra › Algebraic structures › Ring theory › Factorization and orders › Factorization of polynomials over rings and fields*

*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
