Skip to content
CalculatorFly

Algebra Calculator

Type an equation and the solution and every step appear as you type. Fractions stay exact, and everything is worked out on your device.

Equation or expression

Use + − * / ^ and parentheses. 2x means 2 × x, and 2/3x means (2/3) × x.

Try:
Solution
-

Steps

    How to use the algebra calculator

    Type an equation with one unknown, such as 3x + 5 = 2(x − 4) or x^2 − 5x + 6 = 0, and the solution appears as you type with every step shown. Any single letter can be the unknown. Write powers with ^ (or ²), use * or × for multiplication and / or ÷ for division; a number next to a letter or bracket is multiplied, so 3x(x + 1) works. Fractions and decimals are kept exact, so 0.1x + 0.2 = 0.3 gives exactly x = 1.

    Choose Simplify expression to multiply out brackets and combine like terms without solving, for example (x + 2)(x − 3) − 2(x − 1) becomes x² − 3x − 4. Quadratic expressions are also factored when they can be.

    How the equations are solved

    Both sides are first expanded into polynomials, with brackets multiplied out and like terms combined. Then:

    Cubic and higher equations are not solved, but Simplify will still expand them.

    Worked example

    Solve 2/3x − 1/4 = 5. The lowest common denominator of 3 and 4 is 12, so multiply every term by 12: 8x − 3 = 60. Add 3 to both sides: 8x = 63. Divide by 8: x = 63/8, which is 7 7/8 or 7.875. Check: 2/3 × 63/8 = 21/4, and 21/4 − 1/4 = 5.

    FAQ

    How do I type a fraction like two thirds of x?

    Type 2/3x or (2/3)x. Division and multiplication are worked left to right, so 2/3x means (2/3) × x. If you mean 2 divided by 3x, which puts x in a denominator, multiply both sides by 3x first and enter the result.

    Why does the answer show a square root instead of a decimal?

    Roots like (5 + √13)/2 cannot be written exactly as a decimal, so the exact simplified form is shown with a decimal approximation beside it. Square roots are simplified by taking out square factors, for example √8 = 2√2.

    What does "no real solution" mean?

    When b² − 4ac is negative, no real number satisfies the quadratic: its graph never crosses the x-axis. The two solutions are complex numbers, written with i, the square root of −1, such as x = (−1 ± i√3)/2 for x² + x + 1 = 0.

    Is my equation sent anywhere?

    No. The CalculatorFly algebra calculator parses and solves everything in your browser with WebAssembly. Nothing you type is uploaded or stored.