Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Algebra Calculators - Equation Solvers
  4. /Completing the Square Calculator

Completing the Square Calculator

Calculator

Results

Valid quadratic flag

1

Vertex x

-0

Vertex y

0

Opening direction

1

Minimum/maximum value

0

Axis of symmetry x

-0

Discriminant

0

Real root count

1

Root 1

0

Root 2

-0

Completed square shift

0

Completed square constant

0

Results

Valid quadratic flag

1

Vertex x

-0

Vertex y

0

Opening direction

1

Minimum/maximum value

0

Axis of symmetry x

-0

Discriminant

0

Real root count

1

Root 1

0

Root 2

-0

Completed square shift

0

Completed square constant

0

The Completing the Square Calculator transforms any quadratic expression ax² + bx + c into its equivalent vertex form a(x − h)² + k. This powerful algebraic technique reveals the vertex of the parabola, its axis of symmetry, and the extreme value of the function—all in one elegant rewrite.

Completing the square is one of the most important algebraic techniques taught in secondary mathematics. It serves as the foundation for deriving the quadratic formula, understanding conic sections, and performing integral transforms in calculus. By rewriting a quadratic in vertex form, you gain immediate geometric insight: the vertex (h, k) tells you exactly where the parabola reaches its maximum or minimum, while the coefficient a determines whether it opens upward or downward and how “wide” or “narrow” it is.

The technique works by manipulating the expression $$ax^2 + bx + c$$ into the form $$a(x - h)^2 + k$$. The key insight is that \((x - h)^2 = x^2 - 2hx + h^2\), so you choose \(h\) to match the linear coefficient and then adjust the constant term accordingly. Specifically, $$h = -\frac{b}{2a}$$ and $$k = c - \frac{b^2}{4a}$$.

In practical applications, completing the square appears in many contexts beyond solving equations. In optimization, converting an objective function to vertex form immediately reveals its optimum. In statistics, completing the square is used to derive the normal distribution’s probability density function. In physics, it simplifies energy expressions in harmonic oscillator problems. In computer graphics, it converts general conic equations to standard forms for rendering.

This calculator also provides the roots of the equation ax² + bx + c = 0 when they exist as real numbers, since the vertex form makes the solution transparent: setting \(a(x - h)^2 + k = 0\) gives \(x = h \pm \sqrt{-k/a}\), which only has real solutions when \(-k/a \geq 0\). This is equivalent to the discriminant \(\Delta = b^2 - 4ac \geq 0\).

For students, seeing the step-by-step transformation from standard form to vertex form builds deep algebraic fluency. For professionals, the calculator provides instant conversion that would otherwise require careful arithmetic—particularly useful when working with messy decimal coefficients from real-world data fitting or regression analysis.

Understanding completing the square also lays the groundwork for more advanced techniques: completing the square in multiple variables is essential for classifying quadratic forms, diagonalizing symmetric matrices, and analyzing multivariable optimization problems in higher mathematics and machine learning.

Visual Analysis

How It Works

Given $$ax^2 + bx + c$$, the goal is to express it as $$a(x - h)^2 + k$$.

Step 1: Factor out \(a\) from the first two terms:

$$a\left(x^2 + \frac{b}{a}x\right) + c$$

Step 2: Take half the coefficient of \(x\) inside the parentheses, then square it:

$$\left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}$$

Step 3: Add and subtract this value inside the parentheses:

$$a\left(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} - \frac{b^2}{4a^2}\right) + c$$

Step 4: Rewrite as a perfect square plus a constant:

$$a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c$$

Therefore: $$h = -\frac{b}{2a}, \quad k = c - \frac{b^2}{4a}$$

The vertex form \(a(x - h)^2 + k\) immediately reveals the vertex at \((h, k)\).

Understanding Your Results

The output h is the x-coordinate of the vertex (axis of symmetry), and k is the y-coordinate (the minimum if a > 0, or the maximum if a < 0). Together they define the vertex form: a(x − h)² + k. If the discriminant is non-negative, x&sub1; and x&sub2; are the roots where the parabola crosses the x-axis.

Worked Examples

Standard example: x² + 6x + 5

Inputs

a1
b6
c5

Results

h-3
k-4
vertex form a1
discriminant16
x1-1
x2-5

x² + 6x + 5 = (x + 3)² − 4 = (x − (−3))² + (−4). Vertex at (−3, −4). Roots: x = −1 and x = −5.

Leading coefficient ≠ 1: 2x² − 12x + 22

Inputs

a2
b-12
c22

Results

h3
k4
vertex form a2
discriminant-32
x1NaN
x2NaN

2x² − 12x + 22 = 2(x − 3)² + 4. Vertex at (3, 4). Discriminant < 0, so no real roots—the parabola sits entirely above the x-axis.

Frequently Asked Questions

Completing the square is the algebraic process of rewriting a quadratic expression ax² + bx + c as a(x − h)² + k, where (h, k) is the vertex. The name comes from literally “completing” a partial square expression to make it a perfect square trinomial.

It reveals the vertex and axis of symmetry of a parabola, provides a method to derive the quadratic formula, helps solve quadratic equations, converts circles/ellipses to standard form, and simplifies integrals in calculus.

In a(x − h)² + k: a determines the direction and width (a > 0 opens up, a < 0 opens down), h is the x-coordinate of the vertex (axis of symmetry), and k is the y-coordinate (minimum or maximum value).

The process still works. Factor out a from the quadratic and linear terms first, complete the square inside the parentheses, then distribute a back. The result is a(x − h)² + k with h = −b/(2a) and k = c − b²/(4a).

Yes. Setting a(x − h)² + k = 0, you get (x − h)² = −k/a, so x = h ± √(−k/a). This only yields real solutions when −k/a ≥ 0, which is equivalent to the discriminant b² − 4ac ≥ 0.

The quadratic formula is derived by applying completing the square to the general equation ax² + bx + c = 0. The vertex form leads directly to x = −b/(2a) ± √(b² − 4ac)/(2a), which is exactly the quadratic formula.

Geometrically, converting to vertex form is equivalent to translating the standard parabola y = ax² so that its vertex moves from the origin to the point (h, k). The vertex form makes the translation explicit.

Yes, as long as a ≠ 0, every quadratic ax² + bx + c can be rewritten in vertex form a(x − h)² + k. The conversion is always possible and always unique.

A perfect square trinomial is an expression of the form (x + m)² = x² + 2mx + m². The key property is that the constant term equals the square of half the linear coefficient. Completing the square creates such a trinomial from any quadratic.

In integral calculus, completing the square transforms integrands like 1/(ax² + bx + c) into forms amenable to inverse trigonometric substitutions. It is also used in Laplace transforms and in deriving the Gaussian integral.

Sources & Methodology

Anton, H. et al. (2012). <em>Calculus: Early Transcendentals</em>, 10th Edition. Wiley. | Sullivan, M. (2019). <em>Algebra & Trigonometry</em>, 11th Edition. Pearson. | Weisstein, E.W. "Completing the Square." MathWorld. https://mathworld.wolfram.com/CompletingtheSquare.html
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Quadratic Formula Calculator

Algebra Calculators - Equation Solvers

Cubic Equation Calculator

Algebra Calculators - Equation Solvers

System of Equations Calculator

Algebra Calculators - Equation Solvers

Elimination Method Calculator

Algebra Calculators - Equation Solvers

Substitution Method Calculator

Algebra Calculators - Equation Solvers

Simultaneous Equations Calculator

Algebra Calculators - Equation Solvers