KickSolve • Free • No signup • Private

Venn Diagram Maker

Free online Venn diagram generator for 2, 3, 4 and 5 sets. Type elements or region counts, shade any region with set symbols such as A ∩ B, A ∪ B and A − B, check subsets, and download your diagram as SVG or PNG.

How to make one • Set notation • Worked examples • FAQ

Sets

Number of sets
Input

Enter how many items are in each region. Each region counts items that belong to exactly that combination of sets.

Display options

Shade with symbols

Sets
Operations
Compare
Other

Hover a symbol to see what it means.

Keyboard shortcuts also work: | for ∪, & for ∩, \ for −, ^ for Δ, ! for complement.

Diagram

Click a region to shade it, or use the symbol keyboard on the left.

Analysis

Venn diagram guide: how it works, set notation and formulas

What is a Venn diagram?

A Venn diagram is a picture of sets drawn as overlapping circles or ellipses inside a rectangle. Each shape is one set, the rectangle is the universal set U, and every possible combination of membership gets its own region. With n sets there are 2ⁿ regions, including the area outside every shape. The diagram is named after the logician John Venn, who popularised the style in the 1880s. This Venn diagram maker draws the regions for you, places your elements or counts in the right spot, and keeps a live table of every region.

How to make a Venn diagram

  1. Pick the number of sets. Use 2 for a simple comparison, 3 for the classic three circle Venn diagram, and 4 or 5 for larger problems.
  2. Name and colour each set. Short names such as Even, Prime or Sports keep the labels readable.
  3. Add the data. In Elements mode, type each set's items separated by commas or new lines and the tool works out which region each item belongs to. In Counts mode, type how many items fall in each region.
  4. Shade what matters. Click regions, or type an expression such as (A ∩ B) − C and the matching regions are shaded for you.
  5. Export. Download an SVG for documents and editing, or a PNG for slides and web pages.

Set notation and symbols

The symbol keyboard above the diagram inserts each of these. You can also type the keyboard shortcut shown in the last column.

SymbolNameMeaningShortcut
A ∪ BUnionIn A, in B, or in both|
A ∩ BIntersectionIn both A and B&
A − BDifferenceIn A but not in B\
A Δ BSymmetric differenceIn exactly one of A or B^
A′ComplementIn U but not in A!
A ⊆ BSubsetEvery item of A is in B 
A ⊂ BProper subsetA ⊆ B and A ≠ B 
A ⊇ BSupersetEvery item of B is in A 
∅Empty setA set with no elements 
|A|CardinalityNumber of elements in A 

Two laws worth remembering are De Morgan's laws: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′. Try entering both sides of each as an equality such as (A ∪ B)′ = A′ ∩ B′ and the tool will confirm they match for your data.

How to shade a region of a Venn diagram

There are two ways. You can click any region in the diagram to toggle its shading, which suits one-off regions. Or you can type a set expression and let the tool shade every matching region. For example, A ∩ B ∩ C shades the centre, A − (B ∪ C) shades the part of A that touches nothing else, and (A ∪ B)′ shades everything outside both A and B. The Shaded area panel lists the regions, the number of items and the elements that fall inside the shading.

Inclusion–exclusion principle

To count a union without counting overlaps twice, add the sets, subtract the pairwise overlaps, add back the triple overlaps, and keep alternating.

Two sets: |A ∪ B| = |A| + |B| − |A ∩ B|

Three sets: |A ∪ B ∪ C| = |A| + |B| + |C| − |A ∩ B| − |A ∩ C| − |B ∩ C| + |A ∩ B ∩ C|

The Inclusion–exclusion tab in the analysis section applies this formula to your data and checks it against the regions you entered, which is a quick way to catch a typo in a word problem.

Worked examples

Example 1: two sets. In a class of 40 students, 25 like tea, 20 like coffee and 8 like neither. Students who like at least one drink: 40 − 8 = 32. Students who like both: 25 + 20 − 32 = 13. So 12 like only tea, 7 like only coffee, 13 like both and 8 like neither, and 12 + 13 + 7 + 8 = 40.

Example 2: three sets. In a survey of 100 people, |A| = 50, |B| = 45, |C| = 40, |A ∩ B| = 20, |A ∩ C| = 15, |B ∩ C| = 10 and |A ∩ B ∩ C| = 5. The union is 50 + 45 + 40 − 20 − 15 − 10 + 5 = 95, so 5 people are in none of the sets. The exact regions are: only A 20, only B 20, only C 20, A and B only 15, A and C only 10, B and C only 5, all three 5. Enter these in Counts mode with 3 sets to see the finished diagram.

