Factoring Calculator

Factor an integer into prime powers or rewrite an integer-coefficient quadratic as exact binomials. Integer mode reports factor pairs, divisor functions, totient, and number properties. Quadratic mode removes the content GCF, tests the discriminant, reports exact roots, and verifies every coefficient by expansion.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Choose integer mode for prime factors and divisor properties, or quadratic mode for exact integer binomial factors and an expansion check.

Choose what to factor
Whole-number analysis

Prime-factor an integer

Enter one signed whole number within the stated range. The sign is handled as the unit -1; prime factors and positive divisor properties use the absolute value. Zero and the units 1 and -1 receive explicit boundary results because they do not have ordinary prime factorizations.
Enter an integer from -999,999,999,999,999 through 999,999,999,999,999.
Exact integer arithmetic throughoutPrime powers reconstruct the input; divisor properties use |n|.
Integer mode does not factor decimals or algebraic expressions. Quadratic mode handles one integer-coefficient polynomial of degree two and reports irreducibility only over the integers and rational numbers; irrational and complex factors belong to broader number systems.

What Is a Factoring Calculator

A factoring calculator rewrites a value as a product of simpler factors. For an integer, that means a unique product of prime numbers once the sign and factor order are ignored. For a quadratic polynomial, factoring means extracting any common coefficient and, when possible, rewriting the remaining expression as a product of two linear binomials.

Those tasks use different mathematics, so this page separates them into Integer and Quadratic polynomial modes. The result identifies the method, shows exact intermediate values, and includes an independent product or expansion check instead of presenting an unexplained factor string.

How to Use the Factoring Calculator

Choose Integer when the input is one whole number, including a negative integer, zero, or a unit such as 1. Choose Quadratic polynomial for an expression in the form ax^2 + bx + c with integer coefficients and a nonzero a. Enter the signs exactly as written; for example, x^2 - 5x + 6 uses a = 1, b = -5, and c = 6.

After selecting Factor, read the primary factorization first and then inspect the classification, exact checks, and table. Integer mode verifies the prime powers against the original magnitude. Quadratic mode multiplies the reported factors to reconstruct the x^2, x, and constant coefficients.

  1. Select Integer or Quadratic polynomial mode.
  2. Enter the integer, or enter the three signed coefficients a, b, and c.
  3. Select Factor and read the prime-power or binomial result.
  4. Review the divisor properties or discriminant and exact roots.
  5. Use the factor-pair or expansion table as an independent arithmetic check.
  6. Keep the original problem beside the result so signs and coefficients can be compared.

Prime Factorization and Integer Properties

The Fundamental Theorem of Arithmetic states that every integer with absolute value greater than 1 has one prime factorization apart from factor order. Repeated primes are grouped with exponents, so 360 = 2^3 x 3^2 x 5. A negative input adds the unit -1; the prime factors and divisor properties are calculated from its absolute value.

Zero, 1, and -1 need explicit boundary treatment. Zero has infinitely many integer divisors and no unique finite prime factorization. The values 1 and -1 are units rather than primes or composites, so they have no prime factors. The calculator reports these facts instead of forcing them into an ordinary composite-number result.

  • Prime-power form groups repeated primes with exponents.
  • Expanded form lists each prime occurrence separately.
  • Factor pairs multiply to the absolute value of the input.
  • A prime input has exactly two positive divisors: 1 and itself.
Formula guide
  • Integer factorization: |n| = p1^e1 x p2^e2 x ... x pk^ek

Read Divisor Count, Divisor Sum, Totient, and Radical

Prime exponents unlock several useful number properties without testing every possible divisor. The divisor-count function tau multiplies one more than each exponent. The divisor-sum function sigma multiplies a geometric-series total for each prime. Subtracting the original magnitude from sigma gives the sum of proper positive divisors.

Euler's totient phi counts positive integers up to n that are coprime to n. The radical multiplies each distinct prime once. Exponents also identify perfect squares and square-free numbers: every exponent is even for a square, while every exponent is one for a square-free value.

Formula guide
  • Positive divisor count: tau(n) = product of (ei + 1)
  • Positive divisor sum: sigma(n) = product of (pi^(ei + 1) - 1) / (pi - 1)
  • Euler totient: phi(n) = n x product of (1 - 1/pi)
