Completing the Square Calculator (x² + bx = c) | Step-by-Step Solver


Completing the Square Calculator (x² + bx = c)

An interactive tool to solve quadratic equations by completing the square, with detailed step-by-step calculations.


This is the ‘b’ value from the equation x² + bx = c.


This is the ‘c’ value from the equation x² + bx = c.


What is Completing the Square?

Completing the square is a fundamental algebraic technique used to solve a quadratic equation. It transforms an equation in standard form (ax² + bx + c = 0) into a perfect square trinomial, which is an expression that can be factored as (x + d)². Our **completing the square calculator** focuses on the specific format x² + bx = c, making it easy to see the process in action.

This method is not just for finding roots; it’s also crucial for converting quadratic functions into vertex form, which helps in identifying the vertex of a parabola. It’s a powerful tool for anyone studying algebra, as it provides a clear, step-by-step process for solving equations that may not be easily factorable.

The Formula for Completing the Square

For an equation in the form x² + bx = c, the goal is to add a specific value to both sides to “complete the square” on the left side. The process is as follows:

  1. Start with the equation: x² + bx = c
  2. Take half of the coefficient of ‘x’ (which is ‘b’), and then square it. This gives you (b/2)².
  3. Add this value to both sides of the equation: x² + bx + (b/2)² = c + (b/2)².
  4. The left side is now a perfect square and can be factored: (x + b/2)² = c + (b/2)².
  5. Solve for x by taking the square root of both sides and isolating x: x = -b/2 ± √(c + (b/2)²).

This final equation is the core logic used by our **completing the square calculator**.

Variables Explained

Description of variables used in the formula. All values are unitless.
Variable Meaning Unit Typical Range
x The unknown variable we are solving for. Represents the roots of the equation. Unitless Any real number
b The coefficient of the linear term (the ‘x’ term). Unitless Any real number
c The constant term on the right side of the equation. Unitless Any real number

Practical Examples

Example 1: A simple case

Let’s solve the equation x² + 6x = 7 using this calculator.

  • Input ‘b’: 6
  • Input ‘c’: 7
  • Step 1: Calculate the term to add: (6/2)² = 3² = 9.
  • Step 2: Add 9 to both sides: x² + 6x + 9 = 7 + 9.
  • Step 3: Factor the left side and simplify the right: (x + 3)² = 16.
  • Step 4: Solve for x: x + 3 = ±√16 => x + 3 = ±4.
  • Results: x₁ = -3 + 4 = 1 and x₂ = -3 – 4 = -7.

Example 2: Negative and odd coefficients

Let’s use the **completing the square calculator** to solve x² - 5x = 14.

  • Input ‘b’: -5
  • Input ‘c’: 14
  • Step 1: Calculate the term to add: (-5/2)² = 2.5² = 6.25.
  • Step 2: Add 6.25 to both sides: x² – 5x + 6.25 = 14 + 6.25.
  • Step 3: Factor and simplify: (x – 2.5)² = 20.25.
  • Step 4: Solve for x: x – 2.5 = ±√20.25 => x – 2.5 = ±4.5.
  • Results: x₁ = 2.5 + 4.5 = 7 and x₂ = 2.5 – 4.5 = -2.

How to Use This Completing the Square Calculator

This tool is designed for ease of use. Follow these simple steps:

  1. Identify Coefficients: Look at your equation and identify the values for ‘b’ and ‘c’ in the x² + bx = c format.
  2. Enter Values: Type the value for ‘b’ into the “Enter Coefficient ‘b'” field and the value for ‘c’ into the “Enter Constant ‘c'” field.
  3. Review Results: The calculator automatically updates. The final solutions for ‘x’ are displayed prominently at the top of the results area.
  4. Analyze Steps: Below the main result, you can see the detailed intermediate steps that the calculator took to arrive at the solution. This is perfect for learning and verifying the process.

Key Factors That Affect the Solution

  • The Value of ‘b’: This coefficient determines the amount that needs to be added to complete the square and also shifts the parabola horizontally. A larger ‘b’ value creates a larger shift.
  • The Value of ‘c’: This constant directly affects the value on the right side of the equation and can influence whether the roots are real or complex.
  • The Discriminant (c + (b/2)²): The value inside the square root is critical. If c + (b/2)² is positive, there are two distinct real roots. If it’s zero, there is exactly one real root. If it’s negative, the roots are complex (which this calculator will indicate). For further reading, check out this guide on the quadratic formula calculator.
  • Sign of ‘b’: The sign of ‘b’ determines the sign inside the factored perfect square, (x ± b/2)².
  • Integers vs. Fractions: While the process works for any number, working with integer coefficients is often simpler than with fractions, though the principle remains identical.
  • Starting Form: This calculator assumes the coefficient of x² is 1. If your equation is ax² + bx = c where ‘a’ is not 1, you must first divide the entire equation by ‘a’.

Frequently Asked Questions (FAQ)

What if the ‘b’ coefficient is an odd number?

The method works perfectly fine. You will end up working with fractions. For instance, if b=3, the term to add is (3/2)² = 9/4 or 2.25. Our calculator handles this automatically.

What happens if the constant ‘c’ is negative?

A negative ‘c’ is also perfectly acceptable. It is simply used in the calculation on the right side of the equation, c + (b/2)².

When should I use completing the square vs. the quadratic formula?

Completing the square is a great method for understanding the structure of a quadratic equation and for converting it to vertex form. The quadratic formula is often faster for simply finding the roots, especially if the coefficients are complex. Both methods will always yield the same result. Explore our factoring calculator for another approach.

Why does the result show ‘Complex Roots’?

This occurs when the value inside the square root, c + (b/2)², is negative. The square root of a negative number is not a real number, so the solutions are “complex” or “imaginary.”

Are there units involved in this calculation?

No. This is an abstract mathematical calculation. The coefficients ‘b’ and ‘c’ and the solution ‘x’ are treated as unitless real numbers.

How does this differ from solving ax² + bx + c = 0?

This calculator is specialized for the form x² + bx = c. To solve ax² + bx + c = 0, you would first move ‘c’ to the right side (ax² + bx = -c) and then divide all terms by ‘a’.

What is a perfect square trinomial?

It’s a trinomial (an expression with three terms) that can be factored into the square of a binomial. For example, x² + 6x + 9 is a perfect square trinomial because it factors into (x + 3)².

Can I use this calculator for my homework?

Absolutely! It’s a great tool for checking your work and for understanding the step-by-step process. Be sure to understand the steps so you can perform them yourself. You might also find our algebra solver helpful.

© 2026 Your Website Name. All Rights Reserved. This calculator is for educational purposes.

Results copied to clipboard!



Leave a Reply

Your email address will not be published. Required fields are marked *