Arithly

← All maths topics

Solve for X Calculator

This solve for x calculator finds the value of x in a linear equation — including equations with x on both sides and equations with brackets. Type your equation into Arithly on the home page, and you get hints first, then the full step-by-step solution on the whiteboard.

Every solve-for-x question is the same game: undo whatever has been done to x, in reverse order, doing the same thing to both sides so the equation stays balanced. Expand brackets first, collect the x terms on one side, and finish by dividing. No sign-up, no cost — and the solver works in 32 languages.

Brackets on both sides: expand everything first

When both sides carry brackets, the reliable order is: expand every bracket, then collect the x terms on one side, then the numbers on the other. Trying to move terms before expanding is the classic way to lose a term — the 2 in 2(x + 9) multiplies the 9 as well, and forgetting that is the single most common slip.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Solve 5x + 3 = 2x + 15

  1. Collect the x terms on one side and the numbers on the other — subtract 2x from both sides (5 − 2 = 3) and subtract 3 from both sides (15 − 3 = 12): 3x = 12.
  2. Divide both sides by 3: x = 12 ÷ 3 = 4.

Answer: x = 4

Worked note — brackets on both sides

Solve 3(x + 2) = 2(x + 9)

  1. Expand both brackets: 3x + 6 = 2x + 18.
  2. Subtract 2x from both sides: x + 6 = 18.
  3. Subtract 6: x = 12.

Answer: x = 12

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

Related topics

Algebra hub

All of Arithly's algebra topics, from linear equations to quadratics.

Math Equation Solver

Equations of every school type, solved with the working shown.

Expanding Double Brackets

The bracket skills these equations depend on.

Changing the Subject

Rearranging formulas so a different letter becomes the subject.

Simultaneous Equations

Two equations, two unknowns — the next step up.

Absolute Value Equations & Inequalities

Equations with a modulus split into two plain equations.

More topics: all maths topics · Next topic: Simplify Calculator

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.