Skip to content
Solve a Formula for a Specific Variable

Solve a Formula for a Specific Variable

By the end of this section, you will be able to: use the distance, rate, and time formula, and solve a formula for a specific variable.

Use the distance, rate, and time formula

One formula you’ll use often in algebra and in everyday life is the relationship between distance, rate, and time.

Distance, Rate, and Time.

d=rtd = rt

where d=distanced = \text{distance}, r=rater = \text{rate}, and t=timet = \text{time}.

Example. Jamal rides his bike at a steady rate of 1212 miles per hour for 3123\tfrac{1}{2} hours. How much distance has he traveled?

Substituting r=12r = 12 and t=312t = 3\tfrac{1}{2} into d=rtd = rt:

d=12312d=1272d=42 miles d = 12 \cdot 3\tfrac{1}{2} \qquad\Rightarrow\qquad d = 12 \cdot \tfrac{7}{2} \qquad\Rightarrow\qquad d = 42 \text{ miles}

Jamal rode 4242 miles.

Lindsay drove for 5.5 hours at 60 miles per hour. How much distance did she travel?

Trinh walked for 2132\tfrac{1}{3} hours at 3 miles per hour. How far did she walk?

Example. Rey drives 520520 miles, at a steady rate of 6565 miles per hour. How many hours did his trip take?

Substituting d=520d = 520 and r=65r = 65 into d=rtd = rt, and then solving for tt:

520=65t52065=65t658=t 520 = 65t \qquad\Rightarrow\qquad \frac{520}{65} = \frac{65t}{65} \qquad\Rightarrow\qquad 8 = t

Rey’s trip took 88 hours.

Lee drove 770 miles at a steady rate of 70 miles per hour. How many hours did the trip take?

Yesenia drove 168 miles in 3 hours. What was her rate?

Solve a formula for a specific variable

In the distance, rate, and time examples, we substituted numbers for some of the variables in the formula before we solved for the unknown. Sometimes, though, it’s more useful to solve a formula for one specific variable in general, without substituting any numbers at all. This is called solving a formula for a specific variable, and it works the same way as solving any other equation — the object is still to isolate the variable we’re solving for, treating the other variables as if they were numbers.

Example. Solve the formula d=rtd = rt for tt: (a) when d=520d = 520 and r=65r = 65, and (b) in general.

(a) Substituting the given numbers and dividing both sides by 6565:

520=65t52065=65t658=t 520 = 65t \qquad\Rightarrow\qquad \frac{520}{65} = \frac{65t}{65} \qquad\Rightarrow\qquad 8 = t

(b) This time, there are no numbers to substitute for dd and rr. We divide both sides by rr to isolate tt, exactly as we divided by 6565 above:

d=rtdr=rtrdr=t d = rt \qquad\Rightarrow\qquad \frac{d}{r} = \frac{rt}{r} \qquad\Rightarrow\qquad \frac{d}{r} = t

We now have an equation that solves d=rtd = rt for tt in general: t=drt = \tfrac{d}{r}. Whenever we know values for dd and rr, we can substitute them into this equation to find tt.

Solve the formula d=rtd = rt for rr, when d=180d = 180 and t=4t = 4.

Solve the formula d=rtd = rt for rr, in general. Enter your answer as r = ___ (use dd and tt).

Solve the formula d=rtd = rt for rr, when d=780d = 780 and t=12t = 12.

Example. Solve the formula A=12bhA = \tfrac{1}{2}bh for hh: (a) when A=90A = 90 and b=15b = 15, and (b) in general.

(a) Substituting the given numbers:

90=12(15)h90=7.5h12=h 90 = \tfrac{1}{2}(15)h \qquad\Rightarrow\qquad 90 = 7.5h \qquad\Rightarrow\qquad 12 = h

(b) Following the same steps, without any substitutions:

A=12bh2A=212bh2A=bh2Ab=bhb2Ab=h A = \tfrac{1}{2}bh \qquad\Rightarrow\qquad 2A = 2 \cdot \tfrac{1}{2}bh \qquad\Rightarrow\qquad 2A = bh \qquad\Rightarrow\qquad \frac{2A}{b} = \frac{bh}{b} \qquad\Rightarrow\qquad \frac{2A}{b} = h

So h=2Abh = \tfrac{2A}{b}.

Solve the formula A=12bhA = \tfrac{1}{2}bh for hh, when A=170A = 170 and b=17b = 17.

Solve the formula A=12bhA = \tfrac{1}{2}bh for bb, when A=62A = 62 and h=31h = 31.

