Pre-Algebra • Expressions, Equations & Inequalities

Solving for a Variable in Formulas — I can solve for a variable in a formula when given values for the other variables at my level.

Learn to plug in what you know and solve for what you don't in any formula.

Middle School Math emblem with sigma notation, geometric shapes, and a ruler.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Where Did Formulas Come From?

People have been using formulas (math rules that show how quantities relate) for thousands of years. Ancient builders needed to figure out how much stone to use for walls. Traders needed to calculate costs. Scientists wanted to predict how objects move.

Before we had letters like x and y, people wrote formulas out in long sentences. Once mathematicians started using variables (letters that stand for numbers), formulas became shorter and easier to use.

~1800 BCE • Babylonian Clay Tablets

Ancient Babylonians wrote formulas for area and volume using words and pictures on clay tablets. They could already solve for unknown values!

~300 BCE • Euclid's Geometry

The Greek mathematician Euclid organized geometry rules. He described formulas in sentences, such as the area of a rectangle being length times width.

~825 CE • Al-Khwarizmi's Algebra

The Persian scholar al-Khwarizmi wrote a book that gave us the word "algebra." He showed how to balance equations to find unknown values.

1637 • Descartes Uses Letters

French mathematician René Descartes started using letters like x, y, and z for unknowns. This made formulas much shorter and easier to work with.

Today, you see formulas everywhere — in science class, in cooking recipes, and even in video games. The big question is: when you know some of the values in a formula, how do you find the one you're missing? That's exactly what this lesson is about.

SECTION 2

Core Principles — What You Need to Know

Before we start solving, let's nail down a few important ideas. These are the building blocks you'll use every time you work with a formula.

1

What Is a Formula?

A formula is a math rule that uses an equals sign to show how variables are connected. Example: A = l × w.
2

What Is a Variable?

A variable is a letter that stands for a number you either know or need to find. In A = l × w, the variables are A, l, and w.
3

Substitution

Substitution means replacing a variable with a number you already know. If l = 5, you swap out the letter l and write 5 in its place.
4

Inverse Operations

Inverse operations are opposite operations that undo each other. Addition undoes subtraction. Multiplication undoes division. You use them to isolate the unknown.
5

Isolate the Variable

To isolate a variable means to get it alone on one side of the equals sign. Once it's alone, you've found its value!
✦

KEY TAKEAWAY

Think of a formula like a recipe. If a cookie recipe says "total cookies = batches × 12," and you made 36 cookies, you can figure out how many batches you baked. You just plug in what you know (36 cookies, 12 per batch) and solve for what you don't know (batches). That's all solving for a variable means!

SECTION 3

Seeing the Process — A Visual Guide

Let's look at how solving for a variable works step by step. The diagram below shows the formula for the perimeter of a rectangle: P = 2l + 2w. Suppose you know P = 20 and l = 6. Watch how we find w.

Solving P = 2l + 2w for wGIVEN:P = 20 l = 6 w = ?Formula: P = 2l + 2wSTEP 1 — Substitute20 = 2(6) + 2wSTEP 2 — Simplify20 = 12 + 2wSTEP 3 — Subtract 128 = 2wSTEP 4 — Divide by 2w = 4 ✓Rectangle Checkl = 6w = 4P = 6+4+6+4 = 20 ✓
This flowchart shows the four steps: substitute the known values, simplify, then use inverse operations to isolate the variable. The rectangle on the right confirms our answer.

Notice the pattern. We started with the formula, plugged in the numbers we knew, and then used inverse operations to peel away everything around w until it was all by itself. This same pattern works for any formula!

SECTION 4

The Math Behind It — Key Formulas

You'll run into many formulas in math and science class. Here are some common ones. For each, notice how many variables there are. If you know all but one, you can always find the missing one.

AREA OF A RECTANGLE

A=l×wA = l × w

A = area, l = length, w = width. If you know any two, solve for the third.

DISTANCE FORMULA

d=r×td = r × t

d = distance, r = rate (speed), t = time. This formula connects how far, how fast, and how long.

