Probability Calculator

Two independent events, repeated trials and binomial probabilities, with steps.

What do you want to calculate?

0.6, 60% or 3/5

Assumes independent events: one result doesn’t change the chance of another.

Try an example

P(A and B)

0.3

If A and B are independent, the chance that both happen is 0.3 (30%).

Working
P(A and B) = 0.6 × 0.5 = 0.3
Also
P(A or B) = 0.6 + 0.5 − 0.3 = 0.8
And
P(neither) = (1 − 0.6) × (1 − 0.5) = 0.2

Fix the highlighted field to update the result.

All results

Probabilities as decimals, percentages and odds
EventProbabilityPercentAbout
A and B0.330%1 in 3.333
A or B (at least one)0.880%1 in 1.25
Exactly one0.550%1 in 2
Neither0.220%1 in 5
Not A0.440%1 in 2.5
Not B0.550%1 in 2

How to use

  1. Pick a calculation: two events, repeated tries or binomial (exactly k).
  2. Enter each probability as a decimal (0.6), a percentage (60%) or a fraction (1/6).
  3. Read the main answer, the working with your numbers, and every related result as a decimal, percentage and “1 in N”.

All results assume independent events: one result doesn’t change the chance of another.

Probability formulas

  • Both: P(A and B) = P(A) × P(B)
  • Either: P(A or B) = P(A) + P(B) − P(A and B)
  • Not A: P(not A) = 1 − P(A)
  • At least once in n tries: 1 − (1 − p)ⁿ
  • Exactly k of n (binomial): C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ, where C(n, k) counts the ways to choose k of the n trials

The binomial mean is np and the standard deviation is √(np(1 − p)).

Examples

  • P(A) = 0.6 and P(B) = 0.5: both happen with 0.6 × 0.5 = 0.3; at least one with 0.6 + 0.5 − 0.3 = 0.8.
  • At least one six in 4 dice rolls: 1 − (5/6)⁴ = 0.517747, just over half.
  • Exactly 3 heads in 10 coin flips: C(10, 3) × 0.5³ × 0.5⁷ = 120 × 0.125 × 0.0078125 = 0.117188.
  • A 1% risk on each of 50 tries: the chance it happens at least once is 1 − 0.99⁵⁰ ≈ 0.395.

Chance of at least one six

Rolls Probability Percent
1 0.166667 16.67%
2 0.305556 30.56%
4 0.517747 51.77%
6 0.665102 66.51%
10 0.838494 83.85%
20 0.973916 97.39%
Common mistakes

Adding probabilities for “A or B” counts the overlap twice, so 0.6 + 0.5 would give an impossible 1.1.

Past results don’t change independent trials. After five heads, a fair coin is still 50/50; expecting a “due” result is the gambler’s fallacy.

Independent is not the same as mutually exclusive. Mutually exclusive events can’t happen together, so P(A and B) = 0 and this calculator’s formulas don’t apply.

To turn a probability into a percentage or compare two chances, try the percentage calculator.

Frequently asked questions

How do I find the probability of A and B both happening?

Multiply them, as long as the events are independent: P(A and B) = P(A) × P(B). With P(A) = 0.6 and P(B) = 0.5, the chance that both happen is 0.3.

Why can’t I just add probabilities for “A or B”?

Because outcomes where both happen would be counted twice. Subtract the overlap: P(A or B) = P(A) + P(B) − P(A and B). For 0.6 and 0.5 that gives 0.8, not 1.1.

What is the chance of at least one success in n tries?

It is 1 − (1 − p)ⁿ, one minus the chance of failing every time. The chance of at least one six in four dice rolls is 1 − (5/6)⁴ ≈ 0.518.

After five heads in a row, is tails more likely?

No. Each flip of a fair coin is independent, so the next one is still 50/50. Expecting a “due” result is known as the gambler’s fallacy.

What is a binomial probability?

It is the chance of exactly k successes in n independent tries with the same success chance p each time: C(n, k) × pᵏ × (1 − p)ⁿ⁻ᵏ.

Are independent events the same as mutually exclusive events?

No. Independent events don’t affect each other’s chances; mutually exclusive events can’t happen together. If one excludes the other, knowing one happened changes the other’s chance to 0.

Embed this calculator

Add this calculator to your own website for free. Copy the code below and paste it into your page’s HTML. The attribution link is optional.