Skip to content

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 will use often in algebra and in everyday life is the formula for distance traveled by an object moving at a constant rate. Rate is an equivalent word for “speed.” Do you know what distance you travel if you drive at a steady rate of 6060 miles per hour for 22 hours? (This might happen if you use your car’s cruise control while driving on the highway.) If you said 120120 miles, you already know how to use this formula!

Distance, Rate, and Time. For an object moving at a uniform (constant) rate, the distance traveled, the elapsed time, and the rate are related by the formula

d=rtd = rt

where d=d = distance, r=r = rate, and t=t = time.

We will use the Strategy for Solving Applications introduced earlier in this chapter. When the problem requires a formula, we change Step 4: in place of writing a sentence, we write the appropriate formula.

Solve an application (with a formula).

  1. Read the problem. Make sure all the words and ideas are understood.
  2. Identify what we are looking for.
  3. Name what we are looking for. Choose a variable to represent that quantity.
  4. Translate into an equation. Write the appropriate formula for the situation. Substitute in the given information.
  5. Solve the equation using good algebra techniques.
  6. Check the answer in the problem and make sure it makes sense.
  7. Answer the question with a complete sentence.

You may want to create a mini-chart to summarize the information in the problem, as in the first example below.

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

Step
Step 1. Read the problem.
Step 2. Identify what we are looking for.distance traveled
Step 3. Name. Choose a variable.Let d=d = distance.
Step 4. Translate. Write the formula, with r=12r = 12 mph, t=312t = 3\tfrac{1}{2} hours.d=rtd = rt
Substitute in the given information.d=12312d = 12 \cdot 3\tfrac{1}{2}
Step 5. Solve the equation.d=42d = 42 miles
Step 6. Check. Does 4242 miles make sense? Jamal rides 1212 miles in 11 hour, 2424 miles in 22 hours, 3636 miles in 33 hours — so 4242 miles in 3123\tfrac{1}{2} hours is reasonable.
Step 7. Answer the question with a complete sentence.Jamal rode 4242 miles.

Lindsay drove for 5125 \tfrac{1}{2} hours at 60 miles per hour. How much distance did she travel?

Example. Rey is planning to drive from his house in San Diego to visit his grandmother in Sacramento, a distance of 520520 miles. If he can drive at a steady rate of 6565 miles per hour, how many hours will the trip take?

We identify that we are looking for time, so let t=t = time. We know d=520d = 520 miles and r=65r = 65 mph.

d=rt520=65td = rt \qquad\qquad 520 = 65t

Dividing both sides by 6565 gives t=8t = 8. We check by substituting back into the formula: 520=?658520 \overset{?}{=} 65 \cdot 8, and indeed 520=520520 = 520. ✓ Rey’s trip will take 88 hours.

Lee wants to drive from Phoenix to his brother's apartment in San Francisco, a distance of 770 miles. If he drives at a steady rate of 70 miles per hour, how many hours will the trip take?

Yesenia is 168 miles from Chicago. If she needs to be in Chicago in 3 hours, at what rate does she need to drive?

Solve a Formula for a Specific Variable

You are probably familiar with some geometry formulas. A formula is a mathematical description of the relationship between variables. Formulas are also used in the sciences, such as chemistry, physics, and biology. In medicine they are used for calculations for dispensing medicine or determining body mass index. Spreadsheet programs rely on formulas to make calculations. It is important to be familiar with formulas and be able to manipulate them easily.

In the two examples above, we used the formula d=rtd = rt. This formula gives the value of dd, distance, when you substitute in the values of rr and tt. But in the second example, we had to find the value of tt — we substituted values of dd and rr and then used algebra to solve for tt. If you had to do this often, you might wonder why there is not a formula that gives the value of tt directly when you substitute in the values of dd and rr. We can make a formula like this by solving the formula d=rtd = rt for tt.

To solve a formula for a specific variable means to isolate that variable on one side of the equals sign with a coefficient of 11. All other variables and constants are on the other side of the equals sign. To see how to solve a formula for a specific variable, we will start with the distance, rate, and time formula.

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

We write the solutions side-by-side to demonstrate that solving a formula in general uses the same steps as when we have numbers to substitute.

(a) when d=520d = 520 and r=65r = 65(b) in general
Write the formula.d=rtd = rtd=rtd = rt
Substitute.520=65t520 = 65t
Divide, to isolate tt.52065=65t65\tfrac{520}{65} = \tfrac{65t}{65}dr=rtr\tfrac{d}{r} = \tfrac{rt}{r}
Simplify.8=t8 = tdr=t\tfrac{d}{r} = t

We say the formula t=drt = \tfrac{d}{r} is solved for tt.

A truck driver travels 315 miles in 6.3 hours. Solve the formula d=rtd = rt for r to find the rate, in miles per hour.

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

