Quick Answer
To solve a linear equation, get all the x terms on one side and the numbers on the other, then divide. For 3x + 5 = 2x − 7, subtract 2x and 5 from both sides to get x = −12. For harder equations such as x³ = 2x + 1, this solver finds every real solution in the range numerically: x = −1, x ≈ -1.618034 and x ≈ 1.618034.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Equation Solver
- Quick Answer
- Related Calculators
- How This Equation Solver Works
- How to Use the Equation Solver
- How Equations Are Solved
- Key Terms
- Worked Example
- Real-Life Examples
- Equation vs Expression
- Examples of Equations and Solutions
- When an Equation Has No Solution
- Equations in Everyday Problems
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Equation Solver Works
Type an equation in x with one equals sign. If the equation is linear (x appears only to the first power), the solver moves every term to one side, collects them, and divides, showing each step and the exact answer. For anything else, such as x² − 5x + 6 = 0, 2^x = 10 or sin(x) = 0.5, it rewrites the equation as f(x) = 0, scans the search range for places where f(x) changes sign, and narrows each one down to the solution.
Quick explanation: a solution is a value of x that makes both sides equal.
- Linear equations have one solution, no solution or every number.
- Quadratics have up to two real solutions, cubics up to three.
- Trig equations repeat, so the range decides how many you see.
How to Use the Equation Solver
- Type your equation using x, for example 2x + 3 = 11 or x^2 – 5x + 6 = 0.
- Set the search range if you expect answers outside -100 to 100.
- Press Calculate.
- Read the solutions and the check that both sides match.
- Follow the steps to see how the answer was found.
How Equations Are Solved
- Linear: ax + b = cx + d becomes (a − c)x = d − b, so x = (d − b) ÷ (a − c)
- Same operation on both sides: adding, subtracting, multiplying or dividing both sides by the same non-zero number keeps the equation true
- Root finding: if f(a) and f(b) have opposite signs and f is continuous, there is a root between a and b (Intermediate Value Theorem)
- Bisection: check the midpoint, keep the half with the sign change, and repeat
Key Terms
- Equation: a statement that two expressions are equal.
- Solution or root: a value of x that makes the equation true.
- Linear equation: an equation where x appears only to the first power.
- Identity: an equation that is true for every value of x.
- Bisection: a method that finds a root by repeatedly halving an interval where the sign changes.
Worked Example
Solve 4(x − 2) = 2x + 6.
- Expand: 4x − 8 = 2x + 6
- Subtract 2x from both sides: 2x − 8 = 6
- Add 8 to both sides: 2x = 14
- Divide by 2: x = 7. Check: 4(7 − 2) = 20 and 2(7) + 6 = 20.
Real-Life Examples
- Phone bill: 20 + 0.1x = 35 gives x = 150 minutes.
- Rectangle: x(x + 3) = 40 gives x = 5 (and x = −8, which a length cannot be).
- Doubling time: 2^x = 10 gives x ≈ 3.321928.
- Trig: sin(x) = 0.5 between 0 and 6.3 gives x ≈ 0.523599 and x ≈ 2.617994 (in radians).
Equation vs Expression
- An expression such as 3x + 5 has no equals sign. You can simplify it but not solve it.
- An equation such as 3x + 5 = 20 says two expressions are equal, so you can solve for x.
- An inequality such as 3x + 5 > 20 has a range of answers; use the Inequality Calculator.
Examples of Equations and Solutions
| Equation | Type | Solutions |
|---|---|---|
| 3x + 5 = 2x − 7 | Linear | x = −12 |
| x² − 5x + 6 = 0 | Quadratic | x = 2, x = 3 |
| x² = −4 | Quadratic | No real solution |
| x³ = 2x + 1 | Cubic | x = −1, -1.6180, 1.6180 |
| 2^x = 10 | Exponential | x ≈ 3.3219 |
| sqrt(x) = 3 | Radical | x = 9 |
When an Equation Has No Solution
Some equations have no real solution. x² = −4 has no real answer because no real number squared is negative. 2x + 3 = 2x + 5 has no solution because the x terms cancel and leave 3 = 5. On the other hand, 2(x + 1) = 2x + 2 is true for every x, an identity. The solver tells you which case you have. For numeric solutions, it only searches the range you set, so widen the range if you expect a very large or very small answer.
Equations in Everyday Problems
Equations turn word problems into something you can solve. A phone plan costs $20 a month plus $0.10 a minute; how many minutes make the bill $35? Write 20 + 0.1x = 35 and solve to get 150 minutes. A rectangle is 3 m longer than it is wide and has an area of 40 m²; write x(x + 3) = 40 and solve to get a width of 5 m. Interest, speed, mixtures and break-even problems all work the same way.
Common Mistakes to Avoid
- Doing something to only one side. Whatever you add, subtract, multiply or divide, do it to both sides.
- Dropping a negative sign when moving a term across the equals sign.
- Dividing by an expression that can be zero. You may lose a solution; factor instead.
- Writing 2x^2 as (2x)^2. The power applies only to x unless you add brackets.
- Searching too small a range. Widen it if you expect large answers.
Frequently Asked Questions
Move x terms to one side and numbers to the other, then divide by the number in front of x.
Yes. It finds the real solutions numerically. For exact answers with the formula, use the Quadratic Formula Calculator.
No value of x makes both sides equal, such as 2x + 3 = 2x + 5.
The equation is an identity, true for every x.
Use ^ for powers, such as x^3, and sqrt() for square roots.
Non-linear equations are solved numerically to about 6 decimal places.
No, it finds real solutions only.
The solution may be outside the search range, or the graph may touch the x-axis without crossing it. Widen the range or check with the Graphing Calculator.
Write the unknown as x; other letters are not supported.
References & Sources
| Source | Used For | Link |
|---|---|---|
| OpenStax, College Algebra 2e, 2.2 Linear Equations in One Variable | Solving linear equations by collecting terms. | https://openstax.org/books/college-algebra-2e/pages/2-2-linear-equations-in-one-variable |
| OpenStax, Calculus Volume 1, 2.4 Continuity | The Intermediate Value Theorem behind root finding. | https://openstax.org/books/calculus-volume-1/pages/2-4-continuity |