Algebra Calculator

Quadratic equations, linear equations and systems — solved step by step.

Solves ax² + bx + c = 0 using the quadratic formula.

Solves ax + b = c for x.

Solves a system of two linear equations using Cramer's rule.

Solution

x = 3 and x = 2

Discriminant D = 1 — two real roots

Discriminant (D)1
Vertex(2.5, −0.25)
Axis of symmetryx = 2.5
Y-intercept6
OpensUpward

Step-by-step solution

  1. Identify the coefficients: a = 1, b = −5, c = 6.
  2. Discriminant: D = b² − 4ac = (−5)² − 4(1)(6) = 1.
  3. D > 0, so there are two distinct real roots.
  4. x = (−b ± √D) ÷ 2a = (5 ± √1) ÷ 2.
  5. x = 3 and x = 2.
  6. Vertex: (−b/2a, f(−b/2a)) = (2.5, −0.25); axis of symmetry x = 2.5; y-intercept 6.

Enter a value to see the conversion result

Copied!

Parabola Graph

 Parabola: y = x² − 5x + 6  Roots: x = 3, x = 2  Vertex: (2.5, −0.25)

The graph shows y = ax² + bx + c with its roots and vertex marked.

Search Tools

Understanding Algebra Solutions

Algebra solves quadratic equations, linear equations and systems of equations step by step. The quadratic formula gives the roots of ax² + bx + c = 0, the discriminant shows how many roots there are, and the vertex gives the turning point of the parabola. Linear equations are solved by isolating x, and systems of two equations are solved with the Cramer rule.

Unit Type Unit Name Value in Worked example
Quadratic Discriminant of x² − 5x + 6 D = 1
Quadratic Roots of x² − 5x + 6 x = 3 and x = 2
Quadratic Vertex of x² − 5x + 6 (2.5, −0.25)
Linear Solution of 3x + 7 = 22 x = 5
System Solution of 2x + 3y = 12, x − y = 1 x = 3, y = 2

Conversion Tip

The discriminant D = b² − 4ac tells you the roots before you finish: D > 0 two real roots, D = 0 one double root, D < 0 two complex roots.


Quick Reference

  • Quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a
  • Discriminant: D = b² − 4ac
  • Vertex: (−b/2a, f(−b/2a))
  • Linear: x = (c − b) ÷ a
  • Cramer rule: det = a1b2 − a2b1
Copied!

How the Algebra Calculator Works

The Algebra Calculator solves three kinds of equations step by step. Choose Quadratic to solve ax² + bx + c = 0 with the quadratic formula, Linear to solve ax + b = c for x, or System to solve two simultaneous equations with Cramer's rule. Every answer shows the working, so you can follow each step and check it by hand.

The quadratic formula

Any quadratic equation ax² + bx + c = 0 can be solved with the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a. Substitute a, b and c, evaluate the discriminant, then compute the two roots. For example, x² − 5x + 6 = 0 has a = 1, b = −5 and c = 6. The discriminant is D = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2.

The discriminant

The discriminant D = b² − 4ac tells you what kind of roots to expect before you finish the calculation. If D > 0, the equation has two distinct real roots and the parabola crosses the x-axis twice. If D = 0, there is exactly one (double) root — for example, x² + 2x + 1 = 0 has the double root x = −1. If D < 0, the roots are complex: x² + x + 1 = 0 has D = −3, so the roots are x = −0.5 ± 0.866i and the parabola never touches the x-axis.

Vertex and axis of symmetry

The vertex is the turning point of the parabola y = ax² + bx + c. It sits at x = −b/2a, with y = f(−b/2a), and the line x = −b/2a is the axis of symmetry. For x² − 5x + 6, the vertex is (2.5, −0.25) and the axis of symmetry is x = 2.5. The parabola opens upward when a > 0 and downward when a < 0, and it crosses the y-axis at c.

Linear equations: solving for x

To solve a linear equation ax + b = c, isolate x: first move b to the other side, then divide by a. For 3x + 7 = 22, subtract 7 from both sides to get 3x = 15, then divide by 3 to get x = 5. The calculator shows both steps and checks the answer by substituting it back into the original equation.

