πAI Math Solver

Calculators

Algebra Calculator

An algebra calculator that solves any equation you type: pick the variable, get the solution — linear, quadratic, brackets, variables on both sides.

Type any equation, pick the letter to solve for, click Calculate.

solve for
Type or handwrite the full problem — the AI will solve it and explain every step

How to use this algebra calculator

Type one equation, pick the letter, click Calculate. This algebra calculator solves whatever sits in the box, instantly and right on the page.

  • Equation (one = sign) — any equation with a single unknown. The box comes preloaded with 3(x−2)=123(x - 2) = 12; press Calculate and the algebra calculator answers x=6x = 6. Linear equations, brackets, fractions such as 5x/2+1=45x/2 + 1 = 4, and quadratics such as x2−9=0x^2 - 9 = 0 all work.
  • Solve for — the letter you are hunting. Leave it on x for most homework; switch to y, z, t, or n when the equation uses a different letter.
  • Press Calculate and the solution comes back in one line — x=6x = 6 for the preloaded equation — solved the same way every example below is solved by hand.

The algebra calculator handles the rearranging and the arithmetic; the rest of this page opens the box and shows every move slowly.

This page is more than a static algebra calculator — it is also an AI tutor you can ask questions:

  • Ask in plain words. “Twice a number plus three gives seven — what is the number?” The AI turns the sentence into 2x+3=72x + 3 = 7 and solves it step by step.
  • Take a photo of your homework. No typing: the AI reads the equation straight off the page and solves it step by step.
  • Ask about the ideas, not just the number. “Why do we add 6 to both sides?” The AI explains the move — and you can check every number against the algebra calculator on this page, so nothing is guessed.
  • Work backwards, then keep asking. Give the AI a word problem to turn into an equation, or an answer and ask for the equation behind it. Follow-ups are welcome, so ask “why?” as often as you need: this algebra calculator page keeps teaching.

What algebra involves

Algebra begins with one small move: replace the unknown number with a letter. Instead of “some number that, when doubled and increased by 3, gives 7,” you write 2x+3=72x + 3 = 7. The letter xx holds the seat of a number you do not know yet, and the equation becomes a question you can answer with moves instead of guessing.

Every equation is also a balance scale. The = sign is the pivot; the two sides weigh the same. Picture 3(x−2)3(x - 2) on the left pan and 1212 on the right:

3(x−2)=123(x - 2) = 12

Remove something from one pan and the scale tips — unless you remove the same thing from the other pan too. That single picture powers every move an algebra calculator makes: whatever you do to one side, do to the other, and the equality survives. Solving is a sequence of legal moves that leaves the letter alone on one pan and a number on the other.

This is why algebra is worth learning even with an algebra calculator on the page: the tool makes the moves at speed, but the balance picture is what tells you whether a move is legal at all. The rest of this page walks those moves slowly — brackets, squares, and letters on both sides included.

How equations are solved

The balance method is the whole toolkit for solving equations. Four legal moves exist, and each one keeps the scale level:

MoveWhat it is forExample effect
Add the same thing to both sidesundoes a subtractionx−2=4x - 2 = 4 becomes x=4+2x = 4 + 2
Subtract the same thing from both sidesstrips a constant off the variable side3x−6=123x - 6 = 12 becomes 3x=183x = 18
Multiply both sides by the same numberclears a fraction such as 5x2\dfrac{5x}{2}multiply by 2 and only 5x5x remains
Divide both sides by the same numberremoves a coefficient3x=183x = 18 becomes x=6x = 6

One habit falls out of the table, and it is the one teachers watch for: moving a term across the = sign flips its sign. Subtracting 6 from both sides of 3x−6=123x - 6 = 12 is the same as letting the −6-6 cross the pivot and land as +6+6 on the right: 3x=12+63x = 12 + 6. The sign flip is not a new rule — it is subtraction viewed from the far side of the scale.

Play the moves in order — clear brackets, collect the letters on one side, strip the constants, divide out the coefficient — and any equation shrinks to x=numberx = \text{number}. The algebra calculator above runs exactly this sequence; the three examples below walk it by hand.

Example 1 - brackets and a linear equation

Solve 3(x−2)=123(x - 2) = 12 — the equation preloaded in the algebra calculator above.

  1. Expand the brackets: 3(x−2)=3x−63(x - 2) = 3x - 6, so the equation reads 3x−6=123x - 6 = 12.
  2. Add 6 to both sides: 3x=12+6=183x = 12 + 6 = 18.
  3. Divide both sides by 3: x=18÷3=6x = 18 \div 3 = 6.
  4. Check by substituting: 3(6−2)=3×4=123(6 - 2) = 3 \times 4 = 12. Both sides agree, so x=6x = 6 is the solution.

There is a second, faster route worth seeing: divide both sides by 3 first, which gives x−2=4x - 2 = 4, then add 2 to land on x=6x = 6 — the same answer by a shorter path. Two legal routes, one solution: that is normal in algebra, and it is why checking the answer matters more than admiring the route.

