Interactive Gamma Distribution Calculator
Use this tool to calculate the PDF, CDF, survival probability, and key summary statistics for a Gamma distribution using the shape-scale form.
PDF: f(x) = xk-1e-x/θ / (Γ(k)θk), for x ≥ 0
Tip: Set shape = 1 and the Gamma distribution becomes the Exponential distribution.
What is the gamma distribution?
The gamma distribution is a continuous probability distribution used for non-negative values. It is especially useful for modeling time-to-event data where the event occurs after several smaller random processes combine together. You will see it in reliability engineering, queueing systems, insurance severity modeling, and Bayesian statistics.
Unlike the normal distribution, which can produce negative values, the gamma distribution is defined only on x ≥ 0. That makes it a better fit for durations, waiting times, rainfall amounts, claim sizes, and other strictly non-negative quantities.
Understanding the parameters
Shape parameter (k or α)
The shape controls the form of the curve:
- k < 1: very high density near zero, then long right tail.
- k = 1: exactly exponential.
- k > 1: density rises to a peak then falls, often looking smoother and less skewed as k increases.
Scale parameter (θ)
The scale stretches the distribution along the x-axis. Larger θ means larger typical values.
- Mean = kθ
- Variance = kθ2
- Standard deviation = √(kθ2)
Some textbooks use a rate parameter (β), where β = 1/θ. This calculator uses the shape-scale convention because it is intuitive for practical interpretation.
How to use this gamma distribution calculator
- Enter a positive shape value.
- Enter a positive scale value.
- Provide an x value for point and cumulative calculations.
- Optionally provide an upper bound b to compute interval probability P(x ≤ X ≤ b).
- Click Calculate.
The tool returns:
- PDF at x: the density height at that exact point.
- CDF at x: probability that X is less than or equal to x.
- Survival probability: P(X > x).
- Optional interval probability if b is supplied.
- Summary metrics: mean, variance, standard deviation, skewness, kurtosis excess, and mode (when defined).
Interpreting results correctly
PDF is not a direct probability
For continuous distributions, P(X = exact value) is 0. The PDF gives a density level; probabilities come from areas under the curve.
CDF is often the key business metric
If you ask, “What is the chance completion time is at most 8 hours?”, you use the CDF at x = 8.
Use interval probabilities for risk bands
Interval probabilities are ideal for service level targets, quality-control windows, and risk reporting.
Practical use cases
- Reliability engineering: model lifetimes of components and evaluate failure risk over time.
- Operations: estimate waiting time distributions in call centers or manufacturing lines.
- Hydrology: represent non-negative skewed variables such as rainfall totals.
- Bayesian analysis: use gamma priors for Poisson rates or exponential hazards.
Common mistakes to avoid
- Mixing up scale and rate parameterizations.
- Trying negative x values (gamma is only defined for x ≥ 0).
- Reading PDF as “probability at a point” instead of density.
- Forgetting that mode is only defined as (k-1)θ when k ≥ 1.
Final note
The gamma distribution is one of the most practical tools for right-skewed, non-negative data. If you are modeling durations, severities, or positive continuous outcomes, this calculator gives a fast way to test assumptions and communicate probabilities clearly.