ToolHuts

Practical tools for measured work

Quadratic and completing-square calculator

Find real or complex roots, vertex, discriminant and completed-square form with a graph.

Calculate the layout, check the diagram, then print the result for the shop or jobsite.

x: -2.5 .. 7.5y: -0.25 .. 24.75
Vertex x2.5
Vertex y-0.25
Discriminant1
Completed square1(x - (2.5))^2 + (-0.25)
First real root2
Second real root3

The graph scales its x and y axes independently; use the printed ranges rather than measuring angles on screen.

How it works

For ax²+bx+c, completing the square gives a(x−h)²+k, where h=−b/(2a) and k=c−b²/(4a). The discriminant b²−4ac determines two real roots, a repeated root or complex conjugate roots. For x²−5x+6, the roots are 2 and 3 and the vertex is (2.5, −0.25).

Current-input example

The result above uses these exact values. This snapshot is included when the page is printed so the output can be checked against the original measurements.

Coefficient a
1
Coefficient b
-5
Coefficient c
6
Graph half-width around vertex
5

Primary result: Vertex x: 2.5.

Before using the result

  • Check the selected mode, units and input values before using the result.
  • Read the assumptions and rounding rules; compare the worked example with your intended calculation.
  • A numerical result does not supply missing context or change the stated limitations.

Limitations

Coefficient a must be nonzero. Coefficients are bounded to magnitude 1e100 and results use floating-point arithmetic. Nearly repeated roots are sensitive to rounding. This tool solves entered coefficients; it does not infer a missing equation from a worksheet image.

Frequently asked questions

What should I verify before using this result?

Check the input values, units, dates and assumptions. Compare the method and its stated limits with the source relevant to your task.

Why might the finished result differ?

Results depend on the entered data and the model’s assumptions. Rounding, changing conditions or omitted factors can affect the comparison. Read the limitations before using the result.