One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Probability Calculator

Quick Answer

For independent events, P(A and B) = P(A) × P(B) and P(A or B) = P(A) + P(B) − P(A and B). With P(A) = 0.4 and P(B) = 0.3, P(A and B) = 0.12 and P(A or B) = 0.58. For repeated trials, use the binomial formula.

Result

P(A or B) = 0.580000

P(A and B)0.120000
P(not A)0.600000
P(not B)0.700000
P(neither)0.420000
P(A given B)0.400000
Step-by-step calculation
  1. Independent: P(A and B) = P(A) × P(B)
  2. P(A or B) = P(A) + P(B) − P(A and B)
  3. = 0.4 + 0.3 − 0.12 = 0.58

About the Probability Calculator

Choose two events and say whether they are independent (one does not affect the other) or mutually exclusive (they cannot both happen). The calculator returns the probability of both, either, neither and the complements.

The binomial mode answers questions like “what is the chance of exactly 3 successes in 10 attempts?” by using the exact binomial distribution. It also shows the cumulative probabilities, the expected number of successes and the standard deviation.

How to Use the Probability Calculator

  1. Choose two events or repeated trials.
  2. Enter the probabilities (between 0 and 1).
  3. Read each probability.

Formula and Method

Independent

P(A ∩ B) = P(A) P(B)

Union

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

Binomial

P(X = k) = C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ

Worked Example

Two independent events

Input: P(A) = 0.4, P(B) = 0.3

  • P(A and B) = 0.12
  • P(A or B) = 0.4 + 0.3 − 0.12

Result: 0.58.

Frequently Asked Questions

What is the difference between independent and mutually exclusive?

Independent events do not influence each other. Mutually exclusive events cannot happen together, so they are strongly dependent.

What is conditional probability?

P(A given B) = P(A and B) ÷ P(B).

When do I use a binomial?

For a fixed number of independent trials with the same success probability.

Can probabilities be above 1?

No. They range from 0 to 1.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.