Type 3(x−2)=123(x - 2) = 12 into the algebra calculator above and it returns x=6x = 6 in one click. The four hand steps are the same moves the algebra calculator makes — expand, strip the constant, divide, check — just slow enough to copy into a notebook.

Example 2 - a quadratic

Solve x2−9=0x^2 - 9 = 0. A square changes the game: there can be two answers, and this one has exactly two.

  1. Recognize the difference of squares: x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3).
  2. Apply the zero product property: if (x−3)(x+3)=0(x - 3)(x + 3) = 0, then x−3=0x - 3 = 0 or x+3=0x + 3 = 0 — a product can be zero only through one of its factors.
  3. Solve each small equation: x=3x = 3 or x=−3x = -3.
  4. Check both: 32−9=03^2 - 9 = 0 and (−3)2−9=9−9=0(-3)^2 - 9 = 9 - 9 = 0. Both work.

So the full answer is x=3x = 3 or x=−3x = -3. Reporting only one of them is the classic half-answer — both roots belong in the final line.

The algebra calculator handles this input as-is: type x2−9=0x^2 - 9 = 0 and both roots come back together, because the solver factors rather than guesses. When a square appears in your homework, pause before circling the first root and ask whether a second is waiting. For quadratics that refuse to factor, the quadratic formula calculator page on this site gives the method that always works.

Example 3 - variables on both sides

Solve 5x=2x+65x = 2x + 6. The letter now sits on both sides of the pivot, which looks harder than it is. The routine does not change — collect the letters first.

  1. Subtract 2x2x from both sides so every xx lands on the left: 5x−2x=65x - 2x = 6, so 3x=63x = 6.
  2. Divide both sides by 3: x=2x = 2.
  3. Check both originals: 5(2)=105(2) = 10 and 2(2)+6=102(2) + 6 = 10. The two sides match, so x=2x = 2 is the solution.

The order matters. Had you divided by 5 first, the 2x2x would ride along into fraction territory and the tidying would only get longer. Gathering the letters onto one side before anything else is almost always the cheaper first move, and it is the one the algebra calculator makes on inputs of this shape.

Two habits survive every equation on this page: collect before you divide, and substitute the answer back in before writing it on the homework line. The algebra calculator above runs both habits on every input, including this one.

Three Common Algebra Calculator Mistakes

Three slips the algebra calculator catches every day. In each one the tool stays right and the handwriting goes wrong:

  1. Moving a term without flipping its sign. From 3x−6=123x - 6 = 12, the −6-6 that crosses the = sign lands as +6+6: 3x=183x = 18. Let it cross as −6-6 and you get 3x=63x = 6 — a tidy-looking wrong answer. Slow down at every minus sign; that is where most lost marks live.
  2. Dividing both sides by an expression that contains the unknown. Dividing by a plain number is legal; dividing by something with xx in it can throw away a solution, because any value that makes the divisor zero quietly vanishes from the answer. Move everything to one side and factor instead — that is what the algebra calculator does internally, and it never loses a root this way.
  3. Distributing to only one term inside the brackets. 3(x−2)3(x - 2) means 3 times the xx and 3 times the 2: 3x−63x - 6, never 3x−23x - 2. Miss the second multiplication and every later line inherits the error.

One habit prevents all three: substitute your answer into the original equation before circling it. If the two sides do not match, the algebra calculator will not match you either.

Problem 1

Solve 4x + 7 = 19. Work through it with the balance method, then check your answer with the algebra calculator above.

⏱ 00:00
Page 1
Problem 2

Solve 2(x + 5) = x + 12. Expand the brackets first, collect the letters on one side, then check your answer with the algebra calculator above.

⏱ 00:00
Page 1

Frequently asked questions

1

How do I type my algebra problem?

Type the equation into the box — one = sign, one unknown, such as 3(x - 2) = 12 — pick the letter in the Solve for dropdown, and press Calculate. The algebra calculator returns the solution, x = 6 for that input, in one line. The worked examples below show every move the algebra calculator makes behind the box.

2

What is the balance method?

Treat the equation as a balance scale with the = sign as the pivot. Add, subtract, multiply, or divide both sides by the same amount and the scale stays level; repeat until the letter stands alone. Moving a term across the = sign flips its sign, which is just subtraction seen from the other pan. The balance method is the engine inside every algebra calculator run.

3

How do I solve equations with variables on both sides?

Collect the letters on one side first. From 5x = 2x + 6, subtract 2x from both sides to get 3x = 6, then divide by 3 to find x = 2. Gather first, divide second — the same order the algebra calculator uses.

4

What can an algebra calculator solve?

Anything with one = sign and one unknown — linear, brackets, fractions, and quadratics. Type x^2 - 9 = 0 and the algebra calculator returns both roots, x = 3 and x = -3, in one line. For quadratics that resist factoring, the quadratic formula calculator page solves them from a, b, and c directly.

5

What is the difference between an expression and an equation?

An expression is a phrase, like 2x + 3 — it has no = sign and nothing to solve. An equation is a claim, like 2x + 3 = 7, and solving means finding the values that make the claim true. This algebra calculator handles equations; the simplify calculator page handles expressions.

Related practice