BUILDING & PLANNING · FIELD TOOL

Quadratic Formula Calculator

The quadratic formula solves ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2: x = 2 and x = 3. A negative discriminant means there are no real roots, only complex ones.

Inputs

Results update as you type.

ax² + bx + c = 0
Graph of the parabola and its rootsx = 2 and x = 3vertex (2.5, -0.25)myconstructioncalculator.com
Diagram updates as you type.

Results

Check the working before you order.

Roots
x = 2 and x = 3
Discriminant (b² − 4ac)1
Type of rootsTwo real roots
Vertex (turning point)(2.5, −0.25)
Axis of symmetryx = 2.5
y-intercept(0, 6)
Price This optional: add your own prices

Your prices are remembered on this device only.

Send Order WhatsApp, SMS or email to your supplier
Include
Working
  1. Equation: x² − 5x + 6 = 0
  2. x = (−b ± √(b² − 4ac)) ÷ 2a
  3. b² − 4ac = (−5)² − 4 × 1 × 6 = 1
  4. x = (5 ± √1) ÷ 2 = (5 ± 1) ÷ 2, so x = 2 and x = 3
  5. Vertex at x = −b ÷ 2a = 2.5, y = −0.25

Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.

Formula

ax² + bx + c = 0
x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant D = b² − 4ac
Vertex: x = −b ÷ 2a, y = c − b² ÷ 4a

Worked Example

A slab is 3 m longer than it is wide and has an area of 40 m². Find the width w:

  1. w × (w + 3) = 40, so w² + 3w − 40 = 0 (a = 1, b = 3, c = −40)
  2. D = 3² − 4 × 1 × (−40) = 169, √169 = 13
  3. w = (−3 ± 13) ÷ 2 = 5 or −8; a width cannot be negative, so the slab is 5 × 8 m

Examples

Equation Discriminant Roots
x² − 5x + 6 = 0 1 2 and 3
2x² + 3x − 2 = 0 25 −2 and 0.5
x² − 4x + 4 = 0 0 2 (repeated)
x² − 2 = 0 8 ±1.4142
x² + 2x + 5 = 0 −16 −1 ± 2i

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, for any equation ax² + bx + c = 0 where a is not 0. The ± gives the two roots.

What does the discriminant tell you?

b² − 4ac decides the roots. Positive: two different real roots. Zero: one repeated root. Negative: no real roots, but two complex roots.

What if a is 0?

Then there is no x² term and the equation is linear: bx + c = 0, so x = −c ÷ b. The quadratic formula does not apply.

Where are quadratic equations used in construction?

Whenever an area or a curve depends on an unknown length. A slab 3 m longer than it is wide with an area of 40 m² gives w² + 3w − 40 = 0, so w = 5 m and the slab is 5 × 8 m.

What is the vertex of a parabola?

Its turning point, at x = −b ÷ 2a. For x² − 5x + 6 it is at (2.5, −0.25), the lowest point of the curve.

Embed This Calculator on Your Website

Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.

Preview
All Building & Planning Calculators