Equation Solver

Solve a linear or quadratic equation from its coefficients.

  • Free to use
  • Accurate results
  • No registration required
  • Works on all devices
Enter the coefficients of a linear or quadratic equation to solve for x.
Enter 2 coefficients for a linear equation (ax + b = 0) or 3 for a quadratic (ax² + bx + c = 0), separated by commas.

Your result

x = 2 or x = 1

Solution

Degree2

AI explanation

Formula

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

Worked example

x² − 3x + 2 = 0 (coefficients 1, -3, 2)

Worked example: x² − 3x + 2 = 0 (coefficients 1, -3, 2)
FieldValue
Coefficients (highest degree first)1, -3, 2
Degree2
Solutionx = 2 or x = 1

Assumptions

  • Supports linear (2 coefficients) and quadratic (3 coefficients) equations only — there's no simple closed-form solution for a general cubic-or-higher equation. Use the Polynomial Calculator to evaluate a higher-degree polynomial at specific x values instead.

Frequently asked questions

How do I enter a linear equation?

Enter exactly 2 coefficients — for 3x - 9 = 0, enter "3, -9".

How do I enter a quadratic equation?

Enter exactly 3 coefficients, highest degree first — for x² - 3x + 2 = 0, enter "1, -3, 2".

Can this solve cubic or higher-degree equations?

No — there's no simple formula for a general cubic or higher-degree equation's roots. This solver supports linear and quadratic equations only.

Related calculators

Report a calculation issue