Skip to content
Math Calculators

Equation Solver

Solve algebraic equations with variable x. Linear, quadratic, numeric solving with steps.

Free · Runs in your browser · No signup

Waiting for input.

Examples to try

Quadratic reminder

For ax² + bx + c = 0, D = b² − 4ac decides two real, one real, or complex roots.

Common mistakes

  • Writing multiplication without * or implied forms the parser rejects.
  • Expecting symbolic CAS for every expression (use AI Math Solver for harder steps).
  • Forgetting both ± roots on quadratics.

Scope: Common algebra equations for homework checks. Not a full computer algebra system.

How to Use

Enter your values in the fields above and click Calculate to get instant results. All computations run locally in your browser. No data is ever uploaded or stored.

How the Solver Finds Roots

CalcSolver scans for sign changes across a wide range, then uses bisection to pinpoint each real root to within 10⁻⁶. It works for any equation that can be written as expression = expression.

For a standard quadratic ax² + bx + c = 0, the discriminant D = b² − 4ac tells you the root type: D > 0 → two real roots, D = 0 → one repeated root, D < 0 → two complex roots (no real solution).

Try These Example Equations

x² − 5x + 6 = 0 → x = 2, 3
2x + 8 = 20 → x = 6
x² − 4 = 0 → x = −2, 2
x² + 2x − 15 = 0 → x = −5, 3
x² + 1 = 0 → no real roots (D = −4)
3x³ − 10x + 2 = 5 → numerical roots

Equation Solving Methods

CalcSolver's equation solver handles linear equations, quadratic equations, and numerically solves more complex expressions using iterative methods. It provides step-by-step solutions, making it a valuable learning tool for algebra students and a quick verification tool for professionals.

Linear Equations

A linear equation has the form ax + b = c, where a, b, and c are constants and x is the unknown. To solve, isolate x by performing the same operation on both sides: subtract b from both sides to get ax = c - b, then divide by a to get x = (c - b) / a. For example, 3x + 7 = 22 becomes 3x = 15, so x = 5. Linear equations always have exactly one solution (unless a = 0, which makes it either a contradiction or an identity). Graphically, a linear equation corresponds to a straight line, and the solution is the x-intercept.

Quadratic Equations and the Quadratic Formula

A quadratic equation has the form ax² + bx + c = 0. The quadratic formula x = (-b ± √(b² - 4ac)) / 2a provides both solutions directly. The discriminant D = b² - 4ac determines the nature of the roots: when D > 0, there are two distinct real roots; when D = 0, there is one repeated real root; when D < 0, there are two complex conjugate roots. For example, x² - 5x + 6 = 0 has D = 25 - 24 = 1 > 0, giving x = 3 and x = 2. Quadratic equations can also be solved by factoring (when roots are rational) or completing the square.

Numerical Methods: Bisection and Beyond

When an equation cannot be solved algebraically (such as x³ + 2x - 5 = 0 or sin(x) = x/2), numerical methods approximate the solution iteratively. The bisection method repeatedly halves an interval [a, b] where the function changes sign, converging on the root. The Newton-Raphson method uses the derivative to converge faster, typically in just a few iterations. CalcSolver uses these approaches when it detects equations that do not fit standard algebraic forms. Numerical solutions are approximate but can be made arbitrarily precise by increasing the number of iterations.

Limitations of Numerical Solvers

Numerical methods have inherent limitations worth understanding. They find one root at a time — if an equation has multiple solutions, the solver may find only the one nearest to the initial guess. Some equations have no real solutions (like x² + 1 = 0 over the reals), and some numerical methods may fail to converge for certain function shapes. Additionally, floating-point arithmetic introduces tiny rounding errors that compound in very long calculations. For exact symbolic solutions, algebraic methods remain preferable when applicable.

Interpreting Solutions and Graphing Connection

Every equation solution corresponds to a point on a graph. For f(x) = 0, the solutions are the x-intercepts of y = f(x). A linear equation produces one intersection with the x-axis; a quadratic produces zero, one, or two intersections depending on the discriminant. Visualizing equations graphically helps verify solutions and understand their behavior. If your calculated solution does not match the graph, recheck your algebra — the visual representation is an excellent error-detection tool.

Real-World Applications

Physics: Projectile motion equations (quadratic) determine when an object hits the ground. Finance: break-even analysis solves linear equations to find the sales volume where revenue equals cost. Engineering: circuit analysis uses systems of linear equations to find current and voltage at each node. Chemistry: equilibrium calculations involve solving polynomial expressions for concentration values.

Tips for Success

Sponsored

Sponsored Content

The following content is provided by our advertising partner and does not affect the calculator experience.

Frequently Asked Questions

What types of equations can this solver handle?

This equation solver handles linear equations (ax + b = c), quadratic equations (ax² + bx + c = 0), and numerically solves more complex equations using iterative approximation methods.

How does the quadratic formula work?

For ax² + bx + c = 0, the solutions are x = (-b ± √(b²-4ac)) / 2a. The discriminant (b²-4ac) determines the number of real solutions: positive gives 2, zero gives 1, negative gives no real solutions.

Can it solve equations with complex numbers?

When the discriminant is negative, the quadratic equation has complex solutions. Our solver shows both real and complex solutions when applicable.

What is the difference between algebraic and numerical solutions?

Algebraic solutions are exact (like x = 3 or x = (1+√5)/2). Numerical solutions are approximations (like x ≈ 1.6180339887) found through iterative methods. Use algebraic methods when possible; use numerical methods when the equation cannot be solved symbolically.

Why does the solver sometimes find only one root?

Numerical methods converge on the nearest root from an initial guess. If an equation has multiple solutions, the solver may find only one. Try re-solving with different starting values or use the quadratic formula for second-degree equations to find both roots directly.