(a) when A=90A = 90 and b=15b = 15(b) in general
Write the formula.A=12bhA = \tfrac{1}{2}bhA=12bhA = \tfrac{1}{2}bh
Substitute.90=1215h90 = \tfrac{1}{2} \cdot 15 \cdot h
Clear the fractions (multiply both sides by 22).290=21215h2 \cdot 90 = 2 \cdot \tfrac{1}{2} \cdot 15h2A=212bh2 \cdot A = 2 \cdot \tfrac{1}{2}bh
Simplify.180=15h180 = 15h2A=bh2A = bh
Solve for hh.12=h12 = h2Ab=h\tfrac{2A}{b} = h

We can now find the height of a triangle, if we know the area and the base, by using the formula h=2Abh = \tfrac{2A}{b}.

Use the formula A=12bhA = \tfrac{1}{2}bh to solve for h, in general.

Use the formula A=12bhA = \tfrac{1}{2}bh to solve for b, in general.

The formula I=PrtI = Prt is used to calculate simple interest, II, for a principal, PP, invested at rate, rr, for tt years.

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

(a) when I=$5,600I = \text{\textdollar}5{,}600, r=4%r = 4\%, t=7t = 7 years(b) in general
Write the formula.I=PrtI = PrtI=PrtI = Prt
Substitute.5600=P(0.04)(7)5600 = P(0.04)(7)
Simplify.5600=P(0.28)5600 = P(0.28)I=P(rt)I = P(rt)
Divide, to isolate PP.56000.28=P(0.28)0.28\tfrac{5600}{0.28} = \tfrac{P(0.28)}{0.28}Irt=P(rt)rt\tfrac{I}{rt} = \tfrac{P(rt)}{rt}
Simplify.20,000=P20{,}000 = PIrt=P\tfrac{I}{rt} = P

The principal is $20,000\text{\textdollar}20{,}000.

Use the formula I = Prt to find the principal, P, in general.

Later in this class, and in future algebra classes, you’ll encounter equations that relate two variables, usually xx and yy. You might be given an equation that is solved for yy and need to solve it for xx, or vice versa. In the following example, we’re given an equation with both xx and yy on the same side and we’ll solve it for yy.

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

(a) when x=4x = 4(b) in general
3x+2y=183x + 2y = 183x+2y=183x + 2y = 18
Substitute.3(4)+2y=183(4) + 2y = 18
Subtract to isolate the yy-term.1212+2y=181212 - 12 + 2y = 18 - 123x3x+2y=183x3x - 3x + 2y = 18 - 3x
Divide.2y2=62\tfrac{2y}{2} = \tfrac{6}{2}2y2=183x2\tfrac{2y}{2} = \tfrac{18 - 3x}{2}
Simplify.y=3y = 3y=3x2+9y = -\tfrac{3x}{2} + 9

Solve the formula 3x+4y=103x + 4y = 10 for y, in general.

In the examples above, we used the numbers in part (a) as a guide to solving in general in part (b). Now we will solve a formula in general without using numbers as a guide.

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

We isolate aa on one side of the equation. Both bb and cc are added to aa, so we subtract them from both sides of the equation.

P=a+b+cP = a + b + c

Pbc=a+b+cbcP - b - c = a + b + c - b - c

Pbc=aP - b - c = a

a=Pbca = P - b - c

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

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

6x+5y=136x + 5y = 13

Subtract 6x6x from both sides to isolate the term with yy:

6x6x+5y=136x6x - 6x + 5y = 13 - 6x

5y=136x5y = 13 - 6x

Divide by 55 to make the coefficient of yy equal to 11:

5y5=136x5\frac{5y}{5} = \frac{13 - 6x}{5}

y=136x5y = \frac{13 - 6x}{5}

The fraction is already simplified — we cannot divide 136x13 - 6x by 55, since 55 does not divide evenly into both terms of the numerator.

Solve the formula 4x+7y=94x + 7y = 9 for y.

Solve the formula 5x+8y=15x + 8y = 1 for y.

Formulas from geometry can be solved for a specific variable the same way. Some familiar ones are the perimeter of a rectangle, P=2L+2WP = 2L + 2W, the circumference of a circle, C=πdC = \pi d, and the volume of a rectangular solid, V=LWHV = LWH.

Solve the formula P=2L+2WP = 2L + 2W for L.

Solve the formula P=2L+2WP = 2L + 2W for W.

Solve the formula C = pi · d for d.

Key terms

rate — an equivalent word for speed; how fast an object moves per unit of time. solve a formula for a specific variable — to isolate that variable on one side of the equals sign, with a coefficient of 11, while all other variables and constants are on the other side.


This section is adapted from Elementary Algebra 2e, Section 2.6: 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: recreated the worked-example step tables as markdown tables; omitted the Be Prepared quiz, Self Check checklist, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.