Coin Mixture: Find Number of Dimes and Quarters

Coin & Money 8th-9th Grade
Problem

Joaquín has 31 coins in his pocket, all of which are dimes and quarters. If the total value of his change is 535 cents, how many dimes and how many quarters does he have?

Already Got the Answer? Check Here

  • Setup:d + q = 31 (count) and 10d + 25q = 535 (value in cents)
  • Result: 16 dimes and 15 quarters
  • One-line check:16(10) + 15(25) = 160 + 375 = 535 ✓ and 16 + 15 = 31 ✓

If your numbers match, skip ahead to the three different methods and the "What If?" problems. They are where this page earns its keep.

What You Will Learn

  • Counts and values are different quantities. The 31 counts coins; the 535 counts cents. Keeping them in separate equations is the central skill of every coin problem.
  • How to build a value equation by multiplying each coin's worth by how many of that coin there are, with every term in the same unit.
  • Substitution as a tool for collapsing two unknowns into one.
  • The "swap" idea. Replacing one cheap coin with one expensive coin changes the total by a fixed amount, and that single observation can solve the whole problem without a system of equations.
  • Why integer answers are expected, and how that can tell you instantly whether a coin problem is even possible.

Solution: Method 1 — The Two-Equation System (Substitution)

Two things are known about Joaquín's pocket: how many coins there are, and how much they are worth. Those are two separate facts, so they become two separate equations. This is the standard classroom route, and the one to master first.

Step 1 — Name the unknowns

We want two numbers, so we give each a letter:

d = number of dimes
q = number of quarters

Step 2 — Write the coin-count equation

Every coin in the pocket is either a dime or a quarter, and there are 31 coins altogether:

d + q = 31

Notice that this equation says nothing about money. It only counts coins.

Step 3 — Write the value equation (in cents)

A dime is worth 10 cents and a quarter is worth 25 cents. The money from the dimes is 10·d, the money from the quarters is 25·q, and together they total 535 cents:

10d + 25q = 535

Because the total was given in cents, we use 10 and 25 rather than 0.10 and 0.25. Working in cents keeps every number a whole number.

Step 4 — Eliminate one variable by substitution

From the count equation, d = 31 − q. Wherever d appears in the value equation, we replace it with 31 − q:

10(31 − q) + 25q = 535
310 − 10q + 25q = 535
310 + 15q = 535
15q = 225
q = 15

The 15 multiplying q is 25 − 10, the difference between the coin values. That number will return in Method 2.

Step 5 — Back-substitute to find the dimes

d = 31 − q = 31 − 15 = 16

So Joaquín has 16 dimes and 15 quarters.

Solution: Method 2 — The "Everything Is a Dime" Swap Method

This method needs no variables. It works by starting from a deliberately wrong picture and then correcting it.

Step 1 — Imagine the cheapest possible pocket

Suppose all 31 coins were dimes. Their value would be:

31 × 10 = 310 cents

Step 2 — Measure the shortfall

The real pocket holds 535 cents, so our imaginary pocket is short by:

535 − 310 = 225 cents

Step 3 — Ask what one swap does

Each time we replace a dime with a quarter, the number of coins stays at 31, but the value rises by 25 − 10 = 15 cents. Every quarter in the real pocket is one such swap.

Step 4 — Count the swaps

225 ÷ 15 = 15 swaps = 15 quarters

The remaining coins are still dimes: 31 − 15 = 16.

Same math, different clothing. Compare Step 4 of Method 1 (310 + 15q = 535) with this method: 310 is the "all dimes" value, 15 is the gain per swap, and 535 is the target. Method 2 is Method 1 with the algebra read out loud in plain English.

Solution: Method 3 — Guess, Adjust, and Watch the Pattern

When a problem feels intimidating, an organized table is a legitimate strategy, and it often reveals the structure faster than symbols do. A good first guess can come from the average value per coin:

535 ÷ 31 ≈ 17.3 cents per coin

The average sits between 10 and 25, so the pocket has both coin types. It is a bit closer to 10 than to 25 (the midpoint is 17.5), so we expect slightly more dimes than quarters, with the two counts close to each other. Start the table near 15 quarters and walk through it:

Quarters (q)Dimes (31 − q)Quarter centsDime centsTotalvs. 535
1219300190490too low
1318325180505too low
1417350170520too low
1516375160535exact ✓
1615400150550too high

Look at the Total column: 490, 505, 520, 535, 550. It climbs by exactly 15 each row. That is the swap effect from Method 2, now visible in the numbers. Once you spot it, you do not need to guess at all. You can jump straight from any row to the target by dividing the gap by 15.

The Answer

Joaquín has 16 dimes and 15 quarters (16 + 15 = 31 coins, worth 160 + 375 = 535 cents).

Verification