Example 3: numbers. Let A be the even numbers, B the primes and C the multiples of 3, all from 1 to 20. The only even prime is 2, so A ∩ B = {2}. Numbers in all three sets: none, because 2 is not a multiple of 3. Load the Numbers 1–20 example above to see every number placed automatically.

2, 3, 4 and 5 set Venn diagrams

Two sets give 4 regions: only A, only B, both, and neither. Three sets give 8 regions and use three circles, the classic layout taught in school. Four sets give 16 regions and need ellipses, because four circles cannot produce every combination. Five sets give 32 regions and use five rotated ellipses. The Numbers 1–30 and Numbers 1–60 examples show a 4 set and 5 set diagram filled with multiples of small primes.

What Venn diagrams are used for

  • Maths and discrete maths: set theory homework, union and intersection problems, and inclusion–exclusion counting.
  • Probability: showing P(A ∪ B) and P(A ∩ B) and checking whether events are mutually exclusive.
  • Logic and computing: visualising AND, OR, XOR and NOT, and database JOIN results.
  • Business and research: comparing customer groups, product features, survey answers or skill sets.
  • Teaching and presentations: clean SVG and PNG exports for worksheets, slides and reports.

Venn diagram or Euler diagram?

A Venn diagram always draws every combination of the sets, even those with nothing in them. An Euler diagram draws only the combinations that exist. This tool makes Venn diagrams, and empty regions simply show a count of 0.

Frequently asked questions about Venn diagrams

What is a Venn diagram maker?

A Venn diagram maker is a tool that draws overlapping shapes for two or more sets and places each element or count in the region that matches its memberships. This one handles 2, 3, 4 and 5 sets and also calculates unions, intersections, differences and the inclusion-exclusion total.

How do I make a Venn diagram online for free?

Choose the number of sets, give each set a name and colour, then type the elements separated by commas or new lines. The diagram updates as you type. If a word problem only gives numbers, switch to Counts and enter how many items belong to each region. Finally download the result as SVG or PNG.

How many sets can I draw?

You can draw 2, 3, 4 or 5 sets. Every layout shows all 2ⁿ regions, so a 3 set diagram has 8 regions including the outside, a 4 set diagram has 16 and a 5 set diagram has 32.

How do I shade A ∩ B but not C?

Type (A ∩ B) − C into the set expression box, or click the matching region in the diagram. Expressions are parsed with normal precedence and brackets, and the shaded regions, their count and their elements are listed under the diagram.

What is the difference between union and intersection?

The union A ∪ B contains every item that is in A, in B, or in both. The intersection A ∩ B contains only the items that are in both A and B. In a Venn diagram the union is the whole area covered by both shapes and the intersection is the overlap.

How do I find the overlap in a word problem?

Use inclusion-exclusion. For two sets, |A ∩ B| = |A| + |B| − |A ∪ B|. If 25 students like tea, 20 like coffee and 32 like at least one of them, then 25 + 20 − 32 = 13 like both. Enter the region counts and the tool checks that everything adds up.

Can I use numbers instead of elements?

Yes. Switch Input to Counts and type a number for each region. Each region counts only items that belong to exactly that combination of sets, so the overlap of A and B does not include the items that are also in C.

How do I check if one set is a subset of another?

Enter a comparison such as A ⊆ B, A ⊂ B, A ⊇ B, A = B or A ≠ B in the expression box. The tool answers True or False and tells you how many items break the relation.

Why do 4 and 5 set diagrams use ellipses instead of circles?

Four circles cannot overlap in a way that creates all 16 regions, but four ellipses can. Five rotated ellipses create all 32 regions, so this tool uses ellipses for 4 and 5 sets to keep every combination visible.

What is the difference between a Venn diagram and an Euler diagram?

A Venn diagram always shows every possible combination of the sets, even when some are empty. An Euler diagram only draws the combinations that actually exist, so sets that never overlap are drawn apart and subsets are drawn inside their parent set.

What is the universal set and the complement?

The universal set U contains every item under discussion and is drawn as the box around the circles. The complement A′ is everything in U that is not in A. Enter A′ or !A to shade it.

Can I download the Venn diagram as an image?

Yes. Download it as an SVG, which stays sharp at any size and can be edited in tools such as Inkscape or Illustrator, or as a PNG that works in slides, documents and web pages.

Is this Venn diagram generator free and private?

Yes. It is free, needs no account, and runs entirely in your browser. The sets and elements you type are never uploaded.

More free tools from KickSolve