Equation Solver Calculator - Linear & Quadratic Equation Solver

Solve linear, quadratic, and systems of linear equations with step-by-step solutions.

Equation Input

x² − 5x + 6 = 0

Your Results

Solutions x = 2, x = 3
Equation x² − 5x + 6 = 0
x₁ 2
x₂ 3
Discriminant (Δ) 1
Nature of Roots Two distinct real roots
Sum of Roots 5
Product of Roots 6

Step-by-Step Solution

Equation Solver Calculator - Guide

What Is the Equation Solver Calculator?

The Equation Solver Calculator is a free online tool that solves linear equations, quadratic equations, and systems of two linear equations with step-by-step solutions. Enter your coefficients and instantly receive the roots, discriminant, nature of roots, sum and product of roots, and a detailed walkthrough of the solution process. It is designed for students, teachers, and professionals who need fast, accurate equation solving with full transparency into every step.

Key Features of This Equation Solver

  • Three equation types: Linear (ax + b = 0), Quadratic (ax² + bx + c = 0), and System of two linear equations (a₁x + b₁y = c₁, a₂x + b₂y = c₂).
  • Step-by-step solution: Every calculation step is shown, from substituting into the formula to simplifying the final answer.
  • Discriminant analysis: For quadratic equations, the discriminant (Δ) is computed and the nature of roots is identified (two real, one repeated, or complex).
  • Sum and product of roots: Vieta’s formulas are applied to quadratic results for additional insight.
  • Complex root support: When Δ < 0, the calculator returns complex conjugate roots in a ± bi form.
  • Live equation preview: As you enter coefficients, the equation is displayed in standard notation for verification.
  • Instant results: No page reloads — solutions appear immediately after clicking Solve.

Equation Solving Formulas and Methods

1. Linear Equation: ax + b = 0

Solution: x = −b ÷ a (requires a ≠ 0)

2. Quadratic Equation: ax² + bx + c = 0

Quadratic Formula: x = (−b ± √(b² − 4ac)) ÷ 2a

Discriminant: Δ = b² − 4ac

Sum of roots: x₁ + x₂ = −b ÷ a

Product of roots: x₁ × x₂ = c ÷ a

3. System of Two Linear Equations (Cramer’s Rule)

a₁x + b₁y = c₁ and a₂x + b₂y = c₂

D = a₁b₂ − a₂b₁

x = (c₁b₂ − c₂b₁) ÷ D

y = (a₁c₂ − a₂c₁) ÷ D

If D = 0, the system has no unique solution (parallel or coincident lines).

How to Solve Equations Online — Step-by-Step

  1. Select the equation type: Use the dropdown to choose Linear, Quadratic, or System.
  2. Enter coefficients: For linear and quadratic, fill in a, b, and (for quadratic) c. For systems, fill in a₁, b₁, c₁ and a₂, b₂, c₂.
  3. Verify the preview: Check the equation preview below the inputs to confirm your coefficients are correct.
  4. Click Solve: Press the Solve button to compute the solution.
  5. Read the results: The solutions appear at the top of the results panel, with the discriminant, nature of roots, and Vieta’s formulas below.
  6. Review the steps: Scroll to the “Step-by-Step Solution” section for a full walkthrough of the calculation.

Practical Examples of Solving Equations

  • Example 1 — Linear equation: Solve 3x + 6 = 0. Here a = 3, b = 6. x = −6 ÷ 3 = −2.
  • Example 2 — Quadratic with two real roots: Solve x² − 5x + 6 = 0. a = 1, b = −5, c = 6. Δ = 25 − 24 = 1. x = (5 ± 1) ÷ 2, so x₁ = 3 and x₂ = 2.
  • Example 3 — Quadratic with complex roots: Solve x² + 4 = 0. a = 1, b = 0, c = 4. Δ = 0 − 16 = −16. x = (0 ± √(−16)) ÷ 2 = ±2i. The roots are 2i and −2i.
  • Example 4 — System of equations: Solve 2x + 3y = 8 and x − y = 1. D = (2)(−1) − (1)(3) = −5. x = (8 × −1 − 1 × 3) ÷ −5 = −11 ÷ −5 = 2.2. y = (2 × 1 − 1 × 8) ÷ −5 = −6 ÷ −5 = 1.2.

