Algebra calculator and equation solvers

Type an algebra problem below to solve it with free, numbered steps, or pick the calculator for your problem type. Answers are exact where possible, such as x=5±132x = \frac{5 \pm \sqrt{13}}{2}, with decimals alongside.

11 calculatorsBy Hira Noor, mathematicianLast reviewed

Algebra calculator

Solve equations, systems and inequalities, or start with factor, expand or simplify. Use ^ for powers, as in x^2.

Try:

Calculators in Algebra & Equations

Factoring Calculator

Factor a polynomial completely, with each step labeled by method and a check by expanding.

Slope Calculator

Slope from two points, an equation or rise and run, as a fraction, angle and percent grade, with steps.

Inequality Calculator

Linear, compound, absolute-value, quadratic and rational inequalities solved step by step.

Cubic Equation Solver

Exact and complex roots of ax³ + bx² + cx + d = 0 with the discriminant, steps and a root check.

Polynomial Root Finder

All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.

Equation Solver

Solve any equation in x: exact steps for linear and quadratic equations, numerical roots for the rest.

Midpoint Calculator

Midpoint of two points in 2D or 3D, with steps, distance, a graph and the missing-endpoint solver.

Which algebra calculator do I need?

The box above solves any single problem. Each dedicated calculator adds what one box cannot, such as a graph, a sign chart or every row operation. Each example below opens the math solver with that problem already solved.

Algebra problem types, an example of each and the calculator to use
Problem typeExample (opens solved)Calculator
Linear equation in one variable3x + 5 = 20Math solver
Quadratic equationx² − 5x + 6 = 0Quadratic formula calculator
Cubic equationx³ − 6x² + 11x − 6 = 0Cubic equation calculator
Polynomial of degree 4 to 10x⁴ − 5x² + 4 = 0Polynomial root finder
System of 2 to 4 linear equations2x + 3y = 7, x − y = 1System of equations calculator
Polynomial or rational inequalityx² − 5x + 6 < 0Inequality calculator
Equation with no algebraic formulacos x = xEquation solver
Slope of a line through two pointsslope of (1, 2) and (3, 4)Slope calculator
Factor a polynomialfactor x² − 5x + 6Factoring calculator
Simplify an expressionsimplify (x² − 1)/(x − 1)Math solver
Expand bracketsexpand (x + 1)²Math solver
Midpoint of two points(−2, 7) and (6, −3) → (2, 2)Midpoint calculator
Complex number arithmetic(3 + 2i)(1 − i)Complex number calculator
Rectangular to polar form1 + i = √2 ∠ 45°Polar to rectangular calculator

Basic rules of algebra

These rules say which rearrangements leave an expression or equation unchanged. When people list the five basic rules of algebra, they usually mean the commutative and associative rules for addition and multiplication, plus the distributive rule.

The basic rules of algebra, with an example of each
RuleWhat it saysExample
CommutativeOrder does not matter when adding or multiplying: a+b=b+aa + b = b + a and ab=baab = ba3+x=x+33 + x = x + 3
AssociativeGrouping does not matter when adding or multiplying: (a+b)+c=a+(b+c)(a + b) + c = a + (b + c)2(3x)=(2⋅3)x=6x2(3x) = (2 \cdot 3)x = 6x
DistributiveMultiplying a sum multiplies each term: a(b+c)=ab+aca(b + c) = ab + ac3(x+4)=3x+123(x + 4) = 3x + 12
IdentityAdding 0 or multiplying by 1 changes nothing: a+0=aa + 0 = a and a⋅1=aa \cdot 1 = ax⋅1=xx \cdot 1 = x
InverseAdding the opposite gives 0, and multiplying by the reciprocal gives 1 (for a≠0a \ne 0)x−7+7=xx - 7 + 7 = x
EqualityDoing the same thing to both sides of an equation keeps it truex−7=2x - 7 = 2, so x=9x = 9

How to solve algebra problems

Algebra uses letters, called variables, to stand for unknown numbers. Solving a problem means finding the values that make a statement true, using steps that keep both sides of an equation equal. Each type of problem has a standard method.

  1. Linear equations

    Do the same operation to both sides until the variable stands alone: undo addition and subtraction first, then multiplication and division.

  2. Quadratic equations

    Factor if the numbers allow it. Otherwise use the quadratic formula x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}, which always works.

  3. Systems of equations

    Use substitution or elimination to remove one variable at a time until a single equation in one unknown is left.

  4. Inequalities

    Solve the matching equation, then test one point in each interval between its roots to see where the inequality holds.

