Venn Diagram Word Problems: Practice Generator and Interactive Diagram

A Venn diagram problem gives you totals for overlapping groups and asks for a number the text never states. Generate a problem below, type the number for each region of the diagram, and check your answer. If you get stuck, the steps fill the diagram from the middle out.

Venn diagram practice generator

Level

Fill the diagram

Type the number for each region, from the middle out, then check. Tap a number in the diagram to jump to its box.

Answers are whole numbers. A region can be 0.

Contents

  1. How to solve a Venn diagram problem
  2. The formulas behind the diagram
  3. Words that point to a region
  4. Worked examples
  5. The most common mistake: counting the overlap wrong
  6. Frequently asked questions
  7. See also

How to solve a Venn diagram problem

The method is the same for two sets and for three. Only the number of regions changes.

  1. Name the sets and list every number. Mark which numbers are totals for a whole set (they include the overlap) and which describe one exact region.
  2. Draw one circle per set inside a rectangle. The rectangle stands for everyone in the problem, so people who belong to no set sit inside it, outside the circles.
  3. Fill the middle first. Start where all the circles meet. Every other region depends on that one.
  4. Work outward by subtraction. A set's total minus the regions already filled leaves the part that is still empty.
  5. Fill the outside last. The number in neither set is the overall total minus everything inside the circles.
  6. Check, then answer. All regions must add up to the overall total, and no region can be negative. Then read the answer from the regions the question names.

If a subtraction gives a negative number, stop and reread the problem: either a total was copied wrong or an overlap was counted twice.

The formulas behind the diagram

The diagram and the formulas are the same idea. For two sets, adding $latex n(A)$ and $latex n(B)$ counts the overlap twice, so subtract it once:

$$n(A\cup B)=n(A)+n(B)-n(A\cap B)$$

The people in neither set are whoever is left of the overall total $latex N$:

$$n(\text{neither})=N-n(A\cup B)$$

For three sets, the people in all three circles are added three times and subtracted three times, so they have to be added back once:

$$n(A\cup B\cup C)=n(A)+n(B)+n(C)-n(A\cap B)-n(A\cap C)-n(B\cap C)+n(A\cap B\cap C)$$

Use the diagram when the question asks about one region, such as "only soccer". Use the formula when it asks about the whole union.

Words that point to a region

Phrase in the problemWhere it livesCalculation
at least one, "A or B"everything inside the circlesadd all the regions inside
both A and Bthe overlapthe intersection
only Athe part of A outside the overlapwith two sets, n(A) minus n(A and B)
exactly onethe regions inside one circle onlyadd the "only" regions
exactly two (three sets)the pair regions without the centeradd the three pair-only regions
neither, noneoutside every circletotal minus the union

Worked examples

Example 1 (easy): two sets, no overall total

In a group of students, 25 play soccer, 19 play basketball and 8 play both. How many play only soccer, and how many play at least one of the two sports?

The overlap is 8. Subtract it from each total:

$$\text{only soccer}=25-8=17$$

$$\text{only basketball}=19-8=11$$

Add every region inside the circles:

$$\text{at least one}=17+8+11=36$$

The formula agrees: $latex 25+19-8=36$. The answers are 17 and 36.

Example 2 (medium): two sets and neither

In a class of 40 students, 22 play soccer, 18 play basketball and 7 play both. How many play neither?

$$\text{only soccer}=22-7=15$$

$$\text{only basketball}=18-7=11$$

$$\text{at least one}=15+7+11=33$$

$$\text{neither}=40-33=7$$

Check that the four regions rebuild the class: $latex 15+7+11+7=40$. The answer is 7.

Example 3 (hard): three sets

In a survey of 100 people, 45 watch Netflix, 38 watch YouTube and 30 watch Hulu. Also, 15 watch Netflix and YouTube, 12 watch Netflix and Hulu, 10 watch YouTube and Hulu, and 5 watch all three. How many watch exactly one of the three services, and how many watch none?

Each pair count includes the 5 people in the middle, so take them out of every pair:

$$\text{Netflix and YouTube only}=15-5=10$$

$$\text{Netflix and Hulu only}=12-5=7$$

$$\text{YouTube and Hulu only}=10-5=5$$

Now take the middle and the pair regions out of each service:

$$\text{only Netflix}=45-10-7-5=23$$

$$\text{only YouTube}=38-10-5-5=18$$

$$\text{only Hulu}=30-7-5-5=13$$

Exactly one service is the sum of the three "only" regions:

$$\text{exactly one}=23+18+13=54$$

Everything inside the circles, then the outside:

$$\text{at least one}=23+18+13+10+7+5+5=81$$

$$\text{none}=100-81=19$$

The formula confirms the 81: $latex 45+38+30-15-12-10+5=81$. The answers are 54 and 19.

The most common mistake: counting the overlap wrong

Take Example 2 again. If you add the two totals and treat the result as the number of students who play something, you get $latex 22+18=40$. That says every student plays at least one of the two sports, which is false. The 7 students in the overlap were counted twice, once in each total.

The opposite slip is subtracting the overlap too many times. Take 7 away from each total before you add, and you get

$$22+18-7-7=26$$

That is not the union. It is the number of students who play exactly one sport, $latex 15+11=26$, because the overlap has been removed completely. The union keeps the overlap once: 33.

With three sets the same error hides in the pair counts. "15 watch Netflix and YouTube" includes the 5 who watch all three, so the region for exactly those two is 10, not 15. Subtract the middle before you fill the pairs.

The fix is always the same: fill the diagram from the middle out, and finish by adding up every region. If the sum is not the overall total, some overlap was counted the wrong number of times.

Frequently asked questions

Can a region be zero?

Yes. Two groups may not overlap at all, and then the intersection is 0. Zero is a valid answer, so type 0 instead of leaving a box empty.

What if the problem gives no overall total?

Then there is no "neither" region to find, and you work with the circles only, as in Example 1. The rectangle still exists, but nothing in the problem tells you its size.

What is the difference between "or" and "exactly one"?

In math, "A or B" includes people who are in both sets, so it means at least one. "Exactly one" leaves out the overlap.

Why must the regions add up to the total?

Every person in the problem belongs to exactly one region of the diagram. If the regions do not add up to the total, someone was counted twice or left out.

See also