Eisenstein Criterion: Find the Shift or Know When to Stop
The Eisenstein criterion proves a polynomial irreducible over the rationals when a prime divides every coefficient but the leading one and its square misses the constant term. Failing it proves nothing.
By Sunil Bansal, Founder · Updated 20 Nov 2026

Key takeaways
- The Eisenstein irreducibility criterion is a one-way test. A pass proves a polynomial with integer coefficients is irreducible over the rationals. A fail proves nothing, so never write "not Eisenstein, hence reducible".
- A shift x → x + a can only help at a prime p when the polynomial, reduced modulo p, equals a constant times (x − a)ⁿ. Only primes dividing the discriminant (the number that is zero exactly when the polynomial has a repeated root) can qualify, so you can list the candidates in advance.
- In our count of monic cubics with coefficients from −6 to 6, 588 of 1,704 irreducible ones (34.5%) passed directly or after a shift. For monic quartics with coefficients from −3 to 3, 203 of 1,591 (12.8%) did. Small samples like these suggest a fail on your own problem is common; this is our inference.
Cyclotomic polynomials Φ_m pass only for some indices m. In our run for m from 3 to 60, they passed exactly when m is a prime power or twice an odd prime power.
In this article
- 1What does the Eisenstein criterion say, and which exams ask for it?
- 2How do you prove the Eisenstein irreducibility criterion?
- 3When Eisenstein fails, which shift should you try?
- 4Why do most irreducible polynomials never pass, even after a shift?
- 5Which cyclotomic polynomials pass Eisenstein?
- 6Which mistakes cost marks on Eisenstein questions?
- 7How can you check your own practice problems with a script?
- 8Where does Eisenstein's test sit in the CSIR NET and GATE algebra syllabus?
- 9Frequently asked questions
Eisenstein's criterion is a short irreducibility test, and a polynomial that fails it leaves the question open. The statement takes a minute to learn. The trouble starts when a polynomial such as x² + 1 or x⁴ + 1 fails it, and the student has to decide whether to give up, guess a substitution, or switch method.
That decision has a mechanical answer. A shift x → x + a works for a prime p in only one situation, and you can read that situation off the polynomial before you try a single substitution. Once you see it, you also see why most irreducible polynomials will never pass, however you shift them.
This page gives the statement, a proof short enough to write in an exam, and a five-step card for finding the prime and the shift, or for stopping early. It ends with a Python version of the card for checking your own practice problems.
What does the Eisenstein criterion say, and which exams ask for it?
The Graduate Aptitude Test in Engineering (GATE) Mathematics (MA) 2027 syllabus names Eisenstein's irreducibility criterion under Algebra. The Council of Scientific and Industrial Research National Eligibility Test (CSIR NET) syllabus lists the broader heading "Polynomial rings and irreducibility criteria", under which Eisenstein falls.
The criterion says: let f(x) = aₙxⁿ + … + a₁x + a₀ have integer coefficients. If one prime p satisfies all three conditions below, f is irreducible over ℚ (the rational numbers), meaning it cannot be written as a product of two lower-degree polynomials with rational coefficients.
- p does not divide aₙ.
- p divides every other coefficient, a₀ to aₙ₋₁.
- p² does not divide a₀.
All three conditions must hold for the same prime. For example, x³ + 6x² + 12x + 6 passes at p = 2: 2 does not divide 1, 2 divides 6, 12 and 6, and 4 does not divide 6.
The sources are the GATE 2027 Mathematics (MA) syllabus, published by the organising institute, the Indian Institute of Technology (IIT) Madras, and the CSIR common syllabus for Mathematical Sciences, hosted by CSIR's Human Resource Development Group, which places the heading in Unit 2. Our GATE MA syllabus page shows where the topic sits among the other algebra items.
How do you prove the Eisenstein irreducibility criterion?
The proof reduces the polynomial modulo p and shows that a factorisation would force p² to divide the constant term. "Modulo p" means you replace every coefficient by its remainder on division by p, so you work in 𝔽ₚ[x], polynomials with coefficients in the integers mod p.
Suppose f factors over ℚ. First divide f by the gcd of its coefficients (its content). Because p does not divide aₙ, the conditions still hold afterwards, so assume f is primitive (its coefficients have gcd 1). By Gauss's lemma, which says a primitive integer polynomial that factors over ℚ also factors over ℤ, write f = g·h with g and h in ℤ[x] (polynomials with integer coefficients), both of degree at least 1.
- Reduce mod p. Conditions 1 and 2 give f̄ = c·xⁿ with c ≠ 0 (mod p), so ḡ·h̄ = c·xⁿ.
- The leading coefficients of g and h multiply to aₙ, which p does not divide. So g and h keep their degrees mod p, and both ḡ and h̄ have degree at least 1.
- 𝔽ₚ[x] has unique factorisation and its units are the nonzero constants. The only factors of c·xⁿ are constants times powers of x, so ḡ = u·xʲ and h̄ = v·xᵏ with j, k ≥ 1.
- Hence both ḡ and h̄ have zero constant term. That means p divides g(0) and p divides h(0), so p² divides g(0)·h(0) = a₀. This contradicts condition 3.
Step 3 is where students stall: the zero constant terms come from unique factorisation in 𝔽ₚ[x], not from the original coefficients.
When Eisenstein fails, which shift should you try?
Try a shift: replace x by x + a and test the new polynomial. f is irreducible exactly when f(x + a) is, because x ↦ x + a is an invertible change of variable on ℚ[x]. You do not need to guess a: it is forced by f modulo p.

