Equation solver

Solve linear and quadratic equations from their coefficients, with working.

Jump to result

Your inputs

Updates as you type

real roots

1, 2

Discriminant
1

Uses a cancellation-resistant form of the quadratic formula.

Calculations happen in your browser. Saving is optional.

How to use this tool

Enter coefficients for ax² + bx + c = 0. Use a = 0 for a linear equation.

Read the working and real or complex solutions. This tool does not accept arbitrary symbolic equations or higher powers.

Solve ax² + bx + c = 0; discriminant D = b²−4ac

Worked example

1, 2 · real roots

Fixed example using the settings below. Monetary examples use USD; dates and times use their stated reference values. This example stays unchanged when you edit your calculation.

Example inputs
  • Quadratic coefficient a: 1
  • Linear coefficient b: -3
  • Constant c: 2

Method illustration: x²−3x+2=0 has roots 1 and 2.

Assumptions and limits

  • Supports real-coefficient linear/quadratic equations. Set a=0 for a linear equation; higher degrees and symbolic expressions are unsupported.

Check or report a result

Check the units, selected calculation and assumptions first. Compare the fixed example above with your inputs to identify what changed.

Report a calculation issue with the page address, hypothetical inputs, result displayed and result expected. Do not include passwords, bank details or other private information.