Systems of equations: Cramer's rule

A system a₁x + b₁y = c₁ and a₂x + b₂y = c₂ is solved with Cramer's rule. Compute the determinant det = a₁b₂ − a₂b₁, then x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det. For 2x + 3y = 12 and x − y = 1, det = −5, x = 3 and y = 2. If det = 0, the lines are parallel or identical and there is no unique solution.

Frequently Asked Questions

How do you solve a quadratic equation?

Use the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. For example, x² − 5x + 6 = 0 has a = 1, b = −5 and c = 6, so the discriminant is D = 25 − 24 = 1 and x = (5 ± 1) ÷ 2, giving x = 3 and x = 2. The calculator above shows every substitution step and plots the parabola.

What is the discriminant?

The discriminant is D = b² − 4ac. If D > 0, the equation has two distinct real roots; if D = 0, it has one double root; and if D < 0, it has two complex roots. The discriminant also tells you how many times the parabola crosses the x-axis: twice, once, or never.

What if the discriminant is negative?

A negative discriminant means the roots are complex numbers, written as a ± bi. For x² + x + 1 = 0, D = −3, so the roots are x = −0.5 ± 0.866i. The parabola never crosses the x-axis, but it still has a vertex — here (−0.5, 0.75) — which the graph shows.

How do you solve for x in a linear equation?

Isolate x by undoing the operations around it. For 3x + 7 = 22, subtract 7 from both sides to get 3x = 15, then divide by 3 to get x = 5. In general, ax + b = c gives x = (c − b) ÷ a, as long as a is not zero.

How do you solve two equations with two unknowns?

Use Cramer's rule. For 2x + 3y = 12 and x − y = 1, det = 2×(−1) − 1×3 = −5, x = (12×(−1) − 1×3) ÷ (−5) = 3 and y = (2×1 − 1×12) ÷ (−5) = 2. The calculator shows the determinant and both substitutions step by step.

What is the vertex of a parabola?

The vertex is the turning point of the parabola y = ax² + bx + c, located at (−b/2a, f(−b/2a)). For x² − 5x + 6 the vertex is (2.5, −0.25) and the axis of symmetry is x = 2.5. The vertex is a minimum when the parabola opens upward (a > 0) and a maximum when it opens downward (a < 0).

Algebra Calculator Guide

An algebra calculator solves equations and shows each step, so you can check your working and learn the method. This calculator handles three kinds of problem: quadratic equations, linear equations, and systems of two equations. Enter the coefficients and the calculator gives the roots, the vertex of the parabola, and a graph.

The quadratic formula

A quadratic equation has the form ax² + bx + c = 0. Its roots come from the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. For example, x² − 5x + 6 = 0 has a = 1, b = −5 and c = 6. The discriminant is D = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, which gives x = 3 and x = 2.

The discriminant

The discriminant D = b² − 4ac tells you what kind of roots to expect. When D is greater than zero there are two different real roots. When D equals zero there is one double root. When D is less than zero there are two complex roots. For x² + x + 1 = 0, D = −3, so the roots are −0.5 ± 0.866i.

Solving for x

To solve a linear equation ax + b = c, isolate x by subtracting b from both sides and then dividing by a, so x = (c − b) ÷ a. For 3x + 7 = 22, subtract 7 to get 3x = 15, then divide by 3 to get x = 5. If a is zero, the equation is not linear in x and has no single solution.

Systems of equations

A system of two equations in two unknowns is solved here with Cramer rule. The determinant is det = a1b2 − a2b1, and x = (c1b2 − c2b1) ÷ det while y = (a1c2 − a2c1) ÷ det. For 2x + 3y = 12 and x − y = 1, the determinant is −5, giving x = 3 and y = 2. When the determinant is zero the lines are parallel or identical and there is no unique solution.

© 2026 Universal Converter. All rights reserved.

Developed By Bahlool Hanif

Accurate conversion for everyone, everywhere.