Logo

MonoCalc

/

Completing the Square

Math

2x² − 8x + 5

Quadratic Coefficients

Integer, decimal, or fraction
Integer, decimal, or fraction
Integer, decimal, or fraction

Vertex Form

2(x − 2)² − 3

Two distinct real roots

Parabola Properties

Vertex (h, k)

(2, -3)

Axis of Symmetry

x = 2

Minimum

-3

Opens

↑ Upward

y-Intercept

5

Discriminant (Δ)

24

(b/2a)²

4

Roots of 2x² − 8x + 5 = 0

x₁

3.2247

x\u2082

0.7753

About This Tool

🔲 Completing the Square Calculator – Vertex Form, Roots & Step-by-Step

Completing the squareis one of algebra's most versatile techniques. It transforms any quadratic expression ax² + bx + c into the elegant vertex form a(x − h)² + k, unlocking the geometry of the parabola — vertex, axis of symmetry, minimum or maximum value — all at a glance. This calculator performs the full derivation for you, shows every algebraic step, solves the equation, and handles integer, decimal, and fractional coefficients.

📐 What Is Completing the Square?

A quadratic expression in standard form ax² + bx + c hides the shape of its parabola inside the coefficients. The completing-the-square technique rearranges the expression around a perfect-square trinomial — a trinomial of the form (x + d)² — revealing the turning point directly.

The core idea: adding and immediately subtracting the same quantity (b/2a)² inside the expression leaves its value unchanged, yet creates the perfect square needed to factor cleanly.

📊 The Completing-the-Square Formula

General algorithm for ax² + bx + c:

  1. If a ≠ 1, factor a from the quadratic terms: a(x² + (b/a)x) + c
  2. Add and subtract (b/2a)² inside the parentheses to form a perfect-square trinomial.
  3. Rewrite the trinomial as a square: (x + b/2a)²
  4. Simplify the remaining constant: k = c − b²/(4a)
  5. Result: a(x − h)² + k where h = −b/(2a)

📋 Key Outputs Explained

OutputFormulaMeaning
Vertex forma(x − h)² + kCompleted-square representation
Vertex (h, k)h = −b/(2a), k = c − b²/(4a)Turning point of the parabola
Axis of symmetryx = hVertical line of symmetry
Discriminant Δb² − 4acDetermines root type
Rootsx = h ± √(−k/a)Solutions of ax² + bx + c = 0

🧮 Worked Example: 2x² − 8x + 5

Start with a = 2, b = −8, c = 5.

  1. Factor out 2 from the quadratic terms: 2(x² − 4x) + 5
  2. Compute (b/2a)² = (−8/4)² = (−2)² = 4. Add and subtract 4 inside: 2(x² − 4x + 4 − 4) + 5
  3. Separate: 2(x² − 4x + 4) − 2×4 + 5 = 2(x − 2)² − 8 + 5
  4. Final vertex form: 2(x − 2)² − 3
  5. Vertex (2, −3), axis x = 2, minimum value −3.

📌 When to Use Completing the Square

Completing the square shines in a variety of academic and real-world contexts:

  • Graphing parabolas — vertex form gives you everything needed to sketch the curve: location, orientation, and width.
  • Solving quadratic equations — isolating the squared term and taking square roots avoids factoring when roots are irrational.
  • Deriving the quadratic formula — applying the technique to ax² + bx + c = 0 in general produces the familiar x = (−b ± √Δ) / (2a) formula.
  • Optimization problems — the vertex immediately gives the minimum cost, maximum revenue, or peak height in applied problems.
  • Conic sections — converting circle and ellipse equations to standard form uses the same technique on x² and y² terms simultaneously.

🔢 Fraction and Decimal Coefficients

The calculator accepts fractional coefficients such as 3/2 or −5/4 alongside integers and decimals. The computation carries exact rational arithmetic throughout — (b/2a)² is kept as a fraction where possible — so the displayed steps match what you would write on paper. Decimal approximations appear only in the final numeric outputs and only to the precision you select.

📈 Understanding the Discriminant

The discriminant Δ = b² − 4ac classifies the roots without computing them:

  • Δ > 0 — two distinct real roots; the parabola crosses the x-axis twice.
  • Δ = 0 — one repeated real root; the parabola is tangent to the x-axis.
  • Δ < 0 — no real roots; the parabola sits entirely above or below the x-axis. Roots are complex conjugates.

In vertex-form terms, the vertex y-coordinate k tells the same story: if a > 0 and k > 0, the parabola opens upward and lies entirely above the x-axis (no real roots); if k < 0, it crosses twice.

🎓 Educational Value

Enabling the step-by-step mode displays the full chain of algebraic transformations, from standard form through factoring, adding and subtracting the completing term, separating the perfect square, simplifying the constant, and arriving at vertex form. This mirrors the derivation taught in algebra courses and helps students verify hand-written work, understand where each term originates, and build confidence with the method before exams.

Frequently Asked Questions

Is the Completing the Square free?

Yes, Completing the Square is totally free :)

Can I use the Completing the Square offline?

Yes, you can install the webapp as PWA.

Is it safe to use Completing the Square?

Yes, any data related to Completing the Square only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What does completing the square mean?

Completing the square is an algebraic technique that rewrites a quadratic expression ax² + bx + c into the equivalent form a(x − h)² + k, called vertex form. The process 'completes' a perfect-square trinomial inside the expression by adding and then subtracting a strategically chosen constant.

How does this calculator work?

Enter the three coefficients a, b, and c. The calculator factors out a (when a ≠ 1), adds and subtracts (b/2a)² inside the parentheses to form a perfect square, simplifies the remaining constant, and displays the final vertex form a(x − h)² + k along with every intermediate algebraic step.

What is vertex form and why is it useful?

Vertex form a(x − h)² + k reveals the vertex (h, k) of the parabola directly. It makes graphing straightforward, immediately shows the minimum or maximum value (k), the axis of symmetry (x = h), and the direction the parabola opens — all without additional calculation.

Can I use fractions or decimals as coefficients?

Yes. Each coefficient field accepts integers (e.g. 3), decimals (e.g. 1.5), and fractions in the form numerator/denominator (e.g. 3/2 or -5/4). The calculator parses the fraction and performs exact arithmetic throughout the derivation.

What happens when the discriminant is negative?

A negative discriminant (b² − 4ac < 0) means the quadratic has no real roots — the parabola does not cross the x-axis. The vertex form and parabola properties are still fully calculated and displayed. Root values are shown in complex form a ± bi for reference.

How is completing the square related to the quadratic formula?

The quadratic formula x = (−b ± √(b²−4ac)) / (2a) is actually derived by completing the square on the general quadratic ax² + bx + c = 0. Following the step-by-step derivation in this calculator shows exactly how the formula emerges from the square-completion process.