Math

Probability Calculator

Calculate event probability, its complement, or the union and intersection of independent events.

Quick guide

How to use the Probability Calculator

  1. Enter or choose calculation mode, favorable outcomes, total outcomes, probability a, probability b.
  2. Select Calculate probability.
  3. Review the main result, supporting breakdown, and step-by-step calculation notes.
  4. Copy the output or download the generated file when available.

What this tool does

Calculate single-event probability, its complement (event does not occur), and the intersection or union of two independent events. Results include exact percentages, decimal probabilities, and odds against the event so you can interpret outcomes in either statistical or everyday terms.

P(A) = favorable / total · P(A′) = 1 − P(A) · P(A ∩ B) = P(A)·P(B) · P(A ∪ B) = P(A) + P(B) − P(A)·P(B)

Calculation method

  1. For single or complement modes, validate whole-number counts with 0 ≤ favorable ≤ total and divide favorable by total.
  2. For independent-event modes, validate probabilities A and B lie within [0, 1].
  3. Apply the multiplication rule P(A)·P(B) for “A and B” or the inclusion-exclusion rule P(A) + P(B) − P(A)·P(B) for “A or B.”

Example: independent events A (0.4) and B (0.5)

Input: Mode: A or B (independent); P(A) = 0.4; P(B) = 0.5

Result: 70% (Decimal 0.7 · odds against 0.42857143 to 1)

Adding 0.4 + 0.5 gives 0.9, but both occurring together (0.4 × 0.5 = 0.2) was counted twice. Subtracting 0.2 leaves 0.70, or 70%.

Practical uses

  • Introductory probability and statistics homework
  • Risk analysis for independent system failures
  • Board-game and tabletop dice odds checks
  • Quick complement and at-least-once estimates

Accuracy tips and common mistakes

  • Enter probabilities for A and B as decimals between 0 and 1 (for example 0.25 for 25%).
  • The “A and B” and “A or B” formulas assume independence; dependent events require conditional probability P(B|A).
  • When using independent modes, leave outcome count fields untouched—only the active mode’s fields are validated.
Frequently Asked

Probability Calculator – Frequently Asked Questions

Common questions, edge-cases, and mathematical explanations.

Why do you subtract P(A) × P(B) when calculating “A or B”?

Simply adding P(A) + P(B) double-counts the overlap where both A and B occur simultaneously. Subtracting their intersection prevents probabilities from exceeding 100%.

What do “odds against” mean in the result line?

Odds against equal (1 − P) ÷ P. For a 25% probability (0.25), odds against are 0.75 ÷ 0.25 = 3 to 1.

Does “A and B” work for drawing cards without replacement?

No. Drawing without replacement makes the second draw dependent on the first. Use conditional probability or the hypergeometric distribution for dependent draws.

Analytics preferences

Optional Google Analytics cookies help us understand visits and improve our tools. Analytics is off until you allow it. Your tool inputs and files are never included in our analytics events. Read our privacy policy.

Analytics is off.