Properties derived from 360 = 2^3 x 3^2 x 5
PropertyExact setupResultMeaning
Positive divisors(3+1)(2+1)(1+1)24There are 24 positive divisors.
Euler totient360(1-1/2)(1-1/3)(1-1/5)96Ninety-six values from 1 through 360 are coprime to 360.
Radical2 x 3 x 530Each distinct prime appears once.
Square-freeExponents 3, 2, 1NoAt least one prime repeats.

Factor an Integer-Coefficient Quadratic

Quadratic mode starts with the content, the greatest common factor of a, b, and c. The sign is chosen so the primitive polynomial has a positive leading coefficient. For 12x^2 + 10x + 2, the content is 2 and the primitive expression is 6x^2 + 5x + 1.

The primitive discriminant D = B^2 - 4AC determines rational factorability. If D is a nonnegative perfect square, both roots are rational and the primitive integer polynomial can be written as integer linear factors. If D is negative or a non-square positive integer, the primitive polynomial is irreducible over the integers even though irrational or complex roots may still exist.

  • Extract the complete signed coefficient GCF first.
  • Calculate the discriminant from the primitive coefficients.
  • Build linear factors from reduced rational roots when sqrt(D) is an integer.
  • Expand the factors to verify all three original coefficients.
Formula guide
  • Polynomial content: g = GCF(a, b, c), so ax^2 + bx + c = g(Ax^2 + Bx + C)
  • Quadratic discriminant: D = B^2 - 4AC
  • An integer-coefficient quadratic factors into rational binomials exactly when D is a nonnegative perfect square

Recognize Factoring Patterns Without Guessing

A repeated factor occurs when D = 0, which corresponds to a perfect-square trinomial after the content GCF is removed. A polynomial with no x term and a negative constant may be a difference of squares. A zero constant exposes a common x factor. General factorable trinomials do not need to match a named visual pattern; the discriminant test still identifies exact rational roots.

Equivalent factorizations can look different. The factors may appear in reverse order, and a pair of negative signs can be moved between a scalar and the binomials without changing the product. Expansion is therefore a stronger check than comparing the text of two answers character for character.

Formula guide
  • Expansion check: (px + q)(rx + s) = prx^2 + (ps + qr)x + qs
Common quadratic patterns
ExpressionPatternFactored formVerification clue
x^2 - 9Difference of squares(x - 3)(x + 3)Middle terms cancel.
x^2 + 6x + 9Perfect-square trinomial(x + 3)^2D = 0 and one repeated root.
6x^2 + 5x + 1General trinomial(2x + 1)(3x + 1)Outer and inner terms add to 5x.
2x^2 + 2Irreducible over integers2(x^2 + 1)The content factors out, but D is negative.

Factoring Calculator Worked Examples

For integer input -84, separate the unit -1 and factor 84. The prime-power result is -1 x 2^2 x 3 x 7. Multiplying those factors returns -84, while the exponents produce 12 positive divisors for the magnitude.

For 6x^2 + 5x + 1, the coefficient GCF is 1 and D = 25 - 24 = 1. The roots are -1/2 and -1/3, so the exact integer factors are (2x + 1)(3x + 1). Expanding gives 6x^2 + 5x + 1.

Mode-specific examples
InputKey stepResultIndependent check
360Collect repeated primes2^3 x 3^2 x 5Prime powers multiply to 360.
-84Separate -1-1 x 2^2 x 3 x 7Product equals -84.
6x^2 + 5x + 1D = 1(2x + 1)(3x + 1)Expansion restores 6, 5, and 1.
x^2 + x + 1D = -3Irreducible over integersNo real or rational linear factors.

Factoring Calculator Features

This calculator keeps integer number theory and quadratic algebra in one focused workspace without pretending they are the same operation. Every result is generated from exact integer arithmetic, and the primary answer is supported by classifications, formulas, and a table that can be audited independently.

  • Prime factorization for positive and negative integers up to 15 digits.
  • Explicit results for zero, 1, and -1.
  • Prime powers, expanded factors, distinct primes, and factor pairs.
  • Divisor count, divisor sum, proper-divisor classification, totient, and radical.
  • Quadratic content GCF, discriminant, exact roots, and integer binomial factors.
  • Irreducibility explanation for non-square or negative discriminants.
  • Coefficient-by-coefficient expansion verification.
  • Copyable results and downloadable result tables.

