Expanding Brackets Calculator
Expand single brackets, double brackets using the FOIL method, or difference of two squares expressions — with full step-by-step working. Ideal for GCSE algebra and A-level revision.
Format: (ax + b)(cx + d)
Expanding: (1x +4)(1x -3)
Expanded form
1x² +1x -12
How it works
Write the expression
Expand using the FOIL method: First, Outer, Inner, Last.
First — multiply the first terms
First: 1x × 1x = 1x².
Result:1x²Outer — multiply the outer terms
Outer: 1x × -3 = -3x.
Result:-3xInner — multiply the inner terms
Inner: 4 × 1x = 4x.
Result:4xLast — multiply the last terms
Last: 4 × -3 = -12.
Result:-12Collect like terms
Combine the x terms: -3x + 4x = 1x. Final answer: 1x² +1x -12.
Result:1x² +1x -12
FOIL method for double brackets
Example substitution
F: x×x = x². O: x×(−2) = −2x. I: 3×x = 3x. L: 3×(−2) = −6. Collect: x² + x − 6.
Worked examples
Expand 3(2x + 5)
- 13 × 2x: = 6x
- 23 × 5: = 15
Expand (x + 3)(x + 4)
- 1First: x × x = x²
- 2Outer: x × 4 = 4x
- 3Inner: 3 × x = 3x
- 4Last: 3 × 4 = 12
- 5Collect: x² + 7x + 12
Expand (x + 5)(x − 5)
- 1Difference of squares: (a+b)(a−b) = a² − b²
- 2Apply: x² − 25
Frequently asked questions
How do you expand single brackets?+
Multiply the term outside the bracket by every term inside. E.g., 3(x + 4) = 3x + 12.
How do you expand double brackets?+
Use FOIL: multiply the First, Outer, Inner, Last terms. E.g., (x+2)(x+3) = x²+3x+2x+6 = x²+5x+6.
What is the difference of two squares?+
(a+b)(a−b) = a²−b². This special case has no middle term.
How do you expand (x+3)²?+
(x+3)² = (x+3)(x+3) = x²+6x+9.