Factoring Calculator (Polynomial & Number)
Prime factorization, divisors, GCD/LCM, and quadratic factoring with discriminant and roots.
MATHTwo-in-one factoring tool. Switch between Number mode (prime factorization, divisor list, GCD, LCM of two integers) and Quadratic mode (factor ax²+bx+c into a(x−r₁)(x−r₂) using the discriminant b²−4ac).
Number mode does trial division by primes up to √n, then enumerates every divisor and computes GCD via the Euclidean algorithm with LCM = a·b/gcd. Quadratic mode evaluates the discriminant D = b²−4ac: D > 0 gives two distinct real roots and the factored form a(x−r₁)(x−r₂); D = 0 gives a repeated root and a(x−r)²; D < 0 reports complex conjugate roots and notes the polynomial is irreducible over the reals. Worked example: 60 = 2² × 3 × 5, divisors {1,2,3,4,5,6,10,12,15,20,30,60}, GCD(60,24)=12, LCM=120. Quadratic x²−5x+6 has discriminant 1, roots 2 and 3, factored (x−2)(x−3).