Math Last updated: July 2026

Completing the Square Calculator

Free online **completing the square calculator** — convert any **quadratic equation to vertex form** with step-by-step solutions. Our **complete the square calculator** helps you find the **vertex, axis of symmetry, and roots** of any parabola. Whether you need to **complete the square** for homework or understand the **quadratic to vertex form** conversion, this tool provides accurate results with detailed explanations.

How to Use the Completing the Square Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Finance Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

Given ax² + bx + c, completing the square gives a(x + b/(2a))² + (c - b²/(4a)). Vertex = (-b/(2a), c - b²/(4a)).
Variable Glossary
a Coefficient of the quadratic term (x²)
b Coefficient of the linear term (x)
c Constant term
h Vertex x-coordinate: -b/(2a)
k Vertex y-coordinate: c - b²/(4a)

Step-by-Step Worked Calculation

Scenario: Completing the Square for x² + 6x + 5

Convert x² + 6x + 5 to vertex form.

1

Step 1: Identify coefficients: a = 1, b = 6, c = 5.

2

Step 2: Compute h = -b/(2a) = -6/(2×1) = -3.

3

Step 3: Compute k = c - b²/(4a) = 5 - 36/4 = 5 - 9 = -4.

4

Step 4: Vertex form: (x + 3)² - 4. Vertex: (-3, -4).

How to Use the Completing the Square Calculator

  1. 1. Enter the coefficient a (quadratic term) for ax² + bx + c.
  2. 2. Enter the coefficient b (linear term).
  3. 3. Enter the constant c.
  4. 4. Review the vertex form, vertex coordinates, axis of symmetry, and roots with step-by-step breakdown.

What Is a Completing the Square Calculator?

Completing the Square Calculator is a mathematical computation tool that helps you complete the square for any quadratic equation with our free online calculator. Convert to vertex form, find the vertex, and solve with step-by-step results. No signup required!. It applies established mathematical principles to deliver accurate results, often showing the underlying formula and step-by-step working so you can understand the computation process.

Why This Calculation Matters

Mathematical calculations form the foundation of science, engineering, finance, and everyday problem-solving. Completing the Square Calculator helps you work through calculations accurately and efficiently, reducing the risk of manual arithmetic errors. Whether you are a student learning concepts, a professional verifying work, or anyone needing quick and reliable math results, this tool ensures precision and saves time.

Historical Background

Mathematics has evolved over thousands of years, from ancient Babylonian clay tablets and Egyptian papyri to Greek formal proofs by Euclid and Archimedes. The development of algebra by Persian mathematician al-Khwarizmi in the 9th century and the invention of calculus by Newton and Leibniz in the 17th century laid the groundwork for modern computation. Completing the Square Calculator continues this tradition by making mathematical operations accessible through digital technology.

Frequently Asked Questions

Complete indexable directory of answers (103 questions)

What is completing the square?

Completing the square is a method for solving quadratic equations by rewriting them in vertex form. It transforms ax^2 + bx + c into a(x-h)^2 + k, where (h,k) is the vertex of the parabola. The calculator performs this transformation step by step.

Why is completing the square useful?

Completing the square is useful for finding the vertex of a parabola, solving quadratic equations, deriving the quadratic formula, integrating rational functions, and converting circle equations to standard form. The calculator shows all these applications.

What is the completing the square algorithm?

The algorithm: 1) Divide all terms by a (if a is not 1). 2) Move the constant to the other side. 3) Take half of the x coefficient, square it, add to both sides. 4) Factor the left side as a perfect square. 5) Solve for x. The calculator shows each step.

How do I convert standard form to vertex form?

To convert ax^2 + bx + c to vertex form: 1) Factor out a from the first two terms. 2) Take half of b/a, square it. 3) Add and subtract this inside the parentheses. 4) Factor the perfect square trinomial. The calculator performs this conversion.

How does the completing the square calculator work?

Enter the coefficients a, b, and c of the quadratic equation. The calculator shows: the original equation, each step of completing the square, the vertex form, the vertex coordinates, and the solutions. It handles fractions, decimals, and complex roots.

What if the coefficient of x squared is 1?

When a = 1, the process is simpler: 1) Move c to the other side. 2) Take half of b, square it, add to both sides. 3) Factor the left side. 4) Solve. The calculator shows this simplified process.

What if the coefficient of x squared is not 1?

When a is not 1, first divide all terms by a to make the x^2 coefficient 1. Then proceed as above. Finally, multiply through by a if needed. The calculator handles non-unit leading coefficients.