Benefits of Exact Factoring

Exact factors reveal structure that a decimal approximation can hide. Prime powers simplify fractions, GCF and LCM work, divisibility questions, and number-theory exercises. Quadratic factors expose zeros directly and can make equation solving, graph interpretation, and algebraic simplification easier.

The verification output is equally important. A plausible-looking pair of binomials may carry the wrong middle sign, and a prime list may omit a repeated factor. Multiplying back to the original value catches those mistakes without requiring trust in the calculator's headline answer.

Common Factoring Calculator Use Cases

Use Integer mode when the task concerns one exact whole number. Use Quadratic polynomial mode only for a second-degree expression with integer coefficients. Higher-degree, multivariable, fractional-coefficient, and symbolic expressions need a broader computer algebra system or a method tailored to the course.

  • Find prime factors and factor pairs for arithmetic or homework.
  • Calculate divisor count, divisor sum, totient, or radical from prime powers.
  • Check whether an integer is prime, composite, square-free, or a perfect square.
  • Factor out a coefficient GCF from a quadratic.
  • Factor a trinomial into exact integer binomials.
  • Identify a perfect-square trinomial or difference of squares.
  • Explain why a quadratic is irreducible over the integers.
  • Verify a hand-factored answer by expansion.

Accuracy, Scope, and Trust Notes

Integer inputs are parsed as digit strings and calculated with exact integer arithmetic rather than floating-point approximations. Quadratic coefficients must be integers from -1,000,000,000 through 1,000,000,000, a must be nonzero, and factorability is tested on the primitive polynomial after its signed content GCF is removed.

The quadratic result is limited to factors over the integers and rational numbers. An irreducible label is always relative to that domain; a polynomial may still have irrational or complex roots. The tool does not factor higher-degree polynomials, rational expressions, or expressions containing several variables.

  • Keep coefficient signs exactly as written in standard form.
  • Do not interpret an irreducible-over-integers result as having no roots.
  • Use the multiplication or expansion table to verify every reported factorization.
  • For formal coursework, present the method and notation required by the instructor.

Open Factoring and Number-Theory References

FAQ

How do I find the prime factorization of an integer?

Choose Integer mode and enter the value. The calculator separates a negative sign as -1, finds the prime factors of the absolute value, groups repeated primes with exponents, and multiplies them back as a check.

Is 1 a prime number?

No. One is a multiplicative unit, not a prime or composite number. It has one positive divisor and no prime factors, which is why ordinary prime-factor rules begin with integers greater than 1.

Can zero be prime-factorized?

No. Every nonzero integer divides zero, so zero has infinitely many divisors and no unique finite prime factorization. The calculator reports that boundary explicitly.

How are the number of factors and factor pairs calculated?

If |n| = p1^e1 x ... x pk^ek, the positive divisor count is the product of (ei + 1). Positive factor-pair count is half that total, rounded up when |n| is a perfect square.

What does Euler's totient mean in the integer result?

Euler's totient phi(n) counts positive integers from 1 through n that are coprime to n. The calculator derives it exactly from the distinct prime factors of |n|.

How do I factor ax^2 + bx + c?

Choose Quadratic polynomial mode and enter signed integer coefficients. The calculator removes their content GCF, calculates the primitive discriminant, constructs exact binomials when its square root is an integer, and verifies the expansion.

How does the discriminant show whether a quadratic factors?

For a primitive integer quadratic, a nonnegative perfect-square discriminant produces rational roots and integer binomial factors. A negative or non-square discriminant makes the primitive polynomial irreducible over the integers.

Why does the calculator say irreducible over the integers?

It means the primitive polynomial cannot be written as nonconstant integer or rational linear factors. It may still have irrational real roots or complex roots, which the quadratic formula can describe.

Can equivalent factorizations look different?

Yes. Factor order can be reversed, and signs can be moved between a scalar and both binomials. Expanding the factors and matching a, b, and c proves equivalence more reliably than comparing formatting.

Can this calculator factor cubic or higher-degree polynomials?

No. Polynomial mode is deliberately limited to integer-coefficient quadratics. Use a suitable computer algebra system or course-specific factoring method for cubic, higher-degree, multivariable, or rational expressions.