Algebra
Equation Solver: How To Solve Any Type Of Equation Step By Step
Last updated: October 2026
An equation solver finds the value of a variable, like x, that makes both sides of an equation equal. Type the equation, press solve, and check the answer by plugging it back in. The method depends on the type: linear, quadratic, radical, rational, exponential, logarithmic or a system.
- Free, no sign-up
- Shows the working
- Runs on your device
Every equation is a statement that two things are equal. Solving it means finding the value, or values, that keep that statement true. This guide walks through each common type of equation with a worked example, explains when a solver's answer is fake (an "extraneous" solution), and shows how to check any result. Every example below was verified with a computer algebra system.
Note: Calc Solver (calc-solver.co) is an independent guide site and is not affiliated with any solver mentioned here.
What An Equation Solver Does
An equation solver isolates the unknown variable by doing the same thing to both sides of the equation until the variable stands alone. It then reports every value that makes the equation true, or says there is no solution.
Think of an equation as a balanced scale. Whatever you add, subtract, multiply or divide on one side, you must do on the other. A solver follows those same rules, just faster and without arithmetic slips.
Equations can have:
- One solution: 2x + 1 = 7 has only x = 3.
- Several solutions: x² = 9 has x = 3 and x = −3.
- No solution: x + 1 = x + 2 is never true.
- Infinitely many solutions: 2x + 4 = 2(x + 2) is true for every x.
How To Type Equations Into A Solver
Correct input is the most important step, because a solver solves exactly what you type. Use this format with most online equation solvers.
| You mean | Type | Common mistake |
|---|---|---|
| x squared | x^2 | x2 |
| 3 times x | 3x or 3*x | 3 x with odd spacing |
| x over 3 | x/3 | x÷3 on some tools |
| (x + 1) over (x − 2) | (x+1)/(x-2) | x+1/x-2 |
| Square root of x + 7 | sqrt(x+7) | sqrt x+7 |
| Absolute value | abs(2x-3) | Missing a bar |
| 3 to the power 2x − 1 | 3^(2x-1) | 3^2x-1 |
| Log base 2 | log_2(x+3) or log(x+3,2) | log2(x+3) |
| Natural log | ln(x) | log(x), often base 10 |
Always include the equals sign. Without it, many tools will simplify the expression instead of solving it.
Linear Equations
A linear equation has the variable only to the first power, like 3x + 2 = 11. Solve it by moving variable terms to one side and numbers to the other, then dividing.
Linear Equations With Fractions
When an equation has fractions, multiply every term by the least common denominator first to clear them.
Example: x/3 + 5 = 2x − 5
- Multiply every term by 3: x + 15 = 6x − 15
- Subtract x from both sides: 15 = 5x − 15
- Add 15 to both sides: 30 = 5x
- Divide by 5: x = 6
Check: 6/3 + 5 = 7 and 2(6) − 5 = 7. Both sides match.
No Solution And Infinitely Many Solutions
If the variable disappears while solving, look at what is left. A false statement means no solution; a true statement means every number works.
| Equation | After simplifying | Result |
|---|---|---|
| 2(x + 3) = 2x + 5 | 6 = 5 | No solution |
| 3(x + 2) = 3x + 6 | 6 = 6 | All real numbers |
Quadratic Equations
A quadratic equation has x² as its highest power, written in standard form as ax² + bx + c = 0. It can have two, one or no real solutions.
Choosing A Method
There are three main ways to solve a quadratic. Pick the fastest one for the numbers you have.
| Method | Best when | Example |
|---|---|---|
| Factoring | The numbers factor neatly | x² − 5x + 6 = 0 → (x − 2)(x − 3) = 0 → x = 2, 3 |
| Square root | There is no x term | x² = 49 → x = ±7 |
| Quadratic formula | Anything else | x² + 4x − 1 = 0 |
Using The Quadratic Formula
The quadratic formula always works: x = (−b ± √(b² − 4ac)) ÷ 2a.
Example: x² + 4x − 1 = 0 (a = 1, b = 4, c = −1)
- Discriminant: b² − 4ac = 16 − 4(1)(−1) = 20
- Plug in: x = (−4 ± √20) ÷ 2
- Simplify √20 = 2√5: x = (−4 ± 2√5) ÷ 2
- Answer: x = −2 + √5 ≈ 0.236 or x = −2 − √5 ≈ −4.236
What The Discriminant Tells You
The discriminant, b² − 4ac, tells you how many solutions to expect before you finish. According to Math is Fun, a positive value gives two real solutions, zero gives one, and a negative value gives a pair of complex solutions.
Example: x² + 2x + 5 = 0. The discriminant is 4 − 20 = −16, so there are no real solutions. The complex solutions are x = −1 + 2i and x = −1 − 2i. Many solvers show "no real solution" unless you turn on complex answers.
Cubic And Higher Polynomial Equations
A polynomial equation of degree 3 or higher can have up to as many solutions as its degree. A cubic has up to 3 real solutions.
Example: x³ − 6x² + 11x − 6 = 0
- Try small whole numbers that divide the constant 6 (±1, ±2, ±3, ±6). x = 1 works: 1 − 6 + 11 − 6 = 0.
- Divide by (x − 1): x³ − 6x² + 11x − 6 = (x − 1)(x² − 5x + 6)
- Factor the quadratic: (x − 1)(x − 2)(x − 3) = 0
- Answer: x = 1, 2, 3
For higher-degree equations without nice whole-number roots, an equation solver uses numeric methods and returns decimal answers. That is expected.
Absolute Value Equations
An absolute value equation like |2x − 3| = 7 splits into two equations, because the inside can be positive or negative.
Example: |2x − 3| = 7
- Case 1: 2x − 3 = 7, so 2x = 10, x = 5
- Case 2: 2x − 3 = −7, so 2x = −4, x = −2
Check: |2(5) − 3| = 7 and |2(−2) − 3| = |−7| = 7. Both work.
If the absolute value equals a negative number, like |x + 1| = −4, there is no solution, because absolute values are never negative.
Radical Equations And Extraneous Solutions
A radical equation has the variable under a square root. Solve it by isolating the root and squaring both sides, then always check every answer. Squaring can create extraneous solutions, which are values that come out of the algebra but do not work in the original equation.
Example: √(x + 7) = x − 5
- Square both sides: x + 7 = x² − 10x + 25
- Set to zero: x² − 11x + 18 = 0
- Factor: (x − 9)(x − 2) = 0, so x = 9 or x = 2
- Check x = 9: √16 = 4 and 9 − 5 = 4. Works.
- Check x = 2: √9 = 3 but 2 − 5 = −3. Fails, so x = 2 is extraneous.
Answer: x = 9 only.
A square root is never negative, so any solution that makes the right side negative must be thrown out.
Rational Equations
A rational equation has the variable in a denominator. Multiply both sides by the common denominator to clear the fractions, solve, then reject any value that makes a denominator zero.
Example: x/(x − 3) = 3/(x − 3) + 2
- Note the restriction: x cannot be 3, because x − 3 would be 0.
- Multiply every term by (x − 3): x = 3 + 2(x − 3)
- Simplify: x = 3 + 2x − 6, so x = 2x − 3
- Solve: x = 3
- But x = 3 is not allowed. There is no solution.
This is a common trap. A careless solve gives x = 3, which would divide by zero in the original equation.
Exponential Equations
An exponential equation has the variable in an exponent, like 5^x = 20. If both sides can be written with the same base, set the exponents equal. If not, take a logarithm of both sides.
Same Base
Example: 3^(2x − 1) = 27
- Write 27 as a power of 3: 27 = 3³
- Set the exponents equal: 2x − 1 = 3
- Solve: x = 2
Different Bases
Example: 5^x = 20
- Take the natural log of both sides: ln(5^x) = ln(20)
- Bring the exponent down: x · ln(5) = ln(20)
- Divide: x = ln(20) ÷ ln(5) ≈ 1.861
Check: 5^1.861 ≈ 20.
Logarithmic Equations
A logarithmic equation has the variable inside a log. Rewrite it in exponential form, solve, and reject any answer that would make a log's input zero or negative.
Rewriting In Exponential Form
Example: log₂(x + 3) = 5
- Rewrite: x + 3 = 2⁵ = 32
- Solve: x = 29
Combining Logs First
Example: log(x) + log(x − 3) = 1 (base 10)
- Combine using the product rule: log(x(x − 3)) = 1
- Rewrite: x(x − 3) = 10¹ = 10
- Set to zero: x² − 3x − 10 = 0, so (x − 5)(x + 2) = 0
- x = 5 or x = −2
- Reject x = −2, because log(−2) is undefined. Answer: x = 5.
Systems Of Equations
A system is two or more equations that share variables. The solution is the set of values that makes every equation true at the same time.
Three Ways To Solve A System
| Method | How it works | Best when |
|---|---|---|
| Substitution | Solve one equation for a variable and plug it into the other | One variable is already alone or has a coefficient of 1 |
| Elimination | Add or subtract equations to cancel a variable | Coefficients line up or are easy to match |
| Graphing | Find where the lines cross | You want a picture or a quick estimate |
Example (substitution): 2x + 3y = 12 and x − y = 1
- From the second equation: x = y + 1
- Substitute: 2(y + 1) + 3y = 12, so 5y + 2 = 12
- Solve: y = 2, then x = 3
- Answer: x = 3, y = 2
Systems With Three Variables
With three variables, use elimination to reduce the system to two equations, then to one.
Example: x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2
- Add equations 1 and 3 to cancel z: 2x + 3y = 8
- Add equations 2 and 3 to cancel z: 3x + y = 5
- Solve these two: from 3x + y = 5, y = 5 − 3x. Then 2x + 3(5 − 3x) = 8, so −7x = −7 and x = 1
- Back-substitute: y = 2, then z = 6 − 1 − 2 = 3
- Answer: x = 1, y = 2, z = 3
Inequalities
An inequality uses <, >, ≤ or ≥ instead of =. You solve it like an equation, with one big exception: flip the sign when you multiply or divide by a negative number. As Math is Fun's guide to solving inequalities puts it, when multiplying or dividing by a negative number, reverse the inequality.
Example: −2x + 5 > 11
- Subtract 5: −2x > 6
- Divide by −2 and flip the sign: x < −3
- Answer: x < −3, which is (−∞, −3) in interval notation
Check: try x = −4. −2(−4) + 5 = 13, and 13 > 11 is true.
How To Check An Equation Solver's Answer
The fastest way to check any solution is to plug it back into the original equation, not a later step. Both sides should give the same number.
- Use the original equation. Extraneous solutions often pass a check on a later line but fail the original.
- Check every solution. A quadratic or radical equation can have one good answer and one bad one.
- Watch the domain. Reject values that divide by zero, take a square root of a negative (in real numbers) or take a log of zero or a negative.
- Estimate. If x = 6 and the left side is x/3 + 5, you expect 7. A wildly different value means a typo.
- Graph both sides. The solutions are where the two graphs meet.
Common Equation Solving Mistakes
Most wrong answers come from a few repeat errors. Here is how to spot and fix them.
| Mistake | Example | Fix |
|---|---|---|
| Doing something to only one side | x + 3 = 7 → x = 7 − 3 on the left only | Every step must apply to both sides |
| Forgetting the negative root | x² = 49 → x = 7 | x = ±7 |
| Not checking radical answers | Keeping x = 2 in √(x + 7) = x − 5 | Plug every answer into the original |
| Ignoring denominator restrictions | Keeping x = 3 when x − 3 is a denominator | List restrictions before solving |
| Not flipping an inequality | −2x > 6 → x > −3 | Dividing by a negative flips the sign: x < −3 |
| Distributing a minus sign wrong | −(x − 4) = −x − 4 | −(x − 4) = −x + 4 |
| Dividing by the variable | x² = 3x → x = 3 | Factor instead: x(x − 3) = 0, so x = 0 or 3 |
The last one is easy to miss. Dividing both sides by x throws away the solution x = 0.
Summary
An equation solver finds the values that make both sides equal, but the method changes with the type of equation. Key takeaways:
- Linear: isolate the variable; clear fractions first.
- Quadratic: factor, use square roots or use the quadratic formula; the discriminant predicts the number of real solutions.
- Absolute value: split into two cases.
- Radical and rational: always check for extraneous solutions and denominator restrictions.
- Exponential and logarithmic: match bases or use logs; reject log inputs that are zero or negative.
- Systems: use substitution or elimination; three-variable systems reduce step by step.
- Inequalities: flip the sign when multiplying or dividing by a negative.
- Always check in the original equation.
Next step: Type one of the examples above into the equation solver at the top of this page, compare its steps with the ones here, then try an equation from your own homework. For more free tools and guides, visit the Calc Solver home page.
Frequently Asked Questions
What is the best free equation solver?
The best free equation solver shows full steps without a paywall and checks its own answers. The solver at the top of this page does both. Well-known alternatives include MathPapa for algebra steps, Symbolab and Wolfram Alpha for wide coverage, and Desmos for graphing both sides. Some of these keep full steps in a paid plan.
Can an equation solver solve equations with two variables?
A single equation with two variables, like 2x + 3y = 12, has infinitely many solutions, so a solver can only solve it for one variable in terms of the other: y = (12 − 2x) ÷ 3. To get one exact answer for both variables, you need a second equation. Then use the system tab to solve both together.
What is an extraneous solution?
An extraneous solution is a value that comes out of the algebra but does not work in the original equation. It usually appears when you square both sides of a radical equation or clear fractions in a rational equation. Always plug each answer back into the original equation and throw out any that fail.
Why does my equation solver say "no real solution"?
It means no real number makes the equation true. This happens with quadratics whose discriminant is negative, absolute values set equal to a negative number, or square roots set equal to a negative number. Some solvers can show complex solutions using i, the square root of −1, if you turn that option on.
How do I solve an equation for a specific variable?
Treat every other letter as a number and isolate the variable you want. For example, to solve A = lw for w, divide both sides by l to get w = A ÷ l. Most equation solvers let you choose the variable to solve for, which is useful for physics and geometry formulas.
Can an equation solver show the steps?
Many can. Good solvers show each step, such as distributing, combining like terms, factoring or applying the quadratic formula. Some free tools only show the final answer and keep step-by-step work in a paid plan. Reading the steps helps you find exactly where your own work went wrong.
Try it with your own numbers
Use a free CalcSolver tool to check the examples in this guide.