Beta Distribution Calculator
- The beta distribution lives on [0, 1]: with alpha = 2 and beta = 5 its mean is alpha / (alpha + beta) = 0.2857.
- Its CDF at x = 0.3 is the regularised incomplete beta function I_x(alpha, beta) = 0.5798 - the probability that a draw lands at or below 0.3.
- The PDF there is x^(alpha-1) (1-x)^(beta-1) / B(alpha, beta) = 2.1609; the beta function B(alpha, beta) = 0.0333 is the normalising constant that makes the density integrate to 1.
- Alpha and beta act like prior counts of successes and failures, which is why this distribution is the workhorse prior for rates and proportions.
The Beta Distribution Calculator computes probabilities and summary values for a beta-distributed variable confined to the interval from 0 to 1. Enter your shape parameters and a value of interest, and it returns the cumulative probability, the mean, and the probability density at that point. For example, with alpha 2 and beta 5, the mean is 0.2857, and the probability of a draw at or below 0.3 is 0.5798. Change the shapes and the answers move: with alpha 5 and beta 2 the mean rises to 0.7143, yet the CDF at 0.6 is only 0.2333, because most of the mass sits above 0.6. The symmetric arcsine case, alpha = beta = 0.5, puts exactly 0.5000 of its mass below 0.5 despite piling density at both ends. The density itself can exceed 1 without anything being wrong: the beta PDF at 0.3 for alpha 2, beta 5 is 2.1609, which is normal for a distribution squeezed into [0, 1].
The method behind these numbers is the standard one for this calculation: the beta distribution's probability density and cumulative distribution functions, evaluated directly from the two shape parameters. This page does not just hand you a result. It shows the formula, the step-by-step workings, worked examples you can follow line by line, and the sources behind the approach, so you can check every number yourself and see exactly how each probability and mean was produced.
Worked examples
Alpha 2, beta 5, at x = 0.3
(2 · 5 · 0.3)
| CDF P(X <= x) | 0.5798 |
| PDF at x | 2.1609 |
| Mean | 0.2857 |
| Standard deviation | 0.1597 |
| Variance | 0.0255 |
The arcsine case, alpha = beta = 0.5, at x = 0.5
(0.5 · 0.5 · 0.5)
| CDF P(X <= x) | 0.5000 |
| PDF at x | 0.6366 |
| Mean | 0.5000 |
| Standard deviation | 0.3536 |
| Variance | 0.1250 |
Alpha 5, beta 2, at x = 0.6
(5 · 2 · 0.6)
| CDF P(X <= x) | 0.2333 |
| PDF at x | 1.5552 |
| Mean | 0.7143 |
| Standard deviation | 0.1597 |
| Variance | 0.0255 |
How the beta distribution is calculated
A beta distribution lives entirely on the interval from 0 to 1, so its probability density function has to be built so that the total area under the curve equals exactly 1. The beta function, written B(a, b), does that job. It is a normalizing constant — a fixed number determined only by the two shape parameters — that divides the raw curve x^(a−1)(1−x)^(b−1) so the area comes out to 1. That is why the density is written as f(x) = x^(a−1)(1−x)^(b−1) / B(a, b). The beta function itself is defined by an integral over the same 0-to-1 range, and it can also be expressed through gamma functions, which makes it quick to evaluate on a beta distribution calculator.
The cumulative distribution function answers a different question: what is the probability that a draw lands at or below some value x? That is where the regularized incomplete beta function, written I_x(a, b), comes in. It is the incomplete beta function divided by the complete beta function B(a, b), which again rescales the result so it runs from 0 at x = 0 to 1 at x = 1. In symbols, P(X ≤ x) = I_x(a, b). Most of the arithmetic inside a beta distribution calculator is spent evaluating this quantity accurately, because the incomplete beta function has no simple closed form and must be computed numerically.
A worked example makes the pieces concrete. Take alpha = 2 and beta = 5. The mean of this distribution is a / (a + b) = 2 / 7 = 0.2857, so the bulk of the probability sits toward the low end of the interval. If you ask for the probability of a draw at or below 0.3, the answer is I_0.3(2, 5) = 0.5798. In other words, roughly 58 percent of the distribution lies in the first three-tenths of the range, which is consistent with a mean below 0.3. The density at that same point, f(0.3), is 2.1609. A density above 1 can look wrong at first glance, but it is entirely normal for a distribution squeezed into the narrow interval from 0 to 1 — density is height, not probability, and only the area under the curve has to equal 1.
The parameters can shift the picture sharply. Swap the values to alpha = 5 and beta = 2 and the mean rises to 0.7143, mirroring the earlier case. Yet the CDF at 0.6 is only 0.2333 — less than a quarter of the mass — because most of the probability now sits above 0.6. The symmetric case is just as instructive: with alpha = beta = 0.5, the arcsine distribution, density piles up at both ends of the interval, but exactly 0.5000 of the mass still falls below 0.5. Symmetry forces that split no matter how the density is shaped.
Together these three examples show why the two parameters, not the density's height, control the answer. The mean tells you where the center of mass sits, the CDF tells you how much probability lies below a threshold, and the density tells you only the local height of the curve.
Reading alpha and beta as counts
One of the most useful ways to read the two shape parameters of a beta distribution is as counts of past outcomes. Think of alpha as the number of successes you have already seen and beta as the number of failures, with the total alpha + beta acting as the size of that imaginary sample. Under this reading, the mean of the distribution is simply alpha divided by alpha + beta — the same success rate you would compute from those counts. A beta distribution calculator lets you move those counts around and watch the mean and the rest of the distribution respond.
Start with alpha 2 and beta 5. Two successes against five failures give a mean of 2 / (2 + 5) = 0.2857, a rate pulled toward the failure side. The distribution still spreads across the whole interval from 0 to 1, so low values are not ruled out. In fact, the probability of a draw at or below 0.3 is 0.5798, meaning more than half the mass sits at or under that value even though 0.3 is a bit above the mean.
Now consider the symmetric case where alpha = beta = 0.5. Equal counts on both sides put the mean at 0.5000, and the symmetry is exact: exactly 0.5000 of the mass lies below 0.5. What makes this case distinctive is where the density goes. Rather than peaking in the middle, it piles up at both ends of the interval — near 0 and near 1 — while the center stays comparatively thin. The mean still lands at the midpoint, but the shape is anything but a bell.
Flip the counts to alpha 5 and beta 2, and the mean rises to 0.7143, the mirror image of the first example. Here most of the mass sits above 0.6: the CDF at 0.6 is only 0.2333, so roughly a quarter of the probability lies at or below that point and the rest is higher. The lesson is that the mean tells you the balance point, while the CDF tells you how much mass is on one side of any threshold you care about.
A density value can look strange if you are used to other distributions. The beta PDF at 0.3 for alpha 2 and beta 5 is 2.1609 — a number above 1. That is normal for a distribution squeezed into the interval from 0 to 1, because density is height per unit of probability, not probability itself. Only areas under the curve correspond to probabilities, which is why the CDF at 0.3 (0.5798) is the figure to quote when you want a chance.
- alpha 2, beta 5: mean 0.2857; CDF at 0.3 is 0.5798; PDF at 0.3 is 2.1609
- alpha 0.5, beta 0.5: mean 0.5000; exactly 0.5000 of the mass below 0.5, with density piled at both ends
- alpha 5, beta 2: mean 0.7143; CDF at 0.6 is only 0.2333, so most mass sits above 0.6
Shapes the beta family can take
A beta distribution lives entirely between 0 and 1, and its two shape parameters, alpha and beta, let it bend into a surprising range of forms. That flexibility is why a beta distribution calculator is useful: instead of committing to one rigid curve, you dial alpha and beta to match the uncertainty you actually have. The same family can produce a bell, a U, a J, or a flat line, so it covers almost any bounded uncertainty you might describe.
Take the symmetric arcsine case, alpha = beta = 0.5. Its density piles up at both ends, near 0 and near 1, leaving the middle thin, so the shape looks like a U. Even so, it is perfectly balanced: exactly 0.5000 of its mass falls below 0.5. That combination, extreme-looking density with an even split at the center, is a good reminder that the shape of the curve and the location of the probability are not the same thing.
Set alpha = 2 and beta = 5 and the curve turns into a right-skewed bell that leans toward the low end. Its mean is 0.2857, and the probability of a draw at or below 0.3 is 0.5798, so a little more than half the mass sits in that lower stretch. The density at 0.3 is 2.1609. A density above 1 can look wrong if you are used to probabilities, but it is normal for distributions squeezed into the interval from 0 to 1, because the area under the curve, not its height, is what must total 1.
Flip the parameters to alpha = 5 and beta = 2 and you get the mirror image, a left-skewed bell. The mean rises to 0.7143, yet the CDF at 0.6 is only 0.2333, meaning most of the mass sits above 0.6. Pushing alpha and beta further in one direction produces J-shaped curves that crowd against a single boundary. And when alpha = beta = 1, the density is flat across the whole interval, the uniform case, where every value in [0, 1] is equally likely.
Reading these cases together shows how one family spans shapes that otherwise look unrelated. A quick pass through a beta distribution calculator makes the pattern concrete: change alpha and beta, watch the curve shift between U, bell, J and flat, and check the mean and CDF to see where the probability actually lands. That is the practical appeal of the beta family for bounded uncertainty, whether you are modeling a proportion, a rate, or a probability itself.
Where the beta distribution is used
A beta distribution calculator earns its keep wherever a quantity is naturally trapped between 0 and 1: a conversion rate, a proportion of tasks finished, a share of a budget. In Bayesian work, the beta is the standard prior for a rate. Pick alpha and beta to describe what you believed before seeing data, then update with each new observation. The shape of that belief matters. A beta with alpha 2 and beta 5 has mean 0.2857, and the probability of a draw at or below 0.3 is 0.5798 — so even though the average sits well under 0.3, more than half the mass lies at or below it. The symmetric arcsine case, alpha = beta = 0.5, puts exactly 0.5000 of its mass below 0.5 despite piling density at both ends. That is the honest way to say "I expect an extreme rate, but I do not know which end."
The most common pairing is the beta with the binomial. Run an A/B test, count successes out of trials, and the posterior for the true conversion rate is beta again, with the prior's parameters simply increased by the successes and failures you observed. Because the posterior is a beta, the calculator answers the questions that actually get asked: what is the chance the rate beats a threshold, or beats the other variant? Swap the parameters and the picture changes sharply. With alpha 5 and beta 2 the mean rises to 0.7143, yet the CDF at 0.6 is only 0.2333 — most of the mass sits above 0.6, so a threshold of 0.6 is cleared with high probability even though the mean alone does not say so.
Project and task-time modeling is another fit. When a task's completion time is expressed as a fraction of some maximum — percent of a sprint consumed, share of a workday spent on one activity — the beta's flexible shape can capture the skew and the hard limits at 0 and 1. The same flexibility serves order statistics: the distribution of the k-th smallest value in a sample, or of a percentile estimate, often reduces to a beta form, which makes probability statements about ranks and extremes tractable.
One habit worth forming: do not be alarmed when the density exceeds 1. The beta PDF at 0.3 for alpha 2, beta 5 is 2.1609 — a density above 1 is normal for distributions squeezed into [0, 1]. Density is height, not probability; only the area under the curve is a probability, which is why the calculator reports the CDF alongside the PDF.
Across all of these uses, the beta distribution calculator turns parameter choices into concrete probabilities, letting you compare priors, read posteriors and set thresholds with numbers rather than intuition.
FAQs
What is the CDF of a beta distribution?
The CDF gives the probability that a beta-distributed value falls at or below x. It is computed with the regularised incomplete beta function I_x(alpha, beta). For example, with alpha 2 and beta 5 at x = 0.3, the CDF is 0.5798, meaning roughly 58% of the distribution's probability lies below 0.3.
What is the mean of a beta distribution?
The mean is alpha divided by (alpha + beta). With alpha 2 and beta 5, the mean is 0.2857. With alpha 5 and beta 2, the mean is 0.7143. So swapping the two parameters moves the average from below the midpoint of the interval to above it, reflecting where the distribution's mass sits.
Why can a beta PDF exceed 1?
A PDF is a density, not a probability, so it can be greater than 1. The beta distribution lives over an interval of length 1, and values like 2.1609 are routine. Only the total area under the curve must equal 1; individual heights can be larger because they are weighted by an interval width of 1.
What is the arcsine distribution?
The arcsine distribution is the beta distribution with alpha = beta = 0.5. It is U-shaped, with most of its probability pushed toward the ends of the interval and less in the middle. Its CDF is exactly 0.5000 at x = 0.5, so half the probability lies below the midpoint and half above.
How is the beta distribution used in A/B testing?
The beta distribution serves as the conjugate prior for a conversion rate. Its parameters alpha and beta act like prior counts of conversions and non-conversions, and the test data updates them directly. This makes the math simple: you add observed successes to alpha and observed failures to beta, then read the updated distribution.
When is a beta distribution uniform?
The beta distribution is uniform at alpha = beta = 1. At those values the density is flat across the interval [0, 1], so every subinterval of equal length has the same probability. This makes it a natural starting point when you have no prior reason to favor any conversion rate over another.