PERIMETER OF A RECTANGLE

P=2l+2wP = 2l + 2w

P = perimeter, l = length, w = width. Perimeter is the total distance around the outside.

TEMPERATURE CONVERSION

F=1.8×C+32F = 1.8 × C + 32

F = temperature in Fahrenheit, C = temperature in Celsius. You can solve for C if you know F.

The strategy is always the same. First, substitute the values you know into the formula. Then use inverse operations to get the unknown variable alone on one side. Finally, simplify to get your answer.

SECTION 5

Breaking It Down — The Step-by-Step Method

Every time you solve for a variable in a formula, you can follow the same checklist. The diagram below shows these steps as a roadmap you can use again and again.

Your Solving RoadmapSTEP 1Write theformulaSTEP 2Identify knowns& unknownSTEP 3Substituteknown valuesSTEP 4SimplifyarithmeticSTEP 5Use inverse opsto isolate varSTEP 6State the answer& check it!Quick Example: d = r × t, find t when d = 100 and r = 25100 = 25 × t → 100 ÷ 25 = t → t = 4Check: 25 × 4 = 100 ✓ The time is 4 hours.
This roadmap shows the six steps: write the formula, identify what you know and don't know, substitute, simplify, use inverse operations, and check. The quick example at the bottom shows d = r × t in action.
  1. Write the formula — start by writing it out so you can see all the variables.
  2. Identify knowns and unknowns — circle or list what you know and what you need to find.
  3. Substitute — replace the known variables with their number values.
  4. Simplify — do any multiplication, addition, or other arithmetic you can.
  5. Use inverse operations — undo what's being done to the unknown until it's alone.
  6. Check your answer — plug your answer back into the original formula. Does it work?

SECTION 6

Worked Example — Temperature Conversion

Let's work through a full example together. The temperature outside is 77°F. What is that in Celsius? The formula is F = 1.8 × C + 32.

Find C when F = 77

  1. 1

    Step 1 — Write the Formula

    Start with the formula: F = 1.8 × C + 32
  2. 2

    Step 2 — Identify What You Know

    You know F = 77. You need to find C.
  3. 3

    Step 3 — Substitute

    Replace F with 77: 77 = 1.8 × C + 32
    77 = 1.8 × C + 32
  4. 4

    Step 4 — Undo the Addition (Subtract 32)

    The formula adds 32, so we subtract 32 from both sides: 77 − 32 = 1.8 × C. This gives us 45 = 1.8 × C.
    45 = 1.8 × C
  5. 5

    Step 5 — Undo the Multiplication (Divide by 1.8)

    C is being multiplied by 1.8, so we divide both sides by 1.8: 45 ÷ 1.8 = C. This gives us C = 25.
    C = 25°C
  6. 6

    Step 6 — Check

    Plug C = 25 back in: 1.8 × 25 + 32 = 45 + 32 = 77. That matches F = 77, so our answer is correct!
    ✓ Confirmed: 77°F = 25°C

SECTION 7

Common Mistakes and How to Avoid Them

Even when you understand the steps, there are a few traps students often fall into. Here's a comparison of common mistakes and the correct approach.

Common MistakeWhy It's WrongCorrect Approach
Forgetting to substitute all known valuesLeaving a variable as a letter when you have its number makes the equation harder to solve.Replace every variable you know with its value before doing anything else.
Using the wrong inverse operationAdding when you should subtract (or vice versa) gives a wrong answer.Ask: "What's happening to the variable?" Then do the opposite to both sides.
Only doing the operation on one sideAn equation is like a balance scale. If you change one side, you must change the other.Whatever you do to the left side, do the same thing to the right side.
Not following order of operations when simplifyingDoing addition before multiplication during the simplify step can give the wrong number.When simplifying, always multiply and divide before you add and subtract.

Mistakes to watch for when solving for a variable

⚖️

KEY TAKEAWAY

An equation is like a seesaw that's perfectly balanced. If you put a 5-pound weight on the left side, you have to put 5 pounds on the right side too, or it tips over. When you subtract, multiply, or divide one side, always do the same to the other side to keep it balanced.

