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 enteredP=2l+2wP = 2l + 2w

w=P−2l2\displaystyle w = \frac{P - 2l}{2}
Show the work
  1. Isolating a letter

    To get ww 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 ww.

    P=2l+2wP = 2l + 2w
  2. Subtract 2l from both sides

    2l2l is added to the part with ww, so subtract 2l2l from both sides to undo it.

    2w=P−2l2w = P - 2l
  3. Divide both sides by 2

    ww is multiplied by 22 here, so divide both sides by 22 to undo the multiplication.

    w=P−2l2w = \frac{P - 2l}{2}
  4. Result

    So w=P−2l2w = \frac{P - 2l}{2}.

Worked examples