Factorise x² − 12x + 27

Factorising x² − 12x + 27 gives (x − 3)(x − 9). The numbers −3 and −9 multiply to 27 and add to −12, which is all the method asks for.

Answer

(x − 3)(x − 9)

  1. Find two numbers

    Look for two numbers that multiply to a × c = 27 and add to b = −12: −3 and −9.

  2. Write the factors

    x² − 12x + 27 = (x − 3)(x − 9)

  3. Find the roots

    Set each factor to zero (or use the quadratic formula, discriminant b² − 4ac = 36): x = 9 or x = 3

  4. Check by expanding

    Multiplying the factors back out gives x² − 12x + 27 ✓

Jump to a section

If you want the equation version, x² − 12x + 27 = 0 has the solutions x = 3 and x = 9. The sections below show how to find the pair yourself, why it works, and how to check it.

How do you factorise x² − 12x + 27 step by step?

This is a quadratic with a = 1, b = −12 and c = 27. When a is 1, you only need two numbers that multiply to c and add to b.

  1. Write the shape: (x + ?)(x + ?).
  2. Find two numbers that multiply to 27 and add to −12.
  3. Put them in the brackets: (x − 3)(x − 9).
  4. Expand to check: x² − 9x − 3x + 27 = x² − 12x + 27.

Step 2 is the only real thinking. The pairs of whole numbers that multiply to 27 are 1 × 27 and 3 × 9, and each can be positive or negative. Only −3 and −9 add to −12.

Why do −3 and −9 work?

Expand (x + p)(x + q) and you get x² + (p + q)x + pq. So the middle number is always p + q, and the last number is always p × q. Factorising just runs that expansion backwards.

Place value style chart showing −3 and −9 adding to −12 in the x column and multiplying to 27 in the number column
Add −3 and −9 to get the x coefficient −12, multiply them to get the constant 27.

For our problem, p + q must be −12 and pq must be 27. With p = −3 and q = −9, the sum is −12 and the product is +27, so (x − 3)(x − 9) is the match.

A faster way to find the pair

Read the signs first. The last term, +27, is positive, so both numbers share a sign. The middle term, −12x, is negative, so both are negative. That removes every positive pair at once.

Then list only the factor pairs of 27. There are just two, so the search is tiny.

Pair (product 27) Sum
1 and 27 28
−1 and −27 −28
3 and 9 12
−3 and −9 −12

I teach students to start from the factor pairs of c, not by guessing numbers that add to b. It is the habit that finally makes these problems feel quick.

What are the roots of x² − 12x + 27?

Once the expression is factorised, solving x² − 12x + 27 = 0 takes one more line. If two things multiply to zero, one of them must be zero. So x − 3 = 0 or x − 9 = 0, which gives x = 3 or x = 9.

Three rising step cards showing x² − 12x + 27 becoming (x − 3)(x − 9) and then roots x = 3 and x = 9
Each bracket's sign flips when you solve it: factors (x − 3) and (x − 9) give roots 3 and 9.

The quadratic formula agrees. The discriminant is (−12)² − 4(1)(27) = 144 − 108 = 36, and √36 = 6. Then x = (12 ± 6)/2, which is 18/2 = 9 or 6/2 = 3.

Sign flip

The factors are (x − 3) and (x − 9), but the roots are +3 and +9. The sign inside the bracket is the opposite of the root.

What does the graph look like?

The parabola y = x² − 12x + 27 crosses the x-axis at 3 and 9, which are the roots. It crosses the y-axis at 27. The turning point sits exactly halfway between the roots: (3 + 9)/2 = 6.

Put x = 6 into the expression and you get 36 − 72 + 27 = −9, so the vertex is (6, −9). This also gives the completed-square form (x − 6)² − 9. You can confirm it: (x − 6)² − 9 = x² − 12x + 36 − 9 = x² − 12x + 27.

Try this: Factorise x² − 10x + 16 on paper using the sign rule first, then expand your answer to check it. Then find the midpoint of the two roots and compare it with 10/2.

Mistakes to avoid with this factorisation

The most common slip I see is the wrong sign. Students find 3 and 9, which multiply to 27, and write (x + 3)(x + 9). That expands to x² + 12x + 27, so the middle sign is wrong. Always expand to check.

A few others to watch for:

  • Using one positive and one negative number, as in (x − 3)(x + 9), which gives x² + 6x − 27.
  • Stating the roots as −3 and −9 instead of 3 and 9.
  • Forgetting that the check is quick: two brackets multiply in four small products.

Squares are a special case worth comparing. y² − 8y + 16 has two identical factors, while ours has two different ones. For a case where the signs differ, look at x² − x − 6.

Where this shows up and what comes next

Factorised quadratics describe areas. If a rectangle has area x² − 12x + 27, its sides are x − 3 and x − 9. At x = 10, the sides are 7 and 1, and the area is 100 − 120 + 27 = 7. They also appear in projectile paths and in profit models, where the roots tell you when a value hits zero.

The next skill is negative constants, such as x² − x − 30 and x² − 11x − 80, where the two numbers have opposite signs. If the expression has no constant, as in x² − 25x, you just take out a common factor. For a positive pattern like m² + 12m + 36, the same method works with both numbers positive.

Practice problems

Try these on paper first, then check your answer or load the full steps into the solver.

  1. x² - 10x + 21(x − 3)(x − 7)
  2. x² - 14x + 45(x − 5)(x − 9)
  3. x² - 17x + 72(x − 8)(x − 9)
  4. 2x² - 11x + 12(2x − 3)(x + 4)

Factorise x² − 12x + 27: common questions

What is the factorised form of x² − 12x + 27?

It is (x − 3)(x − 9). Both numbers are negative because they multiply to +27 and add to −12. You can check by expanding: x² − 9x − 3x + 27 gives x² − 12x + 27.

What are the solutions of x² − 12x + 27 = 0?

x = 3 or x = 9. Set each factor to zero: x − 3 = 0 gives x = 3, and x − 9 = 0 gives x = 9. The quadratic formula gives the same pair, with a discriminant of 36.

Can x² − 12x + 27 be factorised further?

No. Each bracket, x − 3 and x − 9, is a linear factor, so the expression is fully factorised over the integers. There are no common factors left to take out.

What is the vertex of y = x² − 12x + 27?

The vertex is (6, −9). The x-value is −b/2a = 12/2 = 6, and substituting gives 36 − 72 + 27 = −9. That is the lowest point of the parabola.