Solve for a Variable Calculator

Enter a formula and the letter to solve for.

An equation with letters, like A = (1/2)bh or v = u + at. Use pi for π.

The one letter to get on its own.

Try

Result

You enteredy=mx+by = mx + b

x=y−bm\displaystyle x = \frac{y - b}{m}
Show the work
  1. Isolating a letter

    To get xx on its own, undo the operations applied to it one at a time, always doing the same thing to both sides so the equation stays true. Start with the last operation applied to xx.

    y=mx+by = mx + b
  2. Subtract b from both sides

    bb is added to the part with xx, so subtract bb from both sides to undo it.

    mx=y−bmx = y - b
  3. Divide both sides by m

    xx is multiplied by mm here, so divide both sides by mm to undo the multiplication.

    x=y−bmx = \frac{y - b}{m}
  4. Result

    So x=y−bmx = \frac{y - b}{m}.

Worked examples