Learn · Grade 5 Mathematics

Write an equation with a variable

Write an equation with a letter for an unknown whole number from a story or a number puzzle, then find the number.

Lesson 4 of 6About 22 minutesMA.5.AR.2.4

Written with AI assistance. No teacher has reviewed these lessons and questions yet.

01 · Learn the idea

A letter for a number you don’t know yet

Rosa had some stickers. She gave 8 away and has 15 left. You don’t know how many she started with, but you can still write about it. Use a letter for the missing number.

A variable is a letter that stands for a number. Let s stand for the number of stickers Rosa started with. The story says "s take away 8 is 15," so the equation is s − 8 = 15.

To find s, ask what number minus 8 gives 15. Adding undoes subtracting: 15 + 8 = 23. So s = 23. Check: 23 − 8 = 15.

You can pick any letter. Many people use the first letter of the thing they are counting, like s for stickers. Always say what your letter stands for.

The variable can sit anywhere in the equation: first, in the middle or on the right side. Put it where the story puts the unknown.

s − 8 = 15

02 · Build understanding

Worked example: tickets and parking

Mr. Ortiz buys 4 museum tickets that all cost the same. He also pays $9 to park. He spends $57 in all. How much does one ticket cost?

Step 1: Name the unknown. Let t stand for the cost of one ticket in dollars.

Step 2: Write the story as an equation. Four tickets cost 4 × t. Parking adds 9. The total is 57. So 4 × t + 9 = 57.

Step 3: Undo the last thing that happened. The 9 was added last, so take it away from the total: 57 − 9 = 48. Now 4 × t = 48.

Step 4: Undo the multiplication with a related fact. 48 ÷ 4 = 12, so t = 12. One ticket costs $12.

Step 5: Check in the original equation. 4 × 12 + 9 = 48 + 9 = 57. The equation is true.

4 × t + 9 = 57

03 · Build understanding

Worked example: operations on both sides

Ana and Ben read the same number of pages. Ana read 5 chapters with p pages in each one. Ben’s book has 52 pages, and he read all but 7 of them. How many pages are in each of Ana’s chapters?

Step 1: Name the unknown. The letter p stands for the number of pages in one chapter.

Step 2: Write each person’s pages as an expression. Ana read 5 × p pages. Ben read 52 − 7 pages.

Step 3: The amounts are the same, so put an equal sign between them: 5 × p = 52 − 7.

Step 4: Find the value of the side with no variable. 52 − 7 = 45. Now 5 × p = 45.

Step 5: Use a related fact. 45 ÷ 5 = 9, so p = 9. Each chapter has 9 pages.

Step 6: Check in the original equation. The left side is 5 × 9 = 45 and the right side is 52 − 7 = 45. Both sides match.

04 · Build understanding

Worked example: a number puzzle

A number is divided by 6. Then 14 is added. The result is 21. What is the number?

Step 1: Name the unknown. Let n stand for the number.

Step 2: Write the puzzle in order. The number divided by 6 is n ÷ 6. Then add 14. The result is 21. So n ÷ 6 + 14 = 21.

Step 3: Undo the addition first, because it happened last. 21 − 14 = 7. Now n ÷ 6 = 7.

Step 4: Undo the division. Multiplying undoes dividing: 7 × 6 = 42. So n = 42.

Step 5: Check in the original equation. 42 ÷ 6 = 7, and 7 + 14 = 21.

05 · Build understanding

Three mistakes to watch for

Writing the numbers in the order you hear them. "15 less than a number is 40" starts with 15, but the 15 is being taken away from the number. The equation is n − 15 = 40, so n = 55. The equation 15 − n = 40 does not match the words.

Undoing steps in the wrong order. For 3 × k + 6 = 30, dividing 30 by 3 first gives 10, and then 10 − 6 = 4. Check: 3 × 4 + 6 = 18, which is wrong. Take away the 6 first: 30 − 6 = 24, then 24 ÷ 3 = 8. Check: 3 × 8 + 6 = 30.

Skipping the check. A wrong value looks fine until you put it back in. Always replace the letter with your number in the original equation and see whether both sides match.

Apply and explain

Your turn

A baker has 70 muffins. She fills 8 boxes with the same number of muffins in each box and has 6 muffins left over. Write an equation with a variable for this story, find the unknown, and explain how you know your answer is right.

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

Let m stand for the number of muffins in one box. The 8 boxes hold 8 × m muffins, and 6 more are left over, so 8 × m + 6 = 70. Take away the leftover muffins: 70 − 6 = 64. Then 64 ÷ 8 = 8, so m = 8. Check: 8 × 8 + 6 = 64 + 6 = 70, which matches the 70 muffins she started with.

  • Says what the variable stands for.
  • Writes an equation that matches the story, such as 8 × m + 6 = 70 or 70 − 8 × m = 6.
  • Finds that each box holds 8 muffins.
  • Checks the value in the equation or in the story.

Ready to practice?

Try the questions, get feedback, and review your reasoning.

Write an equation with a variable: practice →