Principle of Inclusion-Exclusion Visualizer

Drag the sets to create overlaps. The formula automatically updates based on which sets physically intersect. Notice how pairs are subtracted, triples are added back, and quadruples are subtracted again.

Scale up to 6 distinct sets
3
Drag to overlap sets

Probability Formula

Tip: Hover over any term in the formula to highlight the exact intersection region in the diagram.