Algebra Calculator

Solve linear and quadratic equations from their coefficients. Enter the values of a, b, and c to solve the linear equation ax + b = c and the quadratic equation ax² + bx + c = 0, with results shown instantly.

Linear ax+b=c → x

-5

Quadratic roots

1, -3

Solves linear ax + b = c and quadratic ax² + bx + c = 0.

Who should use it: Students learning algebra and anyone solving for an unknown in a linear or quadratic equation.

How to use this calculator

  1. 1Enter the coefficient a (the number multiplying x, or x² for quadratics).
  2. 2Enter b (the constant added to the x term).
  3. 3Enter c (the constant on the other side for linear, or the constant term for quadratics).
  4. 4Review the linear solution for ax + b = c and the quadratic roots for ax² + bx + c = 0.

Understanding the inputs

aThe coefficient of x in the linear equation ax + b = c, and of x² in the quadratic ax² + bx + c = 0. Cannot be zero for a valid solution.
bThe constant added to the x term in the linear equation, and the coefficient of x in the quadratic.
cThe constant on the right-hand side of ax + b = c, and the constant term in ax² + bx + c = 0.

How the calculation works

For the linear equation ax + b = c, the calculator isolates x by subtracting b from both sides and dividing by a, giving x = (c − b) / a. For the quadratic equation ax² + bx + c = 0, it applies the quadratic formula, using the discriminant (b² − 4ac) to determine whether there are two real roots, one repeated root, or no real roots.

Linear: x = (c − b) / a. Quadratic: x = (−b ± √(b² − 4ac)) / 2a

Worked example

Scenario: a = 2, b = 5, c = 13 for the linear equation 2x + 5 = 13.

Result: Subtract 5 → 2x = 8; divide by 2 → x = 4.

How to interpret your result

The linear result is the single value of x that satisfies ax + b = c. The quadratic result lists the two real roots of ax² + bx + c = 0 when they exist; if the discriminant is negative, the calculator reports "no real roots" because the solutions are complex numbers.

Factors that can affect the result

  • Coefficient a: when a is zero the linear equation has no unique solution and the quadratic is not valid.
  • Discriminant (b² − 4ac): a positive value gives two real roots, zero gives one repeated root, and a negative value means no real roots.
  • Sign of coefficients: negative values for a, b, or c are fully supported and change the solution accordingly.

Limitations and assumptions

  • Solves linear equations in one variable and quadratic equations only; it does not handle cubic or higher-degree equations, systems of equations, or expressions with multiple variables.
  • Reports "no real roots" for quadratics with a negative discriminant; complex roots are not displayed.
  • Does not show step-by-step working; it returns the final solutions only.

Frequently asked questions

Related calculators

Methodology

For ax + b = c, the calculator computes x = (c − b) / a. For ax² + bx + c = 0, it applies the quadratic formula x = (−b ± √(b² − 4ac)) / 2a and uses the discriminant to determine whether real roots exist.

Sources and references

  • Mathematical basis — linear isolation and the quadratic formula are standard results of elementary algebra; no external source is required
Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.