Completing the Square Calculator: Vertex Form, Vertex, Roots and Discriminant of a Quadratic

Vertex form and roots of a quadratic.

Calculated from standard textbook formulas, with every step shown. The formulas are fixed, so the working does not need checking: what matters is the numbers you type in. Use these calculators only if you are competent to choose the inputs (loads, material strength, dimensions, supports) and check your units and assumptions. For learning and checking your own working: design and sign-off are for a qualified engineer. Drafting Central does not store the numbers you type.

How this calculator works

Enter a, b and c from ax^2 + bx + c.

The calculator completes the square to give the vertex form.

It also gives the vertex, the discriminant and the roots.

Formulas used

  • ax^2 + bx + c = a(x - h)^2 + k
  • h = -\frac{b}{2a},\ k = c - \frac{b^2}{4a}
  • x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Worked example

With the default numbers in the calculator above:

  1. Vertex form: 2 (x - 3)^2 - 8
  2. Vertex x (h): 3
  3. Vertex y (k): -8
  4. Discriminant: 64
  5. Root 1: 5
  6. Root 2: 1
  7. y-intercept: 10

Change the numbers in the calculator to see the full working, every step, for your own case.

A second worked example

A different case, with these numbers: a (the number in front of x squared) 1; b (the number in front of x) 2; c (the constant) 5.

  1. Vertex form: 1 (x + 1)^2 + 4
  2. Vertex x (h): -1
  3. Vertex y (k): 4
  4. Discriminant: -16
  5. Root 1 (complex): -1 + 2i
  6. Root 2 (complex): -1 - 2i
  7. y-intercept: 5

Common questions

How do I complete the square?

Factor a out of the x terms, add and subtract the square of half the x coefficient, then write the first three terms as a perfect square.

What does the discriminant tell me?

If it is positive there are two real roots, if zero one repeated root, and if negative two complex roots.

What is the vertex?

The highest or lowest point of the parabola. Its x coordinate is minus b over 2a.

Related calculators

Got a question about this? Ask an engineering question and get a plain-language answer with references.

Further reading: Any algebra text (completing the square, the quadratic formula).

Need a calculator we do not have?

Tell us what you would like to calculate. We read every request and build the most asked-for ones.

We store your request (and your email if you give it) to decide what to build. We do not store the numbers you type into calculators.

Embed this calculator on your own page

Copy this code into your page. The calculator runs inside the frame and links back to Drafting Central.

Need this drawn, designed or checked?

Drafting Central is a mechanical engineering and drafting business working with customers across Australia and around the world. A calculator gives you the numbers; we can turn them into drawings and designs.

Need help with a real project?

Talk to Drafting Central →

← All engineering calculators