Equation solver
Solve linear and quadratic equations and see the discriminant and roots.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Choose linear or quadratic.
- Enter the coefficients a, b and c.
- Read the solution, which updates as you type.
Handy for
Checking homework and quick algebra.
Good to know
The discriminant b² - 4ac decides the roots: positive gives two, zero gives one and negative gives complex roots.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
What if the discriminant is negative?
There are no real roots. The tool shows the two complex roots.
What if a is zero?
A quadratic needs a non-zero a. For a linear equation a must be non-zero for a single solution.