This is because the constant term of f(x + a) is f(a), and its other non-leading coefficients vanish mod p exactly when f(y) ≡ c(y − a)ⁿ.
Two consequences save time:
- f mod p then has a repeated root, so p must divide the discriminant of f. The discriminant is the number that is zero exactly when f has a repeated root; for x² + bx + c it is b² − 4c.
- Only a mod p matters. For n ≥ 2, f′(a) ≡ 0 (mod p), so f(a + kp) ≡ f(a) (mod p²). If p does not divide n, the coefficient of xⁿ⁻¹ forces a ≡ −aₙ₋₁ · (n·aₙ)⁻¹ (mod p).
The Eisenstein card. Run these in order. Each step has a pass or fail.
- Clear the groundMultiply out denominators and divide by the content. Pass: f has integer coefficients with gcd 1.
- Direct testFor each prime p dividing a₀, check the three conditions. Pass: one prime meets all three, so stop, f is irreducible. Fail: go on.
- List shift candidatesFactorise the discriminant of f. Pass: it is nonzero and has prime factors p not dividing aₙ. Fail (discriminant 0): f has a repeated factor and is reducible.
- Test each candidate primeFind a from the formula above, or try a = 0 to p − 1 when p divides n. Pass: f ≡ c(x − a)ⁿ (mod p) and p² does not divide f(a). Then f(x + a) is Eisenstein and f is irreducible.
- StopIf no candidate passes, no prime and no integer shift will ever work. This proves nothing about reducibility; switch to another test.
Worked example. Take f = x² + x + 2. The discriminant is 1 − 8 = −7, so p = 7. Here 2⁻¹ ≡ 4 (mod 7), so a ≡ −4 ≡ 3. Check: (x − 3)² = x² − 6x + 9 ≡ x² + x + 2 (mod 7). Then f(3) = 14, and 49 does not divide 14. So f(x + 3) = x² + 7x + 14, which is Eisenstein at 7.
Two familiar cases: for x² + 1 the discriminant is −4, so p = 2 and a = 1, giving x² + 2x + 2. For x⁴ + 1, f(x + 1) = x⁴ + 4x³ + 6x² + 4x + 2, Eisenstein at 2.
Why do most irreducible polynomials never pass, even after a shift?
Because a prime works only when f mod p equals c(x − a)ⁿ, which is rare. Our counts below show how rare.
Take x⁴ + x + 1. Its discriminant is 229, a prime, so p = 229 is the only candidate. The formula gives a ≡ 0, which would require f ≡ x⁴ (mod 229), but f has the extra terms x + 1. No shift works. It is still irreducible: it has no root mod 2 (f(0) = f(1) = 1), and the only irreducible quadratic mod 2 is x² + x + 1, whose square is x⁴ + x² + 1, not f. So f is irreducible mod 2, hence irreducible over ℚ.
Our count (November 2026). We used Python with sympy. The samples were every monic cubic x³ + bx² + cx + d with integer coefficients from −6 to 6 and d ≠ 0 (2,028 polynomials, of which 1,704 are irreducible over ℚ), and every monic quartic with coefficients from −3 to 3 and constant term ≠ 0 (2,058 polynomials, of which 1,591 are irreducible). For each irreducible one we tested the direct condition for every prime of a₀, then the shift rule for every prime of the discriminant.
| Sample (irreducible, monic) | Count | Eisenstein directly | Only after a shift | Neither |
|---|---|---|---|---|
| Cubics, coefficients −6 to 6 | 1,704 | 296 (17.4%) | 292 (17.1%) | 1,116 (65.5%) |
| Quartics, coefficients −3 to 3 | 1,591 | 108 (6.8%) | 95 (6.0%) | 1,388 (87.2%) |
These are bounded samples, not exam polynomials. How likely a random polynomial is to pass after some shift has also been studied in Micheli and Schnyder, "The Density of Shifted and Affine Eisenstein Polynomials" (arXiv, 2015). The script at the end of this page reproduces our counts.
What to try instead. All 1,116 failing cubics were irreducible modulo some prime below 30. A monic cubic that is irreducible mod p, meaning it has no root mod p, is irreducible over ℚ. For cubics, check rational roots (±divisors of a₀), then reduce modulo successive primes 2, 3, 5, 7 and so on until the cubic has no root mod p. In our sample, 744 of the 1,116 failing cubics were rootless mod 2 or 3, and the largest prime needed was 17. For quartics, a mod p test is sufficient but not necessary: x⁴ + 1 is reducible mod every prime, yet the shift above proves it irreducible.
Which cyclotomic polynomials pass Eisenstein?
For prime index, yes. For general index, it does not always work. The cyclotomic polynomial Φₘ is the polynomial whose roots are the primitive m-th roots of unity. For a prime p, Φₚ(x) = xᵖ⁻¹ + … + x + 1 = (xᵖ − 1)/(x − 1). Shifting gives Φₚ(x + 1) = ((x + 1)ᵖ − 1)/x = Σₖ C(p, k)·xᵏ⁻¹ for k = 1 to p, whose lower coefficients are binomial coefficients divisible by p, with constant term p. That is Eisenstein at p.
Our count (November 2026). We ran the shift test on every Φₘ with 3 ≤ m ≤ 60 (58 polynomials, all irreducible over ℚ). 36 passed and 22 failed. For 3 ≤ m ≤ 60, the shift test passes exactly when m is a prime power (24 values) or twice an odd prime power (12 values). The fails were m = 12, 15, 20, 21, 24, 28, 30, 33, 35, 36, 39, 40, 42, 44, 45, 48, 51, 52, 55, 56, 57 and 60. Cyclotomic fields are covered further in our Galois theory page.
We also ran xⁿ + 1 for n = 2 to 32: it is irreducible for n = 2, 4, 8, 16 and 32 only, and the shift (p = 2, a = 1) works for exactly those.
Which mistakes cost marks on Eisenstein questions?
These five mistakes are the ones we most often see in Eisenstein attempts (our judgement). Each has a pass or fail test.
- Trying only p = 2. For x⁴ + 6x² + 12, p = 2 fails because 4 divides 12. But p = 3 passes: 3 divides 6 and 12, 9 does not divide 12, and 3 does not divide 1. Pass: you tested every prime dividing a₀. Fail: you stopped after p = 2.
- Concluding reducible after a fail. A fail leaves the question open. x² + 1 fails directly and is irreducible. Pass: your answer says the question is open and moves to another test. Fail: you wrote "reducible".
- Mixing primes. Pass: the same p satisfies conditions 1 to 3. Fail: p differs between conditions.
- Skipping the leading coefficient. Pass: after removing content, p does not divide aₙ. Fail: p divides aₙ.
- Using a composite number. Pass: the number you divide by is prime. Fail: it is composite, so the test does not apply.
How can you check your own practice problems with a script?
You can reproduce the card and our counts with a short sympy script. eisenstein_or_shift returns (p, a) when f(x + a) is Eisenstein at p (a = 0 means directly), or None when the card stops. Coefficients go highest power first. tally enumerates every monic polynomial in a sample, keeps those that sympy reports irreducible over ℚ, and tests the direct condition first, then the shift.
from math import gcd
from functools import reduce
from itertools import product
from sympy import symbols, Poly, factorint, cyclotomic_poly
x = symbols('x')
def eisenstein_at(c, p):
return c[0] % p != 0 and all(a % p == 0 for a in c[1:]) and c[-1] % (p*p) != 0
def eisenstein_or_shift(c):
if c[-1] == 0:
return None
g = reduce(gcd, c) # step 1: remove the content
c = [a // g for a in c]
n = len(c) - 1
for p in factorint(abs(c[-1])): # step 2: direct test
if eisenstein_at(c, p):
return p, 0
f = Poly(c, x)
d = f.discriminant()
if n < 2 or d == 0:
return None
for p in factorint(abs(d)): # steps 3 and 4: shift test
if c[0] % p == 0:
continue
shifts = [(-c[1] * pow(n * c[0], -1, p)) % p] if n % p else range(p)
for a in shifts:
h = [int(t) for t in f.shift(a).all_coeffs()]
if eisenstein_at(h, p):
return p, a
return None
def tally(degree, bound):
direct = shifted = neither = 0
for rest in product(range(-bound, bound + 1), repeat=degree):
c = [1, *rest]
if c[-1] == 0 or not Poly(c, x).is_irreducible:
continue
r = eisenstein_or_shift(c)
if r is None:
neither += 1
elif r[1] == 0:
direct += 1
else:
shifted += 1
return direct, shifted, neither
print(eisenstein_or_shift([1, 1, 2])) # (7, 3)
print(eisenstein_or_shift([1, 0, 0, 1, 1])) # None: x^4 + x + 1
print(tally(3, 6)) # (296, 292, 1116)
print(tally(4, 3)) # (108, 95, 1388)
print(len([m for m in range(3, 61) if eisenstein_or_shift(
[int(t) for t in Poly(cyclotomic_poly(m, x), x).all_coeffs()])])) # 36
Use it to check your hand work, not to replace it, because the exam gives you no computer.

Where does Eisenstein's test sit in the CSIR NET and GATE algebra syllabus?
Eisenstein's criterion is a ring theory topic: it sits with polynomial rings, unique factorisation domains (rings where every element factors uniquely into irreducibles) and field extensions. Our Abstract Algebra course covers polynomial rings, ideals, Euclidean domains and unique factorisation domains, the setting in which Eisenstein's criterion sits.
Abstract Algebra (Dec-26 Live) is taught by Vivek Sir and built for CSIR NET Mathematical Sciences. Its ring theory module covers rings, fields, ideals, polynomial rings, Euclidean domains and unique factorisation domains. It includes live sessions with doubt clearing, practice material and previous-year question discussions. As of 20 November 2026 it costs ₹1,999. Our abstract algebra course guide explains what the Common University Entrance Test Postgraduate (CUET PG), GATE and CSIR NET each need from this subject.
To ask about the course content before you enrol, write to sbtechmath@gmail.com or call +91 81265 45455 (9am to 7pm, Monday to Saturday).
Prepare Abstract Algebra with Vivek Sir
Frequently asked questions
Gauss's lemma says a primitive polynomial in ℤ[x] that factors over ℚ also factors over ℤ. Eisenstein's criterion is a test for irreducibility, and its proof uses Gauss's lemma to move the factorisation into ℤ[x].
Yes, when you treat the polynomial as a single-variable polynomial over a ring with a prime element. For x² + y² − 1, view it as y² + (x + 1)(x − 1) over ℚ[x]. The prime x + 1 divides the constant term, but (x + 1)² does not.
Sources
- 1.GATE 2027 Mathematics (MA) syllabus, Indian Institute of Technology Madras
- 2.CSIR-UGC NET common syllabus for Mathematical Sciences, CSIR Human Resource Development Group
- 3.Micheli and Schnyder, The Density of Shifted and Affine Eisenstein Polynomials, arXiv:1507.02753 (2015)
- 4.Abstract Algebra (Dec-26 Live), SBTech Math course page
- 5.Our own counts (cubics, quartics, cyclotomic polynomials Φₘ for m = 3 to 60, and xⁿ + 1 for n = 2 to 32), run in Python with sympy in November 2026 with the script on this page., November 2026



