Lesson illustration

Rearranging Formulas to Isolate a Variable

Hello again. In the previous lesson, you solved linear equations such as 4x+7=x+194x+7=x+19 by applying the same operation to both sides until xx stood alone. Rearranging a formula uses exactly that balancing logic, but the answer is usually not a single number. Instead, it is an expression involving the other variables.

In this lesson, you will make a chosen variable the subject of a formula. This is a practical algebra skill: later, model equations will relate inputs, predictions, errors, and parameters, and you will often need to express one quantity in terms of the others.


From solving for a number to solving for a variable

A formula describes a relationship among quantities. For example, distance dd, speed vv, and time tt satisfy

d=vtd=vt

When dd and vv are known, the time is found by isolating tt.

d=vtd=vt

Because tt is multiplied by vv, divide both sides by vv:

dv=vtv\frac{d}{v}=\frac{vt}{v} dv=t\frac{d}{v}=t

It is conventional to write the target variable on the left:

t=dvt=\frac{d}{v}

This does not mean that tt has a particular numerical value yet. It says how to calculate time from distance and speed once numbers are supplied.

While rearranging, treat every letter other than your target as a known quantity. For example, when solving d=vtd=vt for tt, the vv acts like a coefficient: it is multiplying tt.

The crucial condition is the same as before:

Every operation applied to one side of an equation must also be applied to the other side.

Khan Academy’s short explanation connects formula rearrangement directly to the equation-solving method you already know.

{"type":"reading","par_intro":"Read Khan Academy’s “Isolating quantities” lesson for its concise statement of why a rearranged formula remains equivalent to the original.","par_directions":"In the subsection “Like solving equations, but with more variables,” read <span data-type=\"resource_reading_textrange\" data-resource-subitem-id=\"9cf75116\" data-range-start=\"Isolating quantities is similar to solving equations.\" data-range-end=\"until the desired quantity is isolated.\">the main explanation</span>. Then read the numbered three-step method immediately afterward. Focus on the idea that the desired letter ends alone, while the other variables remain as part of an expression.","learning_duration":"5 minutes","url":"https://www.khanacademy.org/test-prep/v2-sat-math/x0fcc98a58ba3bea7:advanced-math-easier/x0fcc98a58ba3bea7:isolating-quantities-easier/a/v2-sat-lesson-isolating-quantities","title":"Isolating quantities | Lesson (article) | Khan Academy","isV2":true,"blockId":"697d901c-823b-4bdd-8315-5b17330b261a","lessonId":"599477a3-85fa-42cb-8f08-60c5bcf94ed7"}




A reliable method: remove everything attached to the target

To rearrange a formula, identify the target variable and ask: what operations are being done to it? Then undo those operations in reverse order.

Suppose you want to solve

y=3x+4y=3x+4

for xx.

The xx is first multiplied by 33, then 44 is added. Undo the addition first by subtracting 44 from both sides:

y4=3x+44y-4=3x+4-4 y4=3xy-4=3x

Now divide both sides by 33:

y43=3x3\frac{y-4}{3}=\frac{3x}{3} y43=x\frac{y-4}{3}=x

Finally, place the isolated variable on the left:

x=y43x=\frac{y-4}{3}

The parentheses in the numerator matter. You are dividing the entire expression y4y-4 by 33, not just dividing 44 by 33.

A useful written workflow is:

  1. Write the original formula and clearly identify the target variable.
  2. Undo additions and subtractions attached to the target.
  3. Undo multiplication or division attached to the target.
  4. If the target is squared, cubed, or otherwise powered, undo the power last with the appropriate root.
  5. Check the result by substituting it into the original formula.
{
  "type": "exercise",
  "id": "d9c14389-7ff7-4c4c-867f-7258af5ff46c"
}

A geometric example: finding a triangle’s height

The area of a triangle is

A=bh2A=\frac{bh}{2}

where AA is area, bb is base length, and hh is height. Suppose the target is hh.

{"type":"image","url":"https://ichef.bbci.co.uk/images/ic/480x270/p0d1wjck.png","caption":"The diagram identifies the base \\(b\\), perpendicular height \\(h\\), and area \\(A\\) of a triangle, then shows how multiplying by \\(2\\) and dividing by \\(b\\) isolates \\(h\\).","isV2":true,"blockId":"dad92a09-a41a-4c57-9131-2ad1d948d26f","lessonId":"599477a3-85fa-42cb-8f08-60c5bcf94ed7"}



The expression bh2\frac{bh}{2} means that bb and hh are multiplied, and then their product is divided by 22. Start by undoing the division by 22: multiply both sides by 22.

2A=bh2A=bh

Now hh is multiplied by bb, so divide both sides by bb:

2Ab=bhb\frac{2A}{b}=\frac{bh}{b} 2Ab=h\frac{2A}{b}=h

Write the target first:

h=2Abh=\frac{2A}{b}

The only restriction is that b0b\ne0, because division by zero is undefined. In context, a triangle with base 00 would not be an ordinary triangle anyway.

Watch this compact walkthrough before moving to more general examples.

