Probability Calculator

Combine two independent event probabilities: and, or, neither.

%
%
A and B —
A ko B —
A only —
B only —
Neither —
Not both —

Results update as you type.

Shin wannan Kalkulator ya ba ka amsa madaidaiciya?

Game da wannan Kalkulator

This probability calculator takes the chance of two independent events A and B and works out the key combined probabilities: both happening (A and B), at least one happening (A or B), only one of them, and neither happening. It assumes the events are independent, meaning one occurring does not change the chance of the other. Enter each probability as a percentage between 0 and 100.

The rules it applies are the standard ones for independent events: P(A and B) = P(A) × P(B); P(A or B) = P(A) + P(B) − P(A and B); P(neither) = (1 − P(A)) × (1 − P(B)); and "only A" is P(A) − P(A and B). A pie chart splits the sample space into the four mutually exclusive outcomes (both, A only, B only, neither).

Worked example: with P(A) = 50% and P(B) = 30%, both happen with probability 0.5 × 0.3 = 15%, at least one happens with probability 0.5 + 0.3 − 0.15 = 65%, and neither happens with probability 0.5 × 0.7 = 35%. These four outcomes always add up to 100%.

Tambayoyi da ake yi da yawa

How do I find the probability of two events both happening?

For independent events, multiply their probabilities: P(A and B) = P(A) · P(B). A 50% event and a 30% event both occurring is 0.5 × 0.3 = 0.15, or 15%.

Me yake nufin 'yanci a nan?

Independent means the outcome of one event has no effect on the other — like two separate coin flips. If the events influence each other (are dependent), these formulas do not apply and you need conditional probabilities.

Ta yaya ake kimanta "A ko B"?

P(A ko B) = P(A) + P(B) − P(A da B). Ƙarawa da ƙuntata zai hana sakamakon rabawa daga a lissafa sau biyu, don haka sakamakon ba zai iya wuce 100% ba.

Ta yaya zan samu yiwuwar cewa ba wani abu ba zai faru?

Multiply the chances of each event not happening: P(neither) = (1 − P(A)) × (1 − P(B)). For a 50% and a 30% event that is 0.5 × 0.7 = 0.35, or 35%.

Mene ne bambanci tsakanin "A ko B" da "daya daga cikinsu kawai"?

"A or B" includes the case where both happen, while "only one" excludes it. "Only one" equals P(A or B) minus P(A and B), counting the two exclusive-either outcomes but not the overlap.

Shin idan al'amura biyu ba su zama daidai ba?

These formulas assume independence. If one event affects the other you need conditional probability, P(A and B) = P(A) × P(B | A), and this calculator will overstate or understate the combined chances.

Can these probabilities add up to more than 100%?

The four mutually exclusive outcomes — both, A only, B only and neither — always sum to exactly 100%. Individual figures like "A or B" can be large, but they never exceed 100% because the overlap is subtracted.

❤️ Love Calculator.Free? Share

𝕏  X Facebook Reddit
API — amfani da wannan calculator daga code

Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →

Endpoint

GET https://calculator.free/api/v1/probability/

curl

curl "https://calculator.free/api/v1/probability/?pa=50&pb=30"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/probability/?" + new URLSearchParams({
    "pa": "50",
    "pb": "30"
  }));
const data = await r.json();
console.log(data.results);

Results are estimates for general guidance only, not financial, medical or tax advice.