Skip to main contentSkip to secondary navigation
HomemathProbability

Probability Calculator

Calculate P(A and B), P(A or B), P(not A), P(not B), and P(A|B) for independent or mutually exclusive events. Includes SVG Venn diagram and educational explanations.

✓ Formula verified: January 2026
📐

Probability

Results update instantly as you type

Enter Values

P(A ∩ B) — Probability of A and B
0.15
↑ Gain
P(A)0.5
P(B)0.3
P(¬A) — Probability of Not A0.5
P(¬B) — Probability of Not B0.7

P(A|B) — Conditional Probability of A given B

0.5

P(A) as %

50.0%

P(B) as %

30.0%

Event Type

Independent

http://127.0.0.1:54963/math/probability-calculator
Independent Events AnalysisP(A)=50.0% · P(B)=30.0%

P(A)

0.5

50.0%

P(B)

0.3

30.0%

P(A ∩ B)

0.15

15.0%

P(A ∪ B)

0.65

65.0%

P(¬A) — Not A

0.5 (50.0%)

P(¬B) — Not B

0.7 (70.0%)

P(A|B) — A given B

0.5 (50.0%)

Independent: P(A|B) = P(A)

Relationship

Independent

Events do not affect each other

Venn Diagram

ABA∩BP(A)=50.0%P(B)=30.0%

Why Independent Events?

Independent events have no influence on each other. The occurrence of B does not change the probability of A, so P(A|B) = P(A). The joint probability is the product: P(A ∩ B) = P(A) × P(B).

Examples: Flipping a coin and rolling a die; drawing two cards with replacement; weather in two different cities on the same day (approximately).

The addition rule for independent events: P(A ∪ B) = P(A) + P(B) − P(A)P(B). The overlap P(A ∩ B) is subtracted to avoid double-counting.

Calculation Breakdown

P(A ∩ B) — Intersection

P(A∩B) = P(A) × P(B) = 0.5 × 0.3 = 0.15

P(A ∪ B) — Union

P(A∪B) = P(A) + P(B) − P(A∩B) = 0.5 + 0.3 − 0.15 = 0.65

Complements

P(¬A) = 1 − 0.5 = 0.5

P(¬B) = 1 − 0.3 = 0.7

P(A|B) — Conditional

Independent: P(A|B) = P(A) = 0.5

Key Rules Summary

Addition Rule

P(A∪B) = P(A) + P(B) − P(A∩B)

Multiplication Rule

P(A∩B) = P(A) × P(B) (independent)

Complement Rule

P(¬A) = 1 − P(A)

Conditional Probability

P(A|B) = P(A∩B) ÷ P(B)

The Formula

P(A∪B) = P(A) + P(B) − P(A∩B) | P(A|B) = P(A∩B) ÷ P(B)

Probability quantifies the likelihood of events occurring. The addition rule finds the probability of A or B happening. The conditional probability formula calculates the probability of A given that B has occurred. For independent events, P(A∩B) = P(A) × P(B). For mutually exclusive events, P(A∩B) = 0.

Variable Definitions

P(A)

Probability of A

The likelihood of event A occurring, ranging from 0 (impossible) to 1 (certain). Represented as a decimal or percentage.

P(B)

Probability of B

The likelihood of event B occurring, ranging from 0 to 1.

P(A∩B)

Joint Probability

The probability that both A and B occur simultaneously. For independent events: P(A) × P(B). For mutually exclusive events: 0.

P(A∪B)

Union Probability

The probability that A or B (or both) occur. Uses the addition rule: P(A) + P(B) − P(A∩B).

P(A|B)

Conditional Probability

The probability of A occurring given that B has already occurred. For independent events: P(A). For mutually exclusive: 0.

How to Use This Calculator

  1. 1

    Enter P(A), the probability of event A (0 to 1, where 0.5 = 50%).

  2. 2

    Enter P(B), the probability of event B (0 to 1).

  3. 3

    Select whether the events are Independent or Mutually Exclusive.

  4. 4

    Review all computed probabilities: P(A∩B), P(A∪B), P(¬A), P(¬B), and P(A|B).

  5. 5

    Probabilities are also displayed as percentages for easier interpretation.

Venn diagrams visualize sample spaces and event probabilities

Understanding the Concept

Probability theory is the foundation of statistics, data science, risk assessment, and decision-making under uncertainty. Two key concepts are independence and mutual exclusivity. Independent events have no influence on each other — flipping a coin twice yields independent outcomes; knowing the first flip was heads tells you nothing about the second. Mutually exclusive events cannot happen simultaneously — drawing a single card cannot be both a heart and a spade. The addition rule P(A∪B) = P(A) + P(B) − P(A∩B) accounts for double-counting the overlap; the subtraction is needed because the intersection is included in both P(A) and P(B). Conditional probability P(A|B) measures how the occurrence of B changes the likelihood of A — this is the foundation of Bayes' theorem, which underlies modern machine learning and spam filtering. When events are independent, P(A|B) = P(A) — B's occurrence does not change A's probability. These concepts are essential in medical testing (sensitivity and specificity), quality control (defect rates), financial risk modeling, and scientific hypothesis testing.

Frequently Asked Questions

Related Guides

Related Calculators

Reviews

No reviews yet. Be the first to share your experience with Probability Calculator.

Write a Review

Your Rating *

0/1000

0/50

Related Calculators

Related Guides (3)

Medical Disclaimer: The health and fitness calculators on this site are for informational and educational purposes only. They are not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with any questions about your health.

Financial Disclaimer: The finance calculators on this site are for informational purposes only and do not constitute financial advice. Results are estimates based on the inputs provided and may vary. Consult a qualified financial advisor before making investment or financial decisions.

© 2026 TheCalcUniverse. All results are for informational purposes only.

Fast, free, and privacy-first.