{"type":"video","title":"Rearrange formulas to isolate specific variables | Linear equations | Algebra I | Khan Academy","learning_duration":148,"video_id":"eTSVTTg_QZ4","par_intro":"In “Rearrange formulas to isolate specific variables,” Khan Academy works through the triangle-area formula one balanced operation at a time.","par_directions":"Watch <span data-type=\"resource_video_timerange\" data-resource-subitem-id=\"7a5b5d53\" data-range-start=\"0\" data-range-end=\"54\">the setup</span> to connect the symbols to the diagram. Then watch <span data-type=\"resource_video_timerange\" data-resource-subitem-id=\"66c12221\" data-range-start=\"54\" data-range-end=\"101\">removing one half</span> and <span data-type=\"resource_video_timerange\" data-resource-subitem-id=\"27f03ace\" data-range-start=\"101\" data-range-end=\"148\">isolating height</span>. Notice that multiplying by \\(2\\) and dividing by \\(b\\) are performed on both sides, not merely “moved across” the equals sign.","video_duration":149,"isV2":true,"blockId":"d2aa7cf8-ca2f-457d-8e18-d0cdc24511a6","lessonId":"599477a3-85fa-42cb-8f08-60c5bcf94ed7"}




A formula you will meet in data work

A common data-science operation is standardization, which converts an original value xx into a scaled value zz:

z=xμσz=\frac{x-\mu}{\sigma}

For now, read μ\mu as a reference value and σ\sigma as a positive scaling value. You will study their statistical meanings later. Here the algebraic goal is to recover xx when zz, μ\mu, and σ\sigma are known.

The entire numerator xμx-\mu is divided by σ\sigma. Undo that division by multiplying both sides by σ\sigma:

zσ=xμz\sigma=x-\mu

Next, add μ\mu to both sides:

zσ+μ=xz\sigma+\mu=x

Therefore,

x=zσ+μx=z\sigma+\mu

This is the same pattern as ordinary equation solving, except that the “numbers” being carried through the work are symbols.

A numerical check makes the meaning concrete. Suppose

μ=50,σ=10,z=1.2\mu=50,\qquad \sigma=10,\qquad z=1.2

Then the rearranged formula gives

x=(1.2)(10)+50x=(1.2)(10)+50 x=62x=62

Put this back into the original formula:

z=625010=1.2z=\frac{62-50}{10}=1.2

So the two forms are consistent.

{
  "type": "exercise",
  "id": "f6e2ac3c-d003-4371-bde2-381eec386be4"
}

When the target is inside a power

Sometimes you first isolate a power of the target, then apply a root. Consider the volume of a cylinder:

V=πr2hV=\pi r^2h

To solve for rr, first remove the factors multiplying r2r^2. Divide both sides by πh\pi h:

Vπh=r2\frac{V}{\pi h}=r^2

Then take the square root of both sides:

r=Vπhr=\sqrt{\frac{V}{\pi h}}

For a cylinder, rr is a radius, so it cannot be negative. That is why we use the nonnegative square root here.

In a purely algebraic equation such as

r2=25r^2=25

both r=5r=5 and r=5r=-5 solve the equation. Context matters: a formula may represent a physical quantity with restrictions, while an abstract equation may allow more than one solution.

The general principle is:

  • Isolate the powered expression first, such as r2r^2.
  • Then undo the power using a root.
  • Use the context to determine whether all algebraic solutions make sense.

Check a rearranged formula

A reliable check is to substitute your rearranged expression back into the original formula and simplify.

For the formula

y=3x+4y=3x+4

you found

x=y43x=\frac{y-4}{3}

Substitute this expression for xx into the original right-hand side:

3(y43)+43\left(\frac{y-4}{3}\right)+4

The 33 cancels with the denominator:

y4+4y-4+4 yy

The original equation is recovered, so the rearrangement is correct.

You can also perform a numerical check in Python. The code below tests that converting a value of yy to xx, then putting that xx into the original formula, returns the same yy.

import math

def forward_formula(x):
    return 3 * x + 4

def solve_for_x(y):
    return (y - 4) / 3

for y in [4, 10, -2]:
    recovered_y = forward_formula(solve_for_x(y))
    assert math.isclose(recovered_y, y)

print("All checks passed.")

This kind of forward-and-reverse check is valuable in programming as well as algebra. It helps catch missing parentheses, incorrect signs, and division applied to only part of an expression.

{
  "type": "exercise",
  "id": "3773f620-7676-4362-ab29-bca4167b87c0"
}

Common mistakes to avoid

Dividing only one term

From

y4=3xy-4=3x

the correct rearrangement is

x=y43x=\frac{y-4}{3}

It is not

x=y43x=y-\frac{4}{3}

because the division by 33 must apply to all of y4y-4.

Changing a sign without a balanced operation

From

zσ=xμz\sigma=x-\mu

it may be tempting to say that “μ-\mu moves over and becomes +μ+\mu.” The actual valid step is:

zσ+μ=xμ+μz\sigma+\mu=x-\mu+\mu

which simplifies to

zσ+μ=xz\sigma+\mu=x

The shortcut phrase is harmless only if you remember the real operation behind it.

Dividing by a quantity that could be zero

From

d=vtd=vt

we obtained

t=dvt=\frac{d}{v}

This assumes v0v\ne0. In applied settings, consider whether a denominator can be zero and what that would mean for the situation.


Key takeaways

Rearranging a formula means making a requested variable stand alone on one side of an equation.

  • Use the same balanced-operation principle used for solving equations.
  • Treat non-target variables as quantities that may behave like coefficients.
  • Undo operations in reverse order, preserving parentheses when an entire expression is multiplied or divided.
  • For powers, isolate the powered term before taking a root.
  • Check by substitution, numerically or symbolically, and note any restrictions such as denominators being nonzero.

Next, you will use the same algebraic discipline with linear inequalities. The key new detail will be that multiplying or dividing an inequality by a negative number reverses its comparison sign.

Can't find a good explanation? Sign up and we'll make it for you