Easy CalculatorsOnline
A little less guesswork.

Statistics · EVERYDAY CLARITY

Probability of A or B calculator

Combine two event probabilities with their overlap.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

P(A or B)
60%
See visual ↓

Overlap must lie between max(0,P(A)+P(B)−1) and min(P(A),P(B)).

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Mutually exclusive regions

A only0.3 probability30%
Both0.1 probability10%
B only0.2 probability20%
Neither0.4 probability40%

Share of the total

A only0.3 probability
Both0.1 probability
B only0.2 probability
Neither0.4 probability
0 probabilityShared scale0.4 probability

The overlap is counted exactly once in the union.

03 · UNDERSTAND THE METHOD

How the probability of a or b calculator works

The probability of A or B includes every outcome belonging to at least one of the two events. Simply adding their probabilities double-counts outcomes where both happen, so the overlap must be subtracted once. This calculator checks that the overlap is compatible with the entered marginal probabilities, then displays the four mutually exclusive regions: A only, both, B only, and neither. Independence is not assumed.

The formula and its variables

P(A∪B)=P(A)+P(B)−P(A∩B)
P(A),P(B)
Marginal probabilities of the two events.
P(A∩B)
Probability of their overlap.

The calculation, step by step

  1. Enter both marginal probabilities and their joint overlap as values from zero through one. Use decimals such as 0.4 rather than 40 for forty percent.
  2. Check that the overlap is no larger than either event and no smaller than the amount needed to keep the union at most one.
  3. Add the marginals and subtract the overlap. Read the visual partition to see which regions contribute to the union and which belong to its complement.

A worked example

With P(A)=0.4, P(B)=0.3, and overlap 0.1, the union is 0.6 or 60%. The A-only region is 0.3, the B-only region 0.2, and the overlap 0.1. The remaining probability 0.4 belongs to neither event. If these events were disjoint, the overlap would be zero and the union would instead be 0.7.

Example inputs and calculated output
P(A)0.4
P(B)0.3
P(A and B)0.1
P(A or B)60%

How to read the result and visual

The word or is inclusive here, so outcomes where both events happen are included. The overlap may be zero without the events being independent. Independence would specifically imply overlap equal to the product of the marginals. The visualization partitions the same total probability into nonoverlapping pieces rather than adding probabilities of overlapping groups.

Assumptions, rounding, and limitations

All three probabilities must describe the same sample space and consistent events. Impossible overlap combinations are rejected. This tool handles two events, not a full inclusion-exclusion calculation for many sets. It does not estimate probabilities from observed counts or establish whether an event model accurately represents reality.

Frequently asked questions

Does or include both events?

Yes. The union includes A only, B only, and their shared outcomes.

Can I assume the overlap is zero?

Only if the events are mutually exclusive; that condition is different from independence.

Reference sources

How we check calculations and what verification covers