Home › Calculators › Probability Calculator

Probability Calculator

Find the probability of A and B, A or B, not A and conditional probability for two events, or the chance that something happens at least once in a number of tries. Type probabilities as decimals, percents or fractions.

Last updated:

Calculate

Decimal (0.5), percent (50%) or fraction (1/2)

Decimal, percent or fraction

Probability that both happen

Decimal, percent or fraction

Binomial probability of exactly k successes

Enter your values to see the result.
Advertisement
Advertisement

How to use the Probability Calculator

  1. Choose a mode: two events A and B, or at least once in n trials.
  2. Enter the probabilities as a decimal (0.25), a percent (25%) or a fraction (1/4).
  3. Pick how A and B relate: independent, mutually exclusive, or enter P(A and B) if you know it.
  4. Press Calculate probability to see every combined probability with the formula steps.
  5. Copy the results or download the table as CSV.

Probability formulas

What you wantFormulaExample (P(A) = 0.5, P(B) = 0.2, independent)
Not A (complement)P(A') = 1 − P(A)0.5
A and B (independent)P(A) × P(B)0.1
A and B (dependent)P(A) × P(B | A)—
A or BP(A) + P(B) − P(A and B)0.6
Exactly one (xor)P(A) + P(B) − 2·P(A and B)0.5
Neither1 − P(A or B)0.4
A given BP(A and B) ÷ P(B)0.5
At least once in n trials1 − (1 − p)n—
Exactly k in n trialsC(n, k) · pk · (1 − p)n−k—

The overlap P(A and B) must be between max(0, P(A) + P(B) − 1) and min(P(A), P(B)); the calculator checks this when you enter it yourself.

Common probabilities for reference

EventFractionDecimalPercent
Coin lands heads1/20.550%
Die shows a six1/60.166716.67%
Two dice total 76/36 = 1/60.166716.67%
Two dice both six1/360.02782.78%
Draw a heart from a 52-card deck13/52 = 1/40.2525%
Draw an ace4/52 = 1/130.07697.69%
At least one six in 4 rolls1 − (5/6)40.517751.77%
At least one double six in 24 rolls of two dice1 − (35/36)240.491449.14%

The last two rows are the classic problem of the Chevalier de Méré that led Pascal and Fermat to found probability theory: the first bet wins slightly more than half the time, the second slightly less.

Frequently asked questions

How do you calculate the probability of A and B?

For independent events, multiply: P(A and B) = P(A) × P(B). For example a coin landing heads (1/2) and a die showing six (1/6) gives 1/12, about 8.33%. For dependent events use P(A and B) = P(A) × P(B|A).

How do you calculate the probability of A or B?

Use the addition rule P(A or B) = P(A) + P(B) − P(A and B). Subtracting the overlap stops it being counted twice. For mutually exclusive events the overlap is 0, so the probabilities simply add.

What is conditional probability?

P(A|B) is the probability of A given that B has happened. It equals P(A and B) ÷ P(B). If A and B are independent, P(A|B) is the same as P(A).

How do I find the probability of something happening at least once?

Calculate the chance it never happens and subtract from 1: P(at least once) = 1 − (1 − p)^n. The chance of rolling at least one six in 4 rolls is 1 − (5/6)^4 ≈ 51.77%.

What is the difference between independent and mutually exclusive?

Independent events do not affect each other, so both can happen (P(A and B) = P(A) × P(B)). Mutually exclusive events cannot happen together (P(A and B) = 0). Two events with non-zero probabilities cannot be both.

Can a probability be greater than 1?

No. A probability is always between 0 (impossible) and 1 (certain), or 0% to 100%. If you type a whole number between 1 and 100, the calculator reads it as a percent.

How do I convert probability to odds?

The "1 in X" figure is 1 ÷ p. A probability of 0.04 is 1 in 25. Odds against are (1 − p) : p, so 0.04 is 24 to 1 against.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Percentage CalculatorWork out percentages, increases and decreases.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Boolean Algebra SimplifierSimplify boolean expressions or minterm lists to minimal SOP and POS with Quine-McCluskey steps.Contract BridgePlay contract bridge with 3 computer players: SAYC-style bidding, declarer play, duplicate scoring.Chess PuzzlesSolve chess puzzles online: mate in 1, 2 and 3 plus tactics, with hints, a rating and streaks.CribbagePlay Cribbage vs the computer with automatic pegging, hand and crib scoring on an animated board.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.
See all 52 Statistics & Probability Calculators →