Start by naming the problem type, then open the matching calculator from the table above. Each one shows its working, so you can compare it with your own line by line. Step-by-step guides cover quadratic equations, systems of two equations and quadratic inequalities.

Worked examples with steps

Solve a linear equation: 3x + 5 = 20

  1. Subtract 5 from both sides

    This moves the constant to the right: 3x=153x = 15.

  2. Divide both sides by 3

    This leaves xx alone: x=5x = 5.

  3. Check the answer

    Substitute it back: 3(5)+5=203(5) + 5 = 20, which is true.

Solve a quadratic equation: x² − 5x + 6 = 0

  1. Read off the coefficients

    a=1a = 1, b=−5b = -5 and c=6c = 6.

  2. Find the discriminant

    b2−4ac=25−24=1b^2 - 4ac = 25 - 24 = 1. It is positive, so there are two real roots.

  3. Apply the quadratic formula

    x=5±12x = \frac{5 \pm \sqrt{1}}{2}, which gives x=3x = 3 or x=2x = 2.

  4. Check by factoring

    (x−2)(x−3)=x2−5x+6(x - 2)(x - 3) = x^2 - 5x + 6, so both roots are correct.

Solve a quadratic inequality: x² − 5x + 6 < 0

  1. Solve the matching equation

    From the example above, x2−5x+6=0x^2 - 5x + 6 = 0 has roots x=2x = 2 and x=3x = 3.

  2. Split the number line

    The roots make three intervals: (−∞,2)(-\infty, 2), (2,3)(2, 3) and (3,∞)(3, \infty).

  3. Test one point in each interval

    x=0x = 0 gives 6 (positive), x=2.5x = 2.5 gives −0.25-0.25 (negative) and x=4x = 4 gives 2 (positive).

  4. Keep the negative interval

    The inequality is strict, so the endpoints 2 and 3 are not included.

Answer2<x<32 < x < 3, or (2,3)(2, 3) in interval notation. Solve it with the inequality calculator.

About these calculators

Where an exact answer exists, these solvers give it: x2−2x−1=0x^2 - 2x - 1 = 0 gives x=1±2x = 1 \pm \sqrt{2} rather than only 2.4142 and −0.4142. Decimal values are shown alongside so you can check against a handheld calculator.

Complex results are handled too. The polynomial root finder returns every root, real or complex, and the complex number calculator works in rectangular and polar form.

All of these calculators are free, need no account and run in your browser, and every step is shown with nothing locked. Results are checked against reference values by automated tests; the methodology page describes how.

Frequently asked questions

Is this algebra calculator free, and does it show steps?

Yes. Every calculator here is free, needs no account and shows the full steps right away, with nothing locked. Each step names the rule or method it uses.

What kinds of algebra problems can it solve?

Linear, quadratic and cubic equations, polynomials up to degree 10, systems of 2 to 4 linear equations, polynomial and rational inequalities, and equations such as cos x = x that need a numerical method. The math solver also factors, expands and simplifies expressions. It reads typed math only, not photos or word problems.

Can it solve systems of equations?

Yes, for linear systems. The system of equations calculator solves 2 to 4 equations by Gauss–Jordan elimination with exact fractions, lists every row operation and says whether there is one solution, none or infinitely many.

How do I type an algebra problem?

Use ^ for powers, as in x^2, and leave out the multiplication sign if you like, as in 3x or 2(x + 1). Separate the equations of a system with commas. To factor, expand or simplify, start with that word, for example "factor x^2 - 5x + 6".

What does it mean when a solver says there are no real solutions?

The equation has no solution among the real numbers, but it may have complex solutions. Quadratic and polynomial solvers list complex roots in the form a + bi when they exist.

Can a handheld calculator do algebra?

Partly. Many scientific calculators have an equation mode that solves set types, such as quadratics or small linear systems, and gives only the answers. Simplifying or factoring expressions with letters, or showing steps, needs a calculator with a computer algebra system (CAS) or software such as these free calculators. For number work on screen, use the scientific calculator.

Which method do the solvers use?

Exact formulas where they exist (the quadratic formula, the rational root theorem, Gaussian elimination with fractions) and proven numerical methods otherwise. Each calculator page names its method in the Formula section.