Probability Calculator
How it Works
01Enter Favorable Outcomes
Count the outcomes that satisfy your event condition.
02Enter Total Outcomes
Provide the total number of equally likely possible outcomes.
03Get Probability
P(A) = favorable/total — shown as decimal, fraction, and percentage.
04Complement & Odds
Complement P(A) + P(not A) = 1. Odds = P/(1−P).
Introduction
At its simplest, probability is computed as the number of favorable outcomes divided by the total number of equally likely outcomes. This classical definition, formulated by Pierre-Simon Laplace in the 18th century, underpins everything from simple coin flips and dice rolls to complex statistical models used in machine learning and risk analysis.
This calculator covers multiple probability scenarios: single event probability, complement events (probability that something does NOT happen), probability of independent events both occurring (AND), probability of at least one of two events occurring (OR), and conditional probability (the probability of A given B has occurred).
Probability theory is the foundation of statistics, data science, gambling mathematics, insurance actuarial science, quantum mechanics, and artificial intelligence. Every statistical test you perform is built on probability — p-values, confidence intervals, and Bayesian inference all derive from core probability rules.
Whether you are a student learning probability for the first time, a researcher computing event likelihoods, or a data scientist working with probabilistic models, this calculator provides instant results for the most common probability calculations encountered in practice.
The formula
P(A) = favorable outcomes / total outcomes
Complement:
P(A') = 1 − P(A)
AND (Independent Events):
P(A ∩ B) = P(A) × P(B)
OR (Any/Union):
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Conditional Probability:
P(A|B) = P(A ∩ B) / P(B)
Bayes Theorem:
P(A|B) = [P(B|A) × P(A)] / P(B)
Calculation In Practice
Draw one card from a standard 52-card deck.
P(Ace) = 4/52 = 1/13 ≈ 0.0769 (7.69%)
P(Not Ace) = 1 − 1/13 = 12/13 ≈ 0.9231
P(Ace or King) = 4/52 + 4/52 = 8/52 = 2/13 ≈ 0.154
P(Heart AND Ace) = 1/52 ≈ 0.0192
Example: Two Dice
P(sum = 7) = 6/36 = 1/6 ≈ 0.1667 (16.67%)
P(sum ≠ 7) = 5/6 ≈ 0.8333
Typical Use Cases
Games and Gambling
Risk Analysis
Medical Diagnosis
Machine Learning
Insurance Actuarial Science
Technical Reference
1. P(A) ≥ 0 for all events A
2. P(Ω) = 1 (sample space has probability 1)
3. For mutually exclusive events: P(A ∪ B) = P(A) + P(B)
Expected Value:
E(X) = Σ [xᵢ × P(xᵢ)]
Types of Probability:
Common Distributions:
Key Takeaways
The four axioms of probability — non-negativity, normalization, and countable additivity — ensure mathematical consistency. The addition and multiplication rules extend these axioms to compound events. Conditional probability and Bayes' theorem allow us to update probabilities as new evidence becomes available.
For complex scenarios involving many events, simulation methods (Monte Carlo) are often more practical than exact calculation. But for straightforward probability computations, this calculator provides immediate, exact results for the most common types of probability problems.