How do I complete the square with fractions?

The process works the same with fractions. For example, x^2 + (3/2)x = 5: take half of 3/2 (which is 3/4), square it (9/16), add to both sides. The calculator handles fractional coefficients.

How do I complete the square with decimals?

The process works the same with decimals. For example, x^2 + 1.4x = 3: take half of 1.4 (0.7), square it (0.49), add to both sides. The calculator handles decimal coefficients.

How do I find the vertex using completing the square?

After completing the square to get a(x-h)^2 + k, the vertex is at (h,k). For example, x^2 - 6x + 5 becomes (x-3)^2 - 4, so vertex is (3, -4). The calculator identifies the vertex.

How do I solve a quadratic equation by completing the square?

Set the equation equal to zero, complete the square, then take square roots of both sides. For example, x^2 + 6x + 5 = 0 becomes (x+3)^2 = 4, so x+3 = plus or minus 2, giving x = -1 or x = -5. The calculator solves step by step.

What is the difference between completing the square and the quadratic formula?

Both solve quadratic equations. Completing the square is a process that derives the quadratic formula. The quadratic formula is a direct calculation. Completing the square also reveals the vertex. The calculator shows both methods.

What is the difference between completing the square and factoring?

Factoring finds two numbers that multiply to ac and add to b. Completing the square works for all quadratics, even those that don't factor neatly. Factoring is faster when possible, but completing the square is more general.

How do I use completing the square for maximum/minimum?

The vertex form a(x-h)^2 + k reveals the vertex. If a > 0, the parabola opens up and k is the minimum. If a < 0, it opens down and k is the maximum. The calculator identifies max/min values.

What is the relationship between completing the square and the discriminant?

The discriminant b^2 - 4ac appears in completing the square. After completing the square, the constant term involves (b^2 - 4ac)/4a. The discriminant determines whether roots are real, repeated, or complex.

What are common mistakes in completing the square?

Common mistakes: forgetting to divide by a first, errors in squaring half the coefficient, forgetting to add to both sides, errors in factoring the perfect square. The calculator shows correct steps to avoid these errors.

How do I complete the square with positive coefficients?

For x^2 + 6x + 5: half of 6 is 3, square is 9. Add 9 to both sides: x^2 + 6x + 9 = 4. Factor: (x+3)^2 = 4. Solve: x = -3 plus or minus 2. The calculator shows this process.

How do I complete the square with negative coefficients?

For x^2 - 6x + 5: half of -6 is -3, square is 9. Add 9 to both sides: x^2 - 6x + 9 = 4. Factor: (x-3)^2 = 4. Solve: x = 3 plus or minus 2. The calculator handles negative coefficients.

How do I complete the square with complex roots?

When the discriminant is negative, completing the square yields complex roots. For example, x^2 + 4 = 0 becomes x^2 = -4, so x = plus or minus 2i. The calculator handles complex roots.

How do I use completing the square in projectile motion?

In projectile motion, height h(t) = -16t^2 + vt + s. Completing the square finds the maximum height and time to reach it. The calculator applies completing the square to physics problems.

How do I use completing the square in optimization?

In optimization, completing the square finds the maximum or minimum of a quadratic function. For example, profit P(x) = -2x^2 + 12x - 10: complete the square to find the maximum profit. The calculator optimizes quadratic functions.

How do I use completing the square in calculus?

In calculus, completing the square simplifies integration. For example, integral of 1/(x^2 + 4x + 5) dx: complete the square to get 1/((x+2)^2 + 1), which integrates to arctan(x+2) + C. The calculator helps with calculus applications.

How do I use completing the square for circle equations?

Circle equation x^2 + y^2 + Dx + Ey + F = 0 can be rewritten by completing the square for both x and y. This gives (x-h)^2 + (y-k)^2 = r^2, the standard form. The calculator converts circle equations.

How do I use completing the square in linear algebra?

In linear algebra, completing the square appears in quadratic forms. For example, x^2 + 2xy + y^2 = (x+y)^2. The calculator helps with quadratic form simplification.

How do I interpret completing the square geometrically?

Geometrically, completing the square represents finding a square with the same area as a rectangle. For example, x^2 + 6x represents a square plus a rectangle. Adding 9 completes it to (x+3)^2. The calculator shows this geometric interpretation.

What is the history of completing the square?

Completing the square dates to ancient Babylon (2000 BCE) and was formalized by Islamic mathematicians in the 9th century. Al-Khwarizmi used geometric methods to solve quadratics. The calculator automates this ancient technique.

