Venn Diagram Calculator & Overlap Bounds

Enter set totals from one universe and any known inclusive overlap counts. See each disjoint region, check whether the counts fit and use the overlap bounds when a joint total is missing. Build a conditional probability by selecting which sets each event requires or excludes.

Sets and probability

Build a Venn diagram from overlapping counts

Counts in the same universe

Pair counts include anyone in both sets, even if they are also in the third set.

The other counts allow a range of overlaps. Explore a possible value.

Feasible overlap

Possible count in all three
8–24
Previewed overlap
16
In at least one set
81
Union if overlap is unknown
73–89

Conditional probability

Choose membership requirements in each row. The numerator must satisfy both Event and Given. The denominator must satisfy Given.

Event
Given
Event within Given
50%
Exact probability
1/2
Numerator / denominator
16 / 32
Defined probability range
1/4 to 3/4
Disjoint regions of the Venn diagram

Area is schematic. Each tag labels a region, and its count appears underneath.

Three-set Venn diagramOnly A 10, Outside given. Only B 9, Outside given. Only C 8, Outside given. A and B only 16, Numerator. A and C only 14, Outside given. B and C only 8, Outside given. All three 16, Denominator only. Outside every set 19, Outside givenABCABACBCABCNone
  • Only A10Outside given
  • Only B9Outside given
  • Only C8Outside given
  • A and B only16Numerator
  • A and C only14Outside given
  • B and C only8Outside given
  • All three16Denominator only
  • Outside every set19Outside given

Export the set worksheet

Keep the region counts, overlap limits and exact conditional probabilities.

View CSV text

How to use this calculator

  1. Choose two or three sets. Enter the total population and the size of each set.
  2. Enter any required inclusive pair intersections. Leave the last shared count blank to explore every compatible value.
  3. Build Event and Given by setting each membership to In, Out or Any. Read exact numerator and denominator, and compare the diagram’s region tags.
  4. Download the worksheet for counts, overlap limits and conditional probability bounds.

The Formula

The mathematical logic powering this calculation is:

For two sets with universe N, set sizes A and B, and shared count t, the four disjoint counts are A−t, B−t, t and N−A−B+t. They imply max(0,A+B−N) ≤ t ≤ min(A,B).

For three sets, use AB, AC and BC for the inclusive pair intersections and t for the common triple. Pair-only counts are AB−t, AC−t and BC−t. Only A is A−AB−AC+t, with analogous formulas for B and C. The outside count is N−A−B−C+AB+AC+BC−t. Requiring every disjoint count to be nonnegative gives max(0,AB+AC−A,AB+BC−B,AC+BC−C) ≤ t ≤ min(AB,AC,BC,N−A−B−C+AB+AC+BC). Any integer in that interval is compatible. An empty interval identifies inconsistent counts.

The union counts everyone in at least one set. For a uniform draw from the universe, the conditional probability is count(Event ∩ Given)/count(Given), provided the denominator is positive. With overlap unknown, both counts are affine functions of t. The ratio is monotone or constant wherever the denominator is positive, so its defined extremes occur at the first and last integer with a positive denominator. An admissible scenario can also have an empty conditioning set.

Use whole counts from 0 through 1 billion, assembled from the same universe. Pair counts always include triple members. Enter known overlaps where available. Diagram areas are schematic, and each disjoint cardinality is exact.

Worked Example

If you input:

  • Universe: 100
  • Set sizes: 56, 49, 46
  • Inclusive pairs: 32, 30, 24

Result:

The triple can range from 8 to 24. Previewing 16 gives a union of 81 and a probability of 1/2 for being outside C among those in A and B.

Frequently Asked Questions

Does the A and B count include members of C?

Yes. Enter the inclusive count who are in A and B. The model subtracts the triple to find those in A and B only.

Can pair intersections determine the triple exactly?

Sometimes. When the lower and upper overlap bounds agree, the supplied totals determine one value. If they differ, the table shows a range of compatible values.

Why can a conditional probability be undefined?

The numerator is evaluated among members of the Given event. When Given has zero members, there is no denominator.

What does an empty overlap interval mean?

At least one region would require a negative count for every possible overlap. Check that totals and pair counts refer to the same universe and that pair counts include the triple.

Similar Calculators