MathPath
Grades 1–13 Math Hub
Interactive Math Tool & Complete Study Guide

Algebra Equation Calculator

Solve linear and quadratic equations step-by-step with discriminant analysis. Complete with step-by-step calculation breakdown, plain-English how-to guides, worked examples, common mistakes to avoid, practice questions, and printable worksheets.

Quick Try:

Enter coefficients for $ax^2 + bx + c = 0$ (set $a = 0$ to solve a linear equation $bx + c = 0$):

Jump to Guide: How to Solve Linear Equations ($bx + c = 0$)How to Solve Quadratic Equations ($ax^2 + bx + c = 0$)Understanding the Discriminant ($\Delta = b^2 - 4ac$)Worked ExamplesCommon MistakesRelated Worksheets

Key Formulas & Rules

Linear Equation Solution

$$bx + c = 0 \implies x = -\frac{c}{b} \quad (b \neq 0)$$

Quadratic Formula

$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

Discriminant Rule

$$\Delta = b^2 - 4ac \quad (\Delta>0: \text{2 real},\; \Delta=0: \text{1 real},\; \Delta<0: \text{2 complex})$$

Quadratic Discriminant ($\Delta = b^2 - 4ac$) Quick Reference

Discriminant ValueNumber & Type of RootsParabola & x-AxisExample
$\Delta > 0$ (perfect square)2 rational real rootsCrosses x-axis twice$x^2 - 5x + 6 = 0 \implies x=2, 3$
$\Delta > 0$ (non-square)2 irrational real rootsCrosses x-axis twice$x^2 - 4x + 1 = 0 \implies 2 \pm \sqrt{3}$
$\Delta = 0$1 repeated real rootVertex touches x-axis$x^2 + 6x + 9 = 0 \implies x=-3$
$\Delta < 0$2 complex conjugate rootsNever crosses x-axis$x^2 + 2x + 5 = 0 \implies -1 \pm 2i$

How to Solve Linear Equations ($bx + c = 0$)

A linear equation has $x$ to the first power and represents a straight line. Your goal is to isolate $x$ using inverse operations on both sides.

  1. Simplify both sides: Distribute parentheses and combine like terms first.
  2. Move constants away from $x$: Add or subtract $c$ from both sides so $bx = -c$.
  3. Divide by the coefficient $b$: $x = -\frac{c}{b}$ (provided $b \neq 0$).
  4. Check by substitution: Plug your value of $x$ back into the original equation to confirm both sides match.

How to Solve Quadratic Equations ($ax^2 + bx + c = 0$)

Every quadratic equation can be put into standard form $ax^2 + bx + c = 0$ and solved by factoring, completing the square, or the Quadratic Formula.

  1. Step 1 — Standard form: Move all terms to one side so the right side equals $0$, and identify $a, b, c$ carefully with their signs.
  2. Step 2 — Try factoring first: When $a = 1$, look for two numbers that multiply to $c$ and add to $b$. For $x^2 - 5x + 6 = 0$, $(-2)(-3) = 6$ and $-2 + (-3) = -5$, giving $(x-2)(x-3) = 0$.
  3. Step 3 — Use the Quadratic Formula (works 100% of the time): Substitute $a, b, c$ into $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.
  4. Step 4 — Simplify radicals & fractions: Reduce $\sqrt{\Delta}$ and divide both terms in the numerator by $2a$.

Understanding the Discriminant ($\Delta = b^2 - 4ac$)

The expression inside the square root of the quadratic formula tells you how many solutions exist—and how the parabola meets the $x$-axis—before you even finish solving.

  1. $\Delta > 0$ (Positive): Two distinct real solutions; the parabola crosses the $x$-axis twice.
  2. $\Delta = 0$ (Zero): Exactly one repeated real solution ($x = -\frac{b}{2a}$); the parabola's vertex sits right on the $x$-axis.
  3. $\Delta < 0$ (Negative): Two complex conjugate solutions involving $i = \sqrt{-1}$; the parabola never touches the $x$-axis.

Step-by-Step Worked Examples

Worked Example 1

Solve $x^2 - 5x + 6 = 0$ (2 real roots)

$a=1, b=-5, c=6$. $\Delta = (-5)^2 - 4(1)(6) = 1$. $x = \frac{5 \pm 1}{2} \Rightarrow x = 3$ or $x = 2$.

Worked Example 2

Solve $x^2 + 6x + 9 = 0$ (1 repeated root)

$a=1, b=6, c=9$. $\Delta = 36 - 36 = 0$. $x = \frac{-6}{2} = -3$ (vertex touches $x$-axis).

Worked Example 3

Solve $x^2 + 2x + 5 = 0$ (complex roots)

$\Delta = 4 - 20 = -16 < 0$. $x = \frac{-2 \pm 4i}{2} = -1 \pm 2i$.

Worked Example 4

Solve $4x - 12 = 0$ (linear equation)

Set $a=0, b=4, c=-12$. Add $12$ to both sides: $4x = 12 \Rightarrow x = 3$.

Common Mistakes & How to Avoid Them

Common Mistake #1

Dropping the negative sign on $b^2$

If $b = -5$, then $b^2 = (-5)^2 = +25$, NOT $-25$. Squaring any real number always gives a non-negative result.

Common Mistake #2

Forgetting to set the equation equal to 0 first

Before reading $a, b, c$ from $x^2 - 5x = -6$, add $6$ to both sides to get $x^2 - 5x + 6 = 0$ so $c = +6$, not $-6$.

Common Mistake #3

Dividing only ONE term by $2a$

In $\frac{4 \pm 2\sqrt{3}}{2}$, divide BOTH $4$ and $2\sqrt{3}$ by $2$ to get $2 \pm \sqrt{3}$.

Quick Practice Questions (Check Your Understanding)

Try solving these on scratch paper first, then expand each card to verify your steps.

Practice #1: Practice Problem 1: Solve $x^2 - 5x + 6 = 0$ (2 real roots)

Solution: $a=1, b=-5, c=6$. $\Delta = (-5)^2 - 4(1)(6) = 1$. $x = \frac{5 \pm 1}{2} \Rightarrow x = 3$ or $x = 2$.

Practice #2: Practice Problem 2: Solve $x^2 + 6x + 9 = 0$ (1 repeated root)

Solution: $a=1, b=6, c=9$. $\Delta = 36 - 36 = 0$. $x = \frac{-6}{2} = -3$ (vertex touches $x$-axis).

Practice #3: Practice Problem 3: Solve $x^2 + 2x + 5 = 0$ (complex roots)

Solution: $\Delta = 4 - 20 = -16 < 0$. $x = \frac{-2 \pm 4i}{2} = -1 \pm 2i$.

Frequently Asked Questions

What does a negative discriminant mean?
When $b^2 - 4ac < 0$, the parabola does not cross the x-axis, so the two solutions are complex conjugates involving $i = \sqrt{-1}$.
Can I use this calculator for linear equations?
Yes! Simply enter 0 for the $x^2$ coefficient $a$, and the solver automatically switches to linear mode.