Always check against both original facts, not just one, because a wrong answer can easily satisfy one equation while breaking the other.

Coin count:16 + 15 = 31 ✓

Value:16 × 10 + 15 × 25 = 160 + 375 = 535 cents ✓

Independent check by a different route: the "all dimes" method and the table both landed on 15 quarters without using the substitution step, so three separate routes agree.

Sanity Check: Does 16 and 15 Feel Right?

Before any algebra, you can bracket the answer. If all 31 coins were dimes, the pocket would hold 310 cents; if all were quarters, 775 cents. The actual total, 535, lies between those extremes, so both coin types must be present.

ScenarioCoinsTotal value
All dimes31310¢
Joaquín's pocket31535¢
All quarters31775¢

Where does 535 fall? It is 225 above the bottom of a 465-cent range, which is about 48%. And 15/31 ≈ 48% of the coins are quarters. The position of the total in the range is the fraction of quarters. That is a handy estimating trick.

What Trips People Up

✗ d + q = 535 and 10d + 25q = 31

The totals have been attached to the wrong equations. The number 31 is a count of coins, so it goes with the equation that adds d and q. The number 535 is a value in cents, so it goes with the equation that has the 10 and 25. A quick test: if a coefficient like 10 or 25 appears, the right side must be money.

✗ 0.10d + 25q = 535

This mixes dollars and cents. The dimes are measured in dollars (0.10) while the quarters and total are in cents. Pick one unit and stay with it: either 10d + 25q = 535 or 0.10d + 0.25q = 5.35. Both are correct and give the same answer. This single slip is the most common reason students get decimals like 1,200 dimes.

✗ "q = 15" — done!

The question asks for both coin counts. After solving for one variable, always finish by finding the other (d = 31 − 15 = 16), and say which is which in a sentence. It is also easy to swap them at the very end, so reread what d and q stood for before you write the answer.

✗ 535 ÷ 31 ≈ 17, so about half and half → 15.5 of each

The average value per coin is a useful clue, but it is not the answer. Averages describe the mixture as a whole; they do not directly give the counts. Splitting the coins evenly would give a total of 15.5 × 35 = 542.5, which is not even a valid whole-coin amount. Use the average to estimate (as in Method 3), then finish with an equation or a swap count.

How to Spot This Problem Type

Coin problems can be dressed in many costumes, but they share one skeleton. Look for:

  • Two kinds of items with different unit values (coins, tickets, stamps, bills).
  • A total count ("31 coins", "200 tickets sold") anda total value ("535 cents", "$1,450 in receipts").
  • The question asks how many of each.

The same structure appears here, wearing a different outfit: "A theater sold 120 tickets, adult tickets at $8 and child tickets at $5, for $795. How many of each?" The setup is a + c = 120 and 8a + 5c = 795, and the "all child tickets" baseline gives 600, a gap of 195, divided by 3 per swap, so 65 adult and 55 child tickets.

The Pattern Behind This

Suppose there are N items in total, the cheap item is worth a, the expensive one is worth b, and the grand total is V. The swap method gives a formula that works for any such problem:

number of expensive items = (V − a·N) ÷ (b − a)
number of cheap items = N − (number of expensive items)

Here: (535 − 10·31) ÷ (25 − 10) = 225 ÷ 15 = 15 quarters.

Two limits of the formula. It only handles two kinds of items (three kinds, like nickels, dimes, and quarters, need another piece of information). And the numerator must divide evenly by b − a; if it does not, no whole-number pocket exists. For dimes and quarters with 31 coins, the possible totals are exactly 310, 325, 340, …, 775. A total like 540 is impossible, which is why the problem designers had to choose 535 carefully. You will explore this in the fourth "What If?" below.

This is the same mathematics as a weighted average: the average of 17.26¢ per coin is a blend of 10¢ and 25¢, and the fraction of quarters is how far the average sits between them.

Beyond the Textbook

  • Cash-register counts. A cashier who knows how many bills are in a drawer and the drawer's total can use this same logic to find how many are $5s versus $20s.
  • Mixtures in chemistry and pharmacy. Replace "dime" and "quarter" with a 10% solution and a 25% solution. The "swap" is then replacing a liter of weak solution with strong, and the formula is identical.
  • Budgeting and ticketing. Any time a business knows total units sold and total revenue across two price points, this is the calculation that recovers the sales mix.

Try These Variations

The four problems below change one thing at a time. Try each on paper before opening the solution.

1
Different Numbers, Same Method
Maria has 24 coins, all dimes and quarters, worth 435 cents in total. How many dimes and how many quarters does she have?
Step 1 — Define variables

Let d = dimes and q = quarters.

Step 2 — Write both equations

Count: d + q = 24. Value: 10d + 25q = 435.

Step 3 — Substitute

