Beta Distribution Calculator

This beta distribution calculator gives the density f(x), the cumulative probability P(X ≤ x) and P(X > x) for shape parameters α and β, plus mean, median, mode, variance, skewness and the quantile for a probability p.

Example: Shape parameter α (alpha) 2 · Shape parameter β (beta) 5 · Value x (between 0 and 1) 0.3 · Probability p for the quantile 0.95 → Result: P(X ≤ 0.3) = 0.579825 · density f(0.3) = 2.1609. Source: NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.6.17 Beta Distribution: f(x) = x^(p−1)(1−x)^(q−1)/B(p,q), F(x) = I_x(p,q), mean p/(p+q), mode (p−1)/(p+q−2), standard deviation, skewness (read 15.10.2026). Updated: .

Greater than 0, e.g. number of successes + 1.
Greater than 0, e.g. number of failures + 1.
Between 0 and 1, e.g. 0.95 for the 95th percentile.
My ToolboxYour inputs are saved in this browser only.

Result

Result
P(X ≤ 0.3) = 0.579825 · density f(0.3) = 2.1609
All values
QuantityValue
Density f(0.3)2.1609
P(X ≤ 0.3) = I_x(α, β)0.579825
P(X > 0.3)0.420175
Mean α ÷ (α + β)0.285714
Median0.26445
Mode0.2
Variance0.0255102
Standard deviation0.159719
Skewness0.596285
Quantile for p = 0.950.581803
Calculated for the standard beta distribution on [0, 1]: CDF via the continued fraction of the incomplete beta function (NIST DLMF 8.17.22), quantile and median by bisection to about 15 digits.

How it is calculated

The beta distribution describes a share or probability between 0 and 1. Its two shape parameters α and β set where the mass lies: with α = 2 and β = 5 the mean is 2 ÷ 7 = 0.2857 and P(X ≤ 0.3) = 0.5798.

Formulas

For whole numbers there is a check via the binomial distribution: I0.5(2, 3) is the chance of at least 2 successes in 4 tries with p = 0.5, i.e. 11 ÷ 16 = 0.6875. You can verify this with the binomial distribution calculator.

Examples

αβMeanP(X ≤ 0.5)
250.28570.8906
520.71430.1094
220.50.5
10300.250.9995

Swapping α and β mirrors the distribution at 0.5. With α = β = 1 it is the uniform distribution; with both below 1 the density is U-shaped and largest at the edges.

Where it is used

As the prior and posterior for a success rate (Bayesian A/B tests: α = successes + 1, β = failures + 1), in PERT estimates and for proportions in general. Related models are the Weibull distribution for lifetimes and the normal distribution, which the beta distribution approaches for large α and β.

Frequently asked questions

How do I calculate the beta distribution CDF?

F(x) = I_x(α, β), the regularized incomplete beta function. It has no simple closed form; the calculator evaluates it with the continued fraction from NIST DLMF 8.17.22. Example: α = 2, β = 5 gives P(X ≤ 0.3) = 0.5798.

What is the mean of a beta distribution?

α ÷ (α + β). For α = 2 and β = 5 that is 0.2857.

What is the mode of the beta distribution?

(α − 1) ÷ (α + β − 2) if both parameters are greater than 1; for α = 2, β = 5 it is 0.2. With a parameter of 1 or less the maximum lies at the edge.

What does Beta(1, 1) mean?

It is the uniform distribution on [0, 1]: every value is equally likely, P(X ≤ x) = x.

How are α and β chosen from data?

For a success rate: α = successes + 1 and β = failures + 1 (uniform prior). 20 successes in 80 trials give Beta(21, 61) with mean 0.256.

Sources and legal basis

As of: · Editorial policy

Related tools