Probability Calculator
ConvertEverything runs locally in your browser — nothing is uploaded
Four probability calculations live in one tool, chosen from a dropdown. Combinations and permutations use BigInt, so `C(100, 50)` comes out as its exact 30-digit value rather than scientific notation, with the formula alongside. Conditional probability and Bayes give P(A|B) and also write out the substitution — the whole point of this kind of tool is seeing how the answer is reached. Odds convert between decimal, fractional, American and implied probability; with two odds the tool also works out how far the implied probabilities exceed 100%, which is the bookmaker’s margin. Expected value takes one outcome per line and returns the expectation, variance and standard deviation. ⚠️ In expected-value mode the probabilities must sum to exactly 1, otherwise the tool raises an error — normalising silently would let you believe your probabilities are fine when a row is missing or wrong. Everything runs locally in your browser; nothing is uploaded.
Features
- Combinations C(n,r) and permutations P(n,r) with exact BigInt values, not scientific notation
- The formula and its simplified form are given as well
- Conditional probability via Bayes, with the substitution written out step by step
- Decimal, fractional, American and implied odds all converted
- With two odds, the sum of implied probabilities and the bookmaker margin
- Expected value, variance and standard deviation, with each outcome’s contribution
- Probabilities that do not sum to 1 raise an error instead of being normalised
- All four calculations run on your machine; nothing is uploaded
How to use
- Choose a mode: combinations, probability, odds, or expected value
- Enter the data for that mode (n and r; P(A), P(B|A), P(B); one or two odds; or “outcome, probability, payoff” per line)
- The result appears as you type and every row can be copied
FAQ
- Can C(100, 50) really be computed exactly?
- Yes. The whole calculation uses BigInt, free of the 53-bit limit of a double. The answer is 100891344545564193334812497256 — thirty digits — and the trailing `497256` would simply be lost with ordinary floating point.
- How is the bookmaker margin worked out?
- Take the reciprocal of each decimal odds to get its implied probability; they usually add up to more than 100%, and the excess is the bookmaker’s profit. For odds of 1.5 and 2.8 the implied probabilities sum to about 102.38%, so the margin is about 2.38%.
- Why does a probability sum other than 1 stop the tool?
- Because not normalising is deliberate. If the tool quietly turned 0.3 + 0.3 into 1, you would believe your probabilities were fine when a row is missing or wrong. Reporting the error and the actual sum is what lets you fix the data.
- Why show the substitution for conditional probability?
- Because P(A|B) and P(B|A) are very easy to mix up. Writing out the step where P(B|A), P(A) and P(B) go into the formula lets you check at a glance that the two directions were not swapped.
Related tools
Percentage Calculator
ConvertType “15% of 120” or “from 100 to 120” and get the share, rate of change, price after a percentage and percentage-point comparison at once.
Coin Flip
GeneratorsFlip 1 to 1000 coins at once, label the two sides, and get each result plus counts and shares. Reproducible with a seed, all in your browser.
Random Number Generator
GeneratorsGenerate random integers or decimals with a chosen range, count and decimal places, plus deduplication, sorting and binary, octal or hex output.
Timestamp Converter
ConvertConvert Unix timestamps into dates and back, telling seconds, milliseconds, microseconds and nanoseconds apart, with Windows FILETIME and decimals.
Date Calculator
ConvertCount the days, weeks or months between two dates, or shift a date by any of those. Dates can be picked from a calendar or pasted in — nothing is uploaded.
Number Base Converter
ConvertConvert numbers between binary, octal, decimal, hex, base 36 and base 64, with long IDs converted digit for digit. Runs in your browser.