With d = 24 − q: 10(24 − q) + 25q = 435, so 240 + 15q = 435.

Step 4 — Solve

15q = 195, so q = 13, and d = 24 − 13 = 11.

Step 5 — Verify

11 + 13 = 24 ✓ and 11(10) + 13(25) = 110 + 325 = 435 ✓. Maria has 11 dimes and 13 quarters.

2
A Relationship Instead of a Total Count
Tomás has only dimes and quarters worth 470 cents. He has 5 more dimes than quarters. How many of each coin does he have?
Step 1 — Translate the relationship

Let q = quarters. "5 more dimes than quarters" means dimes d = q + 5.

Step 2 — Write the value equation

10d + 25q = 470. The coin total is not given here, but the relationship replaces it.

Step 3 — Substitute

10(q + 5) + 25q = 470, so 10q + 50 + 25q = 470, so 35q = 420.

Step 4 — Solve

q = 12 and d = 12 + 5 = 17.

Step 5 — Verify

Dimes minus quarters: 17 − 12 = 5 ✓. Value: 170 + 300 = 470 ✓. Tomás has 17 dimes and 12 quarters.

3
Add a Third Coin: Nickels Join the Pocket
Ana has 30 coins made up of nickels, dimes, and quarters, worth 420 cents in total. She has twice as many nickels as dimes. How many of each coin does she have?
Step 1 — Reduce to one unknown for nickels

Let d = dimes. Then nickels n = 2d. Let q = quarters.

Step 2 — Count equation

n + d + q = 30 becomes 2d + d + q = 30, so q = 30 − 3d.

Step 3 — Value equation

5n + 10d + 25q = 420 becomes 5(2d) + 10d + 25(30 − 3d) = 420.

Step 4 — Simplify and solve

10d + 10d + 750 − 75d = 420, so 750 − 55d = 420, so 55d = 330 and d = 6. Then n = 12 and q = 30 − 18 = 12.

Step 5 — Verify

Count: 12 + 6 + 12 = 30 ✓. Value: 60 + 60 + 300 = 420 ✓. Ana has 12 nickels, 6 dimes, and 12 quarters.

4
Which Totals Are Even Possible?
A jar holds exactly 31 coins, all dimes and quarters. (a) Could the total value be 500 cents? (b) Could it be 610 cents? (c) Describe every total value the jar could possibly have.
Step 1 — Write the total for any mix

With q quarters and 31 − q dimes: V = 10(31 − q) + 25q = 310 + 15q.

Step 2 — Test 500 cents

310 + 15q = 500 gives 15q = 190, so q = 12.67. That is not a whole number, so 500 cents is impossible.

Step 3 — Test 610 cents

310 + 15q = 610 gives 15q = 300, so q = 20 and d = 11. Check: 110 + 500 = 610 ✓. 610 cents is possible with 11 dimes and 20 quarters.

Step 4 — Describe all possible totals

The quarter count q can be any whole number from 0 to 31, so V = 310 + 15q takes the values 310, 325, 340, …, 775. That is 32 possible totals. Equivalently, V is between 310 and 775 and V − 310 is a multiple of 15.

Step 5 — Verify the endpoints and original problem

The endpoints are q = 0 → 310 and q = 31 → 775 ✓. The original total satisfies the rule: 535 − 310 = 225 = 15 × 15 ✓. 500 is impossible, 610 is possible, and the valid totals are 310 + 15q for q = 0, 1, …, 31.

Frequently Asked Questions

Write two equations: one for the number of coins and one for their total value (in the same unit, such as cents). Then solve the system by substitution or elimination. In this problem, d + q = 31 counts the coins and 10d + 25q = 535 adds up the cents. Substituting d = 31 − q gives 310 + 15q = 535, so q = 15 quarters and d = 16 dimes.
Because there are two unknowns (how many of each coin), and a single equation cannot pin down both. The coin-count equation and the value equation measure two different things, so together they determine one unique answer. In this problem, 31 coins alone could be any mix of dimes and quarters, and 535 cents alone could be made many ways. Only the pair of facts gives 16 dimes and 15 quarters.
Yes. Pretend every coin is the cheaper one, find how far short the total is, and divide by the difference in coin values. In this example, 31 dimes would be worth 310 cents, which is 225 cents short of 535. Each dime swapped for a quarter adds 15 cents, so 225 ÷ 15 = 15 swaps. That gives 15 quarters and 31 − 15 = 16 dimes.
NJ
Neven Jurkovic, PhD

Professor of Computer Science, Palo Alto College, Alamo Colleges District, San Antonio, TX

Developer of Algebrator

Contact

This solution was prepared with AI assistance and reviewed by Dr. Jurkovic for mathematical accuracy and pedagogical clarity.

2026-05-21