Calcul De La Probabilité — Probability Calculator

Free · browser-only · no sign-up

Calcul De La Probabilité

Type in two probabilities — or a handful of outcomes — and read the union, intersection, conditional and Bayes results instantly as decimal, percent, simplified fraction and odds. Nothing leaves your browser.

P(A ∪ B) P(A ∩ B) P(A | B) Bayes odds & fractions

Probability calculator

Edit any field — the answer updates as you type.

Switches which inputs are used; entered values are kept.
Only used in two-event mode.
0 to 1, or a percent like 25%.
Whole number of favourable outcomes.
Whole number greater than 0. Try 6 for a dice roll.
Decimal 0–1, or a percent like 50%.
Decimal 0–1, or a percent like 50%.

How it works

01 · Choose
Pick your mode

Single event counts, two events with a relationship, or a conditional / Bayes setup.

02 · Type
Enter the numbers

Decimals (0.25) or percents (25%) both work; counts must be whole numbers.

03 · Read
Copy the answer

Decimal, percent, simplified fraction and odds — refreshed on every keystroke.

Formulas used

Everything below is computed in your browser with these standard identities.

P(A ∪ B)

Independent: P(A) + P(B) − P(A)·P(B). Mutually exclusive: P(A) + P(B). General: P(A) + P(B) − P(A ∩ B).

P(A ∩ B)

Independent: P(A)·P(B). Mutually exclusive: 0. General: read straight from your input.

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

Bayes' rule in its joint-probability form; undefined when P(B) = 0.

P(not A) = 1 − P(A)

The complement — also the numerator of the odds against.

Odds = P / (1 − P)

Reported as a whole-number ratio, e.g. P = 0.25 → 1 : 3 in favour.

Fraction

Decimals are converted with continued fractions and reduced, so 0.166666… reads as 1/6.

FAQ

Independent or mutually exclusive — which do I pick?

Independent means one event happening does not change the other's probability (two coin flips). Mutually exclusive means they cannot happen at the same time (one dice roll landing on 2 or 5). If you already know the joint probability P(A ∩ B), choose general.

Can I type a percentage instead of a decimal?

Yes — enter 25% or 0.25. Anything outside 0–1 (0%–100%) is rejected with an inline message instead of producing an impossible result.

What happens when P(B) = 0 in conditional mode?

P(A | B) = P(A ∩ B) / P(B) has no answer, so the tool prints "undefined (P(B) = 0)" instead of Infinity or NaN.

Why does the result update while I type?

The whole calculator is plain JavaScript running in your browser — there is no submit button, no rounding round-trip and no data sent anywhere.

How accurate are the fractions?

Counts are reduced exactly (3 of 6 → 1/2). Decimal inputs use a continued-fraction approximation with a denominator cap, which is exact for any short decimal like 0.125 → 1/8.

Latest updates

More free tools

Step-by-step guides in our blog & guides.

Free Small-Shop Bookkeeping Tracker (Sales, Expenses, Profit & Cash Book) Multi-Currency Converter Recipe Calorie Calculator Free Online Twitch Overlay Maker Video First Last Frame Extractor Facebook Ad Mockup Generator How Do I Create A Free Lease Agreement Images to PDF Converter Code 128 Barcode Generator Convertisseur Webp En Jpg