Example. Solve the formula I=PrtI = Prt for PP: (a) when I=$5,600I = \text{\textdollar}5{,}600, r=4%r = 4\%, t=7t = 7 years, and (b) in general.

(a) Substituting r=0.04r = 0.04:

5600=P(0.04)(7)5600=0.28P20,000=P 5600 = P(0.04)(7) \qquad\Rightarrow\qquad 5600 = 0.28P \qquad\Rightarrow\qquad 20{,}000 = P

(b) Following the same steps, without any substitutions, dividing both sides by rtrt:

I=PrtIrt=PrtrtIrt=P I = Prt \qquad\Rightarrow\qquad \frac{I}{rt} = \frac{Prt}{rt} \qquad\Rightarrow\qquad \frac{I}{rt} = P

So P=IrtP = \tfrac{I}{rt}.

Solve the formula I=PrtI = Prt for tt, when I=2160I = 2160, r=6%r = 6\% (0.06), and P=12000P = 12000.

Solve the formula I=PrtI = Prt for rr, when I=5400I = 5400, P=9000P = 9000, and t=5t = 5 years. Give rr as a decimal.

Formulas can also involve two variables that play a similar role, like xx and yy. We solve for one of them the same way — by isolating it on one side of the equation, treating the other variable like a number.

Example. Solve the formula 3x+2y=183x + 2y = 18 for yy: (a) when x=4x = 4, and (b) in general.

(a) Substituting x=4x = 4:

3(4)+2y=1812+2y=182y=6y=3 3(4) + 2y = 18 \qquad\Rightarrow\qquad 12 + 2y = 18 \qquad\Rightarrow\qquad 2y = 6 \qquad\Rightarrow\qquad y = 3

(b) Following the same steps, without substituting a number for xx: we subtract 3x3x from both sides, then divide by 22.

3x+2y=182y=183xy=183x2 3x + 2y = 18 \qquad\Rightarrow\qquad 2y = 18 - 3x \qquad\Rightarrow\qquad y = \frac{18 - 3x}{2}

So y=183x2y = \tfrac{18 - 3x}{2}.

Solve the formula 3x+4y=103x + 4y = 10 for yy, when x=2x = 2.

Solve the formula 3x+4y=103x + 4y = 10 for yy, in general. Enter your answer as y = ___ (an expression in xx).

Solve the formula 5x+2y=185x + 2y = 18 for yy, when x=4x = 4.

Example. Solve the formula P=a+b+cP = a + b + c for aa.

We want to isolate aa, so we subtract bb and cc from both sides:

P=a+b+cPbc=a P = a + b + c \qquad\Rightarrow\qquad P - b - c = a

So a=Pbca = P - b - c.

Solve the formula P=a+b+cP = a + b + c for bb. Enter your answer as b = ___ (an expression in PP, aa, and cc).

Solve the formula P=a+b+cP = a + b + c for cc. Enter your answer as c = ___ (an expression in PP, aa, and bb).

Example. Solve the equation 3x+y=103x + y = 10 for yy.

We isolate yy on one side of the equation by subtracting 3x3x from both sides:

3x+y=103x3x+y=103xy=103x 3x + y = 10 \qquad\Rightarrow\qquad 3x - 3x + y = 10 - 3x \qquad\Rightarrow\qquad y = 10 - 3x

Solve the formula 7x+y=117x + y = 11 for yy. Enter your answer as y = ___ (an expression in xx).

Solve the formula 11x+y=811x + y = 8 for yy. Enter your answer as y = ___ (an expression in xx).

Example. Solve the equation 6x+5y=136x + 5y = 13 for yy.

This time, the coefficient of yy isn’t 11, so after isolating the term with yy, we also need to divide by that coefficient:

6x+5y=135y=136x5y5=136x5y=136x5 6x + 5y = 13 \qquad\Rightarrow\qquad 5y = 13 - 6x \qquad\Rightarrow\qquad \frac{5y}{5} = \frac{13 - 6x}{5} \qquad\Rightarrow\qquad y = \frac{13 - 6x}{5}

Solve the formula 4x+7y=94x + 7y = 9 for yy. Enter your answer as y = ___ (an expression in xx).

Solve the formula 5x+8y=15x + 8y = 1 for yy. Enter your answer as y = ___ (an expression in xx).

Key terms

distance, rate, time formula — the relationship d=rtd = rt, where dd is distance traveled, rr is the rate (speed), and tt is time. solve a formula for a specific variable — to isolate that variable on one side of the equation, treating the other variables as if they were numbers; also called solving a literal equation.


This section is adapted from Prealgebra 2e, Section 9.7: Solve a Formula for a Specific Variable by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted the Be Prepared quiz, Links to Literacy and Media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.