Real-World Use Cases for Equation Solving

  • Academic homework: Students solving algebra, pre-calculus, and physics problems that require finding unknowns.
  • Physics: Projectile motion (h = −½gt² + v₀t + h₀), electrical circuits (V = IR), and kinematics equations.
  • Business & finance: Break-even analysis (Revenue = Cost), supply-demand equilibrium, and profit maximisation with quadratic models.
  • Engineering: Structural analysis, control system design, and signal processing where polynomial roots determine system behaviour.
  • Everyday problems: Splitting bills proportionally, calculating travel time from distance and speed, or mixing solutions of different concentrations.

Understanding Your Equation Solver Results

  • Solutions (x₁, x₂): The values of x (and y for systems) that satisfy the equation. For quadratic equations, there may be one or two values.
  • Discriminant (Δ): For quadratics, Δ = b² − 4ac. It determines whether roots are real and distinct (Δ > 0), repeated (Δ = 0), or complex (Δ < 0).
  • Nature of Roots: A plain-English description: “Two distinct real roots,” “One repeated real root,” or “Two complex conjugate roots.”
  • Sum of Roots: x₁ + x₂ = −b/a (Vieta’s formula). Useful for verification — if this does not match, re-check your coefficients.
  • Product of Roots: x₁ × x₂ = c/a (Vieta’s formula). Another quick verification check.
  • Step-by-Step Solution: A detailed breakdown showing each calculation step, so you can follow the logic and learn the method.

Tips and Best Practices for Solving Equations

  • Double-check coefficients: The most common source of wrong answers is entering incorrect values for a, b, or c. Verify against the equation preview.
  • Understand the discriminant: Before solving a quadratic, compute Δ mentally to know what type of answer to expect.
  • Verify with substitution: After obtaining a solution, substitute it back into the original equation to confirm it satisfies the equation.
  • Use Vieta’s formulas: For quadratics, check that the sum and product of your roots match −b/a and c/a respectively.
  • Handle special cases: If a = 0 in a quadratic, the equation is actually linear. The calculator will alert you if this occurs.

Common Mistakes to Avoid When Solving Equations

  • Setting a = 0 for a quadratic: If the leading coefficient is zero, the equation is not quadratic. Use the linear solver instead.
  • Sign errors: Forgetting to include a negative sign for b or c is the most frequent mistake. x² − 5x + 6 = 0 requires b = −5, not 5.
  • Ignoring complex roots: When Δ < 0, the equation still has solutions — they are complex numbers. Do not assume “no solution” just because the discriminant is negative.
  • Mixing up system coefficients: For systems, ensure a₁, b₁, c₁ all come from the same equation. Swapping coefficients between equations gives wrong results.
  • Expecting integer answers: Many real-world equations produce decimal or irrational answers. The calculator displays precise decimal values.

Frequently Asked Questions About the Equation Solver

  • Q: What is the quadratic formula?
    A: The quadratic formula solves ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant (b² − 4ac) determines whether the roots are real or complex.
  • Q: What does the discriminant tell you?
    A: If Δ > 0, there are two distinct real roots. If Δ = 0, there is one repeated real root. If Δ < 0, there are two complex conjugate roots of the form a ± bi.
  • Q: How do you solve a system of two linear equations?
    A: This calculator uses Cramer’s rule. For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, compute D = a₁b₂ − a₂b₁. Then x = (c₁b₂ − c₂b₁) ÷ D and y = (a₁c₂ − a₂c₁) ÷ D.
  • Q: What happens if D = 0 in a system of equations?
    A: If the determinant D = 0, the two lines are either parallel (no solution) or coincident (infinitely many solutions). The calculator will indicate that no unique solution exists.

Find a Calculator

Browse All Calculators →