SECTION 8

Looking Ahead — From Plugging In to Rearranging

Right now, you're learning to find a variable when you already have numbers for the other variables. In future math classes, you'll learn to rearrange formulas — solving for a variable before plugging in any numbers. Here's how they compare.

FeaturePlugging In First (This Lesson)Rearranging First (Future Skill)
When do you substitute numbers?Right away, before solvingAfter you've isolated the variable with letters only
What does the answer look like?A single number (e.g., w = 4)A new formula (e.g., w = (P − 2l) ÷ 2)
Best for…One specific situation with given valuesSolving the same formula many times with different values
Difficulty levelEasier — you work with numbersHarder — you work with letters

Comparing the approach in this lesson with a more advanced approach

The good news? The inverse operation skills you're building right now are the exact same skills you'll use when you rearrange formulas later. You're building a strong foundation!

SECTION 9

Practice Problems

Try these five problems. They get harder as you go. Remember the roadmap: write the formula, substitute, simplify, use inverse operations, and check!

Question 1: CONCEPTUAL

In the formula A = l × w, you know that A = 24 and l = 8. Before you do any math, which operation will you use to find w — multiplication or division? Explain why.
Show answer
You will use division. In the formula, l is multiplied by w to get A. To undo multiplication, you use the inverse operation, which is division. You would divide 24 by 8 to get w = 3. Since 8 × 3 = 24, the answer checks out.

Question 2: BASIC CALCULATION

Use the distance formula d = r × t. A car drives at a speed of r = 50 miles per hour for t = 3 hours. What is the distance d?
Show answer
Substitute the values: d = 50 × 3. Multiply to get d = 150 miles. The car travels 150 miles. You can check by dividing: 150 ÷ 50 = 3 hours, which matches the given time.

Question 3: INTERMEDIATE

The perimeter of a rectangle is P = 2l + 2w. If the perimeter is 34 cm and the width is 5 cm, find the length l.
Show answer
Start with P = 2l + 2w. Substitute: 34 = 2l + 2(5). Simplify: 34 = 2l + 10. Subtract 10 from both sides: 24 = 2l. Divide both sides by 2: l = 12 cm. Check: 2(12) + 2(5) = 24 + 10 = 34 ✓. The length is 12 cm.

Question 4: APPLIED

You're planning a road trip. You need to travel 240 miles, and you want to arrive in 4 hours. Use d = r × t to figure out how fast you need to drive (find r). Then explain what that speed means in real life.
Show answer
Substitute: 240 = r × 4. Divide both sides by 4: r = 60 miles per hour. This means you'd need to average 60 mph for the whole trip. In real life, you'd want to leave a little extra time because you might slow down for traffic, stops, or speed limits. Check: 60 × 4 = 240 ✓.

Question 5: CRITICAL THINKING

The formula for the area of a triangle is A = (1/2) × b × h. If the area is 30 square inches and the base b is 10 inches, find the height h. Hint: think of (1/2) × 10 as a single number first.
Show answer
Start with A = (1/2) × b × h. Substitute: 30 = (1/2) × 10 × h. Simplify (1/2) × 10 to get 5: 30 = 5 × h. Divide both sides by 5: h = 6 inches. Check: (1/2) × 10 × 6 = 5 × 6 = 30 ✓. The height is 6 inches. This problem is trickier because you have to simplify a fraction times a number before isolating h.

SUMMARY

Putting It All Together

Summary

A formula shows how variables are connected. When you know the values of all but one variable, you can find the missing one by following a clear process. First, substitute the known values into the formula. Then simplify any arithmetic you can. Next, use inverse operations to isolate the variable on one side of the equals sign. Finally, always check your answer by plugging it back into the original formula.

This skill works with any formula you'll meet — from A = l × w to d = r × t to F = 1.8 × C + 32. Remember: an equation is a balance. Keep both sides equal, use the opposite operation to free your variable, and you'll always find the answer.

Varsity Tutors • Pre-Algebra • Solving for a Variable in Formulas