About the Complete the Square Calculator
Completing the square turns a quadratic like into the form . That second form is far more informative: it shows at a glance that the parabola's lowest point is at , that it opens upwards, and how far it is stretched. The same manipulation is how the quadratic formula is derived and how circles and ellipses are put into standard form.
This calculator handles any leading coefficient, including fractions and decimals such as . Give it an expression and it returns the vertex form and vertex; give it an equation ending in or another value and it continues to the exact solutions, or explains why there are no real ones when the parabola does not cross the axis.
What is completing the square?
A perfect-square trinomial is one that equals the square of a binomial, such as . Its constant term is always the square of half the coefficient of . Completing the square means adding and subtracting exactly that number so that part of the expression becomes a perfect square.
The result is vertex form, . Because a square is never negative, the expression's minimum (for ) or maximum (for ) value is , reached when .
How to use the Complete the Square Calculator
- Type a quadratic expression such as 2x^2 - 8x + 3, or an equation such as x^2 - 4x - 1 = 0.
- Coefficients may be integers, fractions or decimals.
- Press Complete the square. The calculator identifies a, b and c, factors a out of the x-terms, and adds and subtracts the square of half the linear coefficient.
- Read the vertex form and the vertex. For an equation, continue through the square-root step to the exact solutions.
Formulas
Perfect square
General vertex form
Vertex
Worked example: 2x² − 8x + 3
The example completes the square for . Since , the engine first factors 2 out of the -terms: . Half of is and its square is 4.
Adding and subtracting 4 inside the bracket gives , so the vertex form is and the vertex is .
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Rewrite the quadratic in vertex form by completing the square.
Step-by-step solution
Identify a, b and c
a = 2, b = -8, c = 3
Factor a = 2 out of the x-terms
Take half of the linear coefficient and square it
Half of -4 is -2; its square is 4.
Add and subtract that square inside the bracket
Adding 4 creates a perfect square trinomial; subtracting it keeps the value unchanged (the subtracted part is multiplied by a = 2 when it leaves the bracket).
Write the perfect square and combine constants
Read the vertex
In a(x − h)² + k the vertex is (h, k) = (2, -5); the axis of symmetry is x = 2. Since a > 0 the parabola opens upward and k is the minimum value.
Formulas used
Completing the square
Vertex
Vertex form: 2(x - 2)^2 - 5. Vertex (2, -5).
Verification
- Expanding 2(x - 2)^2 - 5 gives back 2x^2 - 8x + 3.
Detailed explanation
Why half the coefficient, squared?
Expanding gives . Comparing with , the middle terms match when , so , and the missing constant is . Geometrically, is a square of side plus two rectangles of size ; the small corner square of area is what completes the big square.
When the leading coefficient is not 1
Factor out of the and terms only, leaving the constant outside. Complete the square inside the bracket, then multiply the subtracted square by when moving it out. Forgetting that multiplication is the most frequent error: in the example, the inside the bracket becomes outside.
If is negative, the parabola opens downwards and the vertex is a maximum. The calculator factors out the negative coefficient the same way, so signs inside the bracket flip.
Solving equations by completing the square
For , completing the square gives . Taking square roots of both sides, with both signs, gives , so . Doing the same steps with letters instead of numbers produces the quadratic formula.
When the right-hand side is negative, as in from , there is no real solution. The calculator reports that, and also states the complex pair that you would get by allowing .
Reading the graph from vertex form
Vertex form describes the parabola as a transformation of . The value shifts the graph right (or left when is negative), shifts it up or down, and stretches it vertically and flips it when negative. The axis of symmetry is the vertical line , so points at equal distances on either side of have equal heights.
This makes sketching quick. For , plot the vertex , then step one unit either side: the height rises by , giving and . The range follows immediately as , which is why vertex form is the natural starting point for domain and range questions.
Common mistakes
- Adding without subtracting it again, which changes the expression.
- Squaring instead of .
- Forgetting to multiply the subtracted square by when .
- Taking only the positive square root when solving an equation.
- Reading the vertex of as ; the vertex is at .
Tips
- Write explicitly: , so .
- Check vertex form by expanding it back to standard form.
- Use fractions rather than decimals when is odd; half of 5 is .
- Compare your vertex with as a quick check.
Frequently asked questions
What is vertex form?
A quadratic written as a times (x minus h) squared plus k. The point (h, k) is the vertex of the parabola and a controls its direction and width.
How do I complete the square when a is not 1?
Factor a out of the x squared and x terms, complete the square inside the bracket, then multiply the subtracted constant by a as you move it outside.
Is completing the square better than the quadratic formula?
Both give the same roots. Completing the square also gives the vertex form, which is useful for graphing, and it is the method used to derive the formula itself.
What if the coefficient of x is odd?
Work with fractions. For x squared plus 5x, add and subtract 25/4 to get (x plus 5/2) squared minus 25/4.
Can completing the square give complex solutions?
Yes. If the square ends up equal to a negative number, there are no real solutions. The calculator says so and also lists the complex conjugate pair in a plus or minus bi form.
How is completing the square used for circles?
Completing the square separately in x and y turns an equation such as x squared plus y squared minus 4x plus 6y equals 3 into the standard form of a circle, revealing its centre and radius.
Find the vertex form
Enter your quadratic above to complete the square and see the vertex and solutions step by step.