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.

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.

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!

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.

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!

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 × w
A = area, l = length, w = width. If you know any two, solve for the third.
DISTANCE FORMULA
d = 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 + 2w
P = perimeter, l = length, w = width. Perimeter is the total distance around the outside.
TEMPERATURE CONVERSION
F = 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.

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.

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?

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
Step 1 — Write the FormulaStart with the formula: F = 1.8 × C + 32
2
Step 2 — Identify What You KnowYou know F = 77. You need to find C.
3
Step 3 — SubstituteReplace F with 77: 77 = 1.8 × C + 32
77 = 1.8 × C + 32
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
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
Step 6 — CheckPlug 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

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.

Mistakes to watch for when solving for a variable
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.
⚖️ 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.

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.

Comparing the approach in this lesson with a more advanced approach
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

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!

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!

PROBLEM 1CONCEPTUAL
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.
PROBLEM 2BASIC 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?
PROBLEM 3INTERMEDIATE
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.
PROBLEM 4APPLIED
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.
PROBLEM 5CRITICAL 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.

Putting It All Together

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