Probability Calculator

Formula
Basic: P(A), P(not A) = 1 − P(A) | And: P(A∩B) = P(A)×P(B) if independent | Or: P(A∪B) = P(A)+P(B)−P(A∩B)

For independent events, the probability of both occurring is the product of individual probabilities. For mutually exclusive events, P(A and B) = 0. The addition rule for P(A or B) subtracts the intersection to avoid counting it twice. The complement rule states that P(not A) = 1 minus P(A) because all probabilities sum to 1.

Loading calculator…
TL;DR

Enter probabilities for events A and B to calculate basic probability, complement, P(A and B), or P(A or B).

Enter the probability of one or two events (between 0 and 1) to compute basic probability, complement, P(A and B), or P(A or B). Results are shown as percentage, decimal, and approximate fraction. Covers independent and mutually exclusive event assumptions.

Probability measures the likelihood of an event on a scale from 0 (impossible) to 1 (certain). The probability of drawing an ace from a shuffled deck is 4/52 ≈ 0.077 or about 7.7%. The complement (drawing a non-ace) is 1 minus that, or about 92.3%. Combined event rules extend this to two events. For independent events (where one outcome does not affect the other), P(A and B) = P(A) × P(B). For mutually exclusive events (where A and B cannot both occur), P(A and B) = 0 and P(A or B) = P(A) + P(B). This calculator covers all three common cases: basic probability with its complement, the intersection of two events, and the union of two events.

You came here because

Common situations

  • Risk assessment: If two independent systems each have a 5% failure rate, P(at least one fails) = P(A or B) = 1 - (0.95 × 0.95) = 9.75%. Use the "or" mode with P(A)=P(B)=0.05.
  • Card and dice games: Rolling two dice: P(getting a 6 on die 1 or die 2) with independent rolls of 1/6 each. The or calculation gives the combined probability.
  • Medical testing: If a test has 95% sensitivity (P(positive | disease) = 0.95) and the disease has 1% prevalence, use the basic mode to understand what a positive result means.
  • Weather and planning: P(rain) = 0.4 on Saturday, P(rain) = 0.3 on Sunday, independent days. P(rain at least one day) uses the "or" formula.

Under the hood

How the calculation works

  1. 1Select the calculation type: basic, and (intersection), or or (union).
  2. 2Enter P(A) as a decimal between 0 and 1. For example, 0.3 means a 30% chance.
  3. 3For "and" and "or" modes, also enter P(B) and specify whether the events are independent or mutually exclusive.
  4. 4The calculator applies the appropriate probability rule.
  5. 5Results are displayed as percentage, decimal, and approximate fraction.

Show me

A real example

Example: P(rain) = 0.3, P(wind) = 0.4, independent

  1. 1P(A) = 0.3, P(B) = 0.4
  2. 2P(A and B) = 0.3 × 0.4 = 0.12 (12%)
  3. 3P(A or B) = 0.3 + 0.4 - 0.12 = 0.58 (58%)
  4. 4P(not A) = 1 - 0.3 = 0.7 (70%)
  5. 5P(neither) = 1 - 0.58 = 0.42 (42%)
Result: P(rain and wind) = 12%, P(rain or wind) = 58%

Watch out for

What can go wrong

  • Adding probabilities without subtracting the overlap: P(A or B) is not simply P(A) + P(B) unless the events are mutually exclusive. For independent events, the intersection P(A and B) must be subtracted to avoid counting it twice.
  • Confusing independent with mutually exclusive: Independent events can both occur; mutually exclusive events cannot. Coin flips are independent. Getting heads and tails on the same flip are mutually exclusive.
  • Entering probabilities greater than 1: Probabilities must be between 0 and 1. If you have a percentage (like 30%), divide by 100 first to get 0.3 before entering it.
  • Assuming all real-world events are independent: Many practical events are not independent. Weather on consecutive days, stock returns in a downturn, and related system failures are all correlated. Check independence assumptions before using the multiplication rule.

Glossary

Related concepts

TermDefinition
Complement ruleP(not A) = 1 − P(A). Since all probabilities in a sample space sum to 1, the probability of an event not occurring is 1 minus the probability that it does.
Independent eventsTwo events are independent if the occurrence of one does not affect the probability of the other. Coin flips are independent: P(heads on flip 2) = 0.5 regardless of flip 1.
Mutually exclusive eventsTwo events are mutually exclusive if they cannot both occur. Rolling a 3 and rolling a 5 on one die are mutually exclusive. P(A and B) = 0 for mutually exclusive events.
Addition ruleP(A or B) = P(A) + P(B) − P(A and B). The subtraction avoids double-counting the overlap. For mutually exclusive events, P(A and B) = 0, so P(A or B) = P(A) + P(B).

Make it better

Pro tips

  • Use the complement for "at least one" problems: P(at least one event in n trials) = 1 − P(none). For example, P(at least one head in 3 flips) = 1 − (0.5)^3 = 0.875. Often easier than summing individual cases.
  • Express results in all three forms: Probabilities as fractions (like 1/6 or 3/8) are intuitive for card and dice problems. Percentages work for risk and weather. Decimals are needed for formula chaining.
  • Check with the sure-thing rule: P(A or not A) must equal 1. After any calculation, confirm that the event probability plus its complement adds up to 1. If not, you have an error somewhere.
  • For multiple independent events, multiply: P(A and B and C) = P(A) × P(B) × P(C) when all three are independent. Extending the and rule to three or more events is straightforward multiplication.

Common questions

Frequently asked questions

For related calculations, try the Combinations Calculator, Percentage Calculator, or Standard Deviation. Browse all Calculator Online calculators for the full catalog.

Methodology

This calculator uses the standard probability calculator formula. Results match those from established financial, scientific, and health references.

Reviewed by

Calculator Online Editorial Team. All formulas verified against authoritative sources before publication.

Last updated

2026-05-24

Sources & References