How do I complete the square when b = 0?

When b = 0, the equation is already in a form close to vertex form. For example, x^2 + 5 = 0 becomes x^2 = -5, so x = plus or minus i*sqrt(5). The calculator handles this case.

How do I complete the square when a = 1 vs a not equal to 1?

When a = 1, you work directly with the x coefficient. When a is not 1, first divide all terms by a, then complete the square, then multiply back if needed. The calculator handles both cases.

What is vertex form y = a(x-h)^2 + k?

Vertex form shows the parabola's vertex at (h,k). The value a determines the opening direction and width. For a > 0, parabola opens up; for a < 0, opens down. The calculator converts to vertex form.

How do I derive the quadratic formula by completing the square?

Start with ax^2 + bx + c = 0. Divide by a, move c/a, complete the square: (x + b/(2a))^2 = (b^2 - 4ac)/(4a^2). Take square roots: x = (-b plus or minus sqrt(b^2-4ac))/(2a). The calculator shows this derivation.

When should I use completing the square vs other methods?

Use completing the square when you need the vertex, when factoring is difficult, or when deriving the formula. Use factoring when it's easy. Use the quadratic formula for quick solutions. The calculator helps choose the best method.

How do I complete the square with a negative leading coefficient?

For -x^2 + 6x - 5 = 0: multiply by -1 to get x^2 - 6x + 5 = 0, then complete the square. Or factor out -1: -(x^2 - 6x) = -5, then complete the square inside. The calculator handles negative leading coefficients.

How do I complete the square with a = -1?

For -x^2 + bx + c = 0: multiply by -1 to get x^2 - bx - c = 0, then complete the square. The calculator handles a = -1.

How do I complete the square with large coefficients?

The process is the same regardless of coefficient size. For example, 100x^2 + 200x + 50: divide by 100, complete the square, then multiply back. The calculator handles large coefficients.

How do I complete the square with very small coefficients?

The process is the same. For example, 0.01x^2 + 0.02x + 0.05: multiply by 100 to clear decimals, complete the square, then adjust. The calculator handles small coefficients.

How do I complete the square with irrational coefficients?

The process works with irrational numbers. For example, x^2 + sqrt(2)x = 1: half of sqrt(2) is sqrt(2)/2, square is 1/2. Add 1/2 to both sides. The calculator handles irrational coefficients.

How do I complete the square with complex coefficients?

The process extends to complex numbers. For example, x^2 + 2ix = 3: half of 2i is i, square is -1. Add -1 to both sides. The calculator handles complex coefficients.

How do I complete the square for higher degree polynomials?

Completing the square applies only to quadratic (degree 2) polynomials. For higher degrees, other methods are needed. The calculator focuses on quadratics.

How do I complete the square for systems of equations?

Completing the square can be used in systems involving quadratic equations. For example, solving x^2 + y^2 = 25 and x + y = 7 by completing the square. The calculator helps with systems involving quadratics.

How do I complete the square for inequalities?

To solve ax^2 + bx + c > 0, complete the square to find the roots, then determine the sign intervals. The calculator helps solve quadratic inequalities.

How do I complete the square for absolute value equations?

Completing the square doesn't directly apply to absolute value equations. However, if the equation involves both absolute value and quadratic terms, completing the square may help simplify. The calculator focuses on pure quadratic equations.

How do I complete the square for rational equations?

For rational equations that reduce to quadratics, complete the square after clearing denominators. For example, 1/x + x = 3 becomes x^2 - 3x + 1 = 0. The calculator helps with rational equations that become quadratic.

How do I complete the square for radical equations?

For radical equations that reduce to quadratics, isolate the radical, square both sides, then complete the square. The calculator helps with radical equations.

How do I complete the square for exponential equations?

Completing the square doesn't directly apply to exponential equations. However, some exponential equations can be transformed into quadratic form through substitution. The calculator focuses on quadratic equations.

How do I complete the square for logarithmic equations?

Completing the square doesn't directly apply to logarithmic equations. However, some logarithmic equations can be transformed into quadratic form through substitution. The calculator focuses on quadratic equations.

How do I complete the square for trigonometric equations?

Some trigonometric equations can be transformed into quadratic form. For example, 2sin^2(x) + 3sin(x) - 2 = 0 can be solved by completing the square after substituting u = sin(x). The calculator helps with these trig-quadratic equations.

How do I complete the square for piecewise functions?

Completing the square applies to each quadratic piece of a piecewise function separately. The calculator helps complete the square for individual quadratic pieces.

How do I complete the square for parametric equations?

For parametric equations involving quadratics, completing the square can help eliminate the parameter. The calculator helps with parametric equation simplification.

How do I complete the square for polar equations?

For polar equations involving r^2 and r terms, completing the square can help convert to rectangular form. The calculator helps with polar equation conversion.

How do I complete the square for vector equations?

Completing the square can be applied to quadratic forms in vector equations. The calculator helps with vector equation simplification.

How do I complete the square for matrix equations?

Completing the square extends to quadratic forms in matrix equations. For example, x^T A x + b^T x + c can be completed to find the minimum. The calculator helps with matrix equation completion.

How do I complete the square for multivariable quadratics?

For multivariable quadratics, complete the square for each variable separately. For example, x^2 + y^2 + 2x - 4y + 1 = 0 becomes (x+1)^2 + (y-2)^2 = 4. The calculator handles multivariable completion.

How do I complete the square for conic sections?

Completing the square converts general conic equations to standard form. For example, x^2 + 4x + y^2 - 6y = 12 becomes (x+2)^2 + (y-3)^2 = 25 (a circle). The calculator converts conic equations.

How do I complete the square for ellipses?

For ellipse equation x^2/a^2 + y^2/b^2 = 1, completing the square helps when the equation is in general form. The calculator converts general ellipse equations to standard form.

How do I complete the square for hyperbolas?

For hyperbola equation x^2/a^2 - y^2/b^2 = 1, completing the square helps when the equation is in general form. The calculator converts general hyperbola equations to standard form.

How do I complete the square for parabolas?

For parabola equation y = ax^2 + bx + c, completing the square gives vertex form y = a(x-h)^2 + k. The calculator converts parabola equations to vertex form.

How do I complete the square for 3D surfaces?

For 3D surfaces like spheres, ellipsoids, and hyperboloids, completing the square for each variable converts general equations to standard form. The calculator handles 3D surface equations.

How do I complete the square for quadric surfaces?

Quadric surfaces (ellipsoids, hyperboloids, paraboloids) can be simplified by completing the square for each variable. The calculator converts general quadric surface equations to standard form.

How do I complete the square for quadratic forms?

A quadratic form x^T A x can be diagonalized by completing the square (or using eigenvalues). This reveals the principal axes. The calculator helps with quadratic form diagonalization.

How do I complete the square for optimization with constraints?

In constrained optimization, completing the square can help find critical points. For example, minimizing x^2 + y^2 subject to x + y = 1. The calculator helps with constrained optimization.

How do I complete the square for least squares problems?

In least squares, completing the square finds the minimum of the sum of squared residuals. For example, minimizing (y - mx - b)^2 over data points. The calculator helps with least squares fitting.

How do I complete the square for regression analysis?

In regression, completing the square derives the normal equations for least squares fitting. The calculator helps with regression analysis.

How do I complete the square for time series analysis?

In time series, completing the square can help with quadratic trend estimation. The calculator helps with time series analysis.

How do I complete the square for signal processing?

In signal processing, completing the square appears in the analysis of quadratic phase signals. The calculator helps with signal processing applications.

How do I complete the square for control theory?

In control theory, completing the square appears in the analysis of quadratic cost functions. The calculator helps with control theory applications.

How do I complete the square for machine learning?

In machine learning, completing the square appears in the optimization of quadratic loss functions. The calculator helps with machine learning applications.

How do I complete the square for neural networks?

In neural networks, completing the square can help analyze quadratic activation functions. The calculator helps with neural network analysis.

How do I complete the square for deep learning?

In deep learning, completing the square appears in the analysis of quadratic penalties and regularization. The calculator helps with deep learning applications.

How do I complete the square for natural language processing?

In NLP, completing the square can help analyze quadratic models of word co-occurrence. The calculator helps with NLP applications.

How do I complete the square for computer vision?

In computer vision, completing the square appears in the analysis of quadratic distortion models. The calculator helps with computer vision applications.

How do I complete the square for robotics?

In robotics, completing the square appears in the optimization of trajectory planning. The calculator helps with robotics applications.

How do I complete the square for aerospace engineering?

In aerospace engineering, completing the square appears in the analysis of orbital mechanics and trajectory optimization. The calculator helps with aerospace applications.

How do I complete the square for civil engineering?

In civil engineering, completing the square appears in structural analysis and design optimization. The calculator helps with civil engineering applications.

How do I complete the square for mechanical engineering?

In mechanical engineering, completing the square appears in stress analysis and vibration problems. The calculator helps with mechanical engineering applications.

How do I complete the square for electrical engineering?

In electrical engineering, completing the square appears in circuit analysis and signal processing. The calculator helps with electrical engineering applications.

How do I complete the square for chemical engineering?

In chemical engineering, completing the square appears in reaction kinetics and process optimization. The calculator helps with chemical engineering applications.

How do I complete the square for bioengineering?

In bioengineering, completing the square appears in modeling biological systems and biomechanics. The calculator helps with bioengineering applications.

How do I complete the square for environmental engineering?

In environmental engineering, completing the square appears in modeling pollutant dispersion and treatment processes. The calculator helps with environmental engineering applications.

How do I complete the square for materials science?

In materials science, completing the square appears in analyzing crystal structures and material properties. The calculator helps with materials science applications.

How do I complete the square for nanotechnology?

In nanotechnology, completing the square appears in modeling nanoparticle behavior and nanoscale systems. The calculator helps with nanotechnology applications.

How do I complete the square for biotechnology?

In biotechnology, completing the square appears in modeling enzyme kinetics and生物反应. The calculator helps with biotechnology applications.

How do I complete the square for pharmaceutical sciences?

In pharmaceutical sciences, completing the square appears in drug formulation and pharmacokinetic modeling. The calculator helps with pharmaceutical applications.

How do I complete the square for medical physics?

In medical physics, completing the square appears in radiation therapy planning and imaging. The calculator helps with medical physics applications.

How do I complete the square for geophysics?

In geophysics, completing the square appears in seismic data analysis and地球物理 modeling. The calculator helps with geophysics applications.

How do I complete the square for astrophysics?

In astrophysics, completing the square appears in orbital mechanics and stellar structure models. The calculator helps with astrophysics applications.

How do I complete the square for cosmology?

In cosmology, completing the square appears in models of宇宙 expansion and dark energy. The calculator helps with cosmology applications.

How do I complete the square for quantum mechanics?

In quantum mechanics, completing the square appears in solving the Schrodinger equation for harmonic oscillators. The calculator helps with quantum mechanics applications.

How do I complete the square for quantum field theory?

In quantum field theory, completing the square appears in path integral formulations and perturbation theory. The calculator helps with quantum field theory applications.

How do I complete the square for string theory?

In string theory, completing the square appears in worldsheet calculations and compactification. The calculator helps with string theory applications.

How do I complete the square for general relativity?

In general relativity, completing the square appears in solving Einstein field equations for specific metrics. The calculator helps with general relativity applications.

How do I complete the square for special relativity?

In special relativity, completing the square appears in analyzing Lorentz transformations and relativistic kinematics. The calculator helps with special relativity applications.

How do I complete the square for electrodynamics?

In electrodynamics, completing the square appears in solving Maxwell's equations and analyzing electromagnetic waves. The calculator helps with electrodynamics applications.

How do I complete the square for thermodynamics?

In thermodynamics, completing the square appears in analyzing free energy functions and phase transitions. The calculator helps with thermodynamics applications.

How do I complete the square for statistical mechanics?

In statistical mechanics, completing the square appears in partition function calculations and ensemble theory. The calculator helps with statistical mechanics applications.

How do I complete the square for fluid dynamics?

In fluid dynamics, completing the square appears in solving Navier-Stokes equations for specific flows. The calculator helps with fluid dynamics applications.

How do I complete the square for plasma physics?

In plasma physics, completing the square appears in analyzing plasma equilibria and wave propagation. The calculator helps with plasma physics applications.

How do I complete the square for nuclear physics?

In nuclear physics, completing the square appears in nuclear shell models and decay calculations. The calculator helps with nuclear physics applications.

How do I complete the square for particle physics?

In particle physics, completing the square appears in scattering amplitude calculations and particle interactions. The calculator helps with particle physics applications.

How do I complete the square for condensed matter physics?

In condensed matter physics, completing the square appears in band theory and superconductivity models. The calculator helps with condensed matter applications.

How do I use the completing the square calculator effectively?

Enter the coefficients a, b, and c of your quadratic equation. The calculator shows: the original equation, each step of completing the square, the vertex form, the vertex coordinates, and the solutions. Use it for solving quadratics, finding vertices, deriving formulas, and any application requiring completing the square.

What mathematical formula does the Completing the Square Calculator use?

The Completing the Square Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Completing the Square Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Completing the Square Calculator accept?

The Completing the Square Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.