Compute an exact factorial of any size, with its digit count and trailing zeros, well past where floating point fails.
Probability Calculator
Compute a simple probability exactly from favourable and total outcomes, with its complement and odds.
- Free
- No sign-up
- Runs in your browser
Input
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter how many outcomes count as success and how many there are in total.
- 2
This assumes every outcome is equally likely.
Questions about Probability Calculator
What are odds, and how do they differ from probability?
Odds compare favourable to unfavourable outcomes; probability compares favourable to total. A probability of 1/4 is odds of 1:3 in favour, not 1:4 - there is one way to win and three ways to lose. Betting odds are usually quoted against, so the same chance appears as 3:1.
When does counting outcomes not give the probability?
Whenever the outcomes are not equally likely. The sum of two dice has 11 possible values, but they are not each 1/11 - a 7 has six ways to happen and a 12 has one. Counting works only when the outcomes you are counting are genuinely interchangeable.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Probability Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Probability Calculator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Probability Calculator uploaded or stored?
No. The Probability Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Count ordered selections, P(n, r) = n!/(n-r)!, exactly and without building a huge factorial.
Count unordered selections, C(n, r), exactly using the multiplicative formula rather than factorials.
Compute binomial probabilities exactly as fractions, including the cumulative tails, with no loss of significance.
Compute normal distribution probabilities and density from a value, mean and standard deviation, to a stated precision.
Compute Poisson probabilities with the rational part kept exact, so the factorial contributes no rounding.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.