Equation Solver
Type an equation such as 2x + 5 = 11 or 3(x − 2) = x + 4, enter a quadratic as a, b and c, or solve two equations in x and y together. Answers are exact fractions where possible, with the full working.
Examples: 2x + 5 = 11, 3(x − 2) = x + 4, x/3 + 1/2 = 2. Use * or × to multiply and / or ÷ to divide.
Answers are exact fractions where possible. Square roots that do not work out exactly are also shown as decimals rounded to 6 places.
About Equation Solver
Equation Solver finds the unknown in everyday algebra and shows how. It covers a linear equation with one letter, a quadratic equation up to x², and a pair of linear equations in x and y that must both hold at once.
Typing an equation
- Write it the way it appears in your book:
2x + 5 = 11,3(x - 2) = x + 4orx/3 + 1/2 = 2. - A number written straight before a letter or bracket means multiply, so
4(x + 1)is fine. Use*or×elsewhere. - For squares, type
x^2or pastex².
Worked examples
3(x - 2) = x + 4expands to 3x − 6 = x + 4. Gathering terms gives 2x = 10, so x = 5.- For x² + x − 1 = 0 the discriminant is 1 + 4 = 5. That is not a perfect square, so the roots are −1/2 ± √5/2, about 0.618034 and −1.618034.
- For x² − 2x + 5 = 0 the discriminant is −16, which is negative. There is no real answer; the complex roots are 1 + 2i and 1 − 2i.
- The pair 2x + 3y = 13 and x − y = −1 gives D = −5, Dx = −10 and Dy = −15, so x = 2 and y = 3.
How it works
A small parser written for this page reads your text; nothing you type is run as code. Each side is turned into a polynomial with exact fractional coefficients, so 0.1x + 0.2 = 0.3 gives exactly 1. Quadratics use the formula (−b ± √D) ÷ 2a. Pairs of equations use Cramer’s rule, and when D is zero the tool checks whether the lines are parallel or identical.
Limits
Cubes and higher powers, letters in a denominator (such as 1/x) and equations with three unknowns are not handled. Irrational roots are rounded to 6 places, with the exact square-root form beside them.
How to use Equation Solver
- Choose linear, quadratic or two equations in x and y.
- Type the equation (for example 3(x − 2) = x + 4) or enter the numbers a, b and c.
- Read the answer and follow the working step by step.
Privacy: how it works
Calculations run in your browser. Nothing you type is sent anywhere.
Frequently asked questions
What kinds of equations can it solve?
Linear equations in one unknown, with brackets and fractions; quadratic equations (up to x²), including repeated and complex roots; and a pair of linear equations in x and y. Cubic and higher powers, and letters in a denominator, are not supported.
How does it handle quadratics with no real roots?
When the discriminant b² − 4ac is negative, the tool says there are no real roots and gives the two complex roots in a + bi form, for example x = 1 ± 2i for x² − 2x + 5 = 0.
What if two equations have no single answer?
Cramer's rule divides by D = a₁b₂ − a₂b₁. When D is 0 the tool checks whether the lines are parallel (no solution) or the same line (infinitely many solutions) and tells you which.