QuadraticCalc

Factoring Calculator

Enter the coefficients of ax² + bx + c to factor it into brackets, with the AC method worked out and an area model of the result.

Your Values

Try an example

Visualization

Results

Step-by-Step Solution

    How Factoring Calculator Works?

    The factoring calculator takes out the greatest common factor (GCF), finds 2 integers whose product is ac and whose sum is b, and groups the 4 resulting terms into 2 brackets.

    1. Enter a, b and c
    2. Take out the GCF of a, b and c
    3. Multiply a × c
    4. Find m and n with m·n = ac and m + n = b
    5. Split bx into mx + nx
    6. Group and factor out the common bracket

    The calculator tests every factor pair of ac, so a pair is always found when one exists. A quadratic with no integer pair has irrational or complex roots. The calculator then writes the factored form from the real roots, or marks the quadratic as prime over the real numbers when the discriminant is negative.

    InputacPairFactored form
    x² + 5x + 662 and 3(x + 2)(x + 3)
    6x² + 7x − 3−18−2 and 9(2x + 3)(3x − 1)
    2x² − 8x + 84 (after GCF 2)−2 and −22(x − 2)²
    x² + x + 11noneprime over the reals

    Factoring Formula

    The factoring formula is ax² + bx + c = a(x − x₁)(x − x₂), where x₁ and x₂ are the roots of the quadratic.

    ax² + bx + c = a(x − x₁)(x − x₂)
    a
    leading coefficient
    x₁, x₂
    roots of ax² + bx + c = 0
    m · n
    equals ac in the AC method
    m + n
    equals b in the AC method

    3 Special Factoring Patterns

    PatternFormulaExample
    Difference of two squaresx² − p² = (x − p)(x + p)x² − 9 = (x − 3)(x + 3)
    Perfect square (sum)x² + 2px + p² = (x + p)²x² + 6x + 9 = (x + 3)²
    Perfect square (difference)x² − 2px + p² = (x − p)²x² − 4x + 4 = (x − 2)²

    Worked Example: 6x² + 7x − 3

    1. ac = 6 × (−3) = −18.
    2. The pair −2 and 9 multiplies to −18 and adds to 7.
    3. 6x² − 2x + 9x − 3.
    4. 2x(3x − 1) + 3(3x − 1).
    5. (2x + 3)(3x − 1).

    Factoring Calculator FAQ

    What Is the AC Method of Factoring?

    The AC method factors ax² + bx + c by finding 2 numbers that multiply to a × c and add to b, splitting the middle term with those numbers and factoring the 4 terms in 2 groups.

    Can Every Quadratic Be Factored?

    No, only quadratics with rational roots factor over the integers. x² − 2 factors over the reals as (x − √2)(x + √2), and x² + 1 has no real factors at all.

    How Do I Factor a Quadratic When a Is Not 1?

    Use the AC method: multiply a by c, find the pair of factors of ac that adds to b, split bx with that pair and factor by grouping. The factoring calculator shows each of these 5 steps.

    What Does Prime Mean for a Quadratic?

    A prime quadratic cannot be written as a product of 2 linear factors with integer coefficients. x² + x + 1 is prime, and its discriminant is −3.

    How Do I Check a Factored Answer?

    Expand the brackets and compare the result with the original quadratic. (2x + 3)(3x − 1) expands to 6x² − 2x + 9x − 3 = 6x² + 7x − 3.