Gamma Distribution Calculator

Enter shape (k) and scale (θ) parameters plus a value x to compute the Gamma distribution PDF, CDF, and key statistics instantly.

Use the Gamma Distribution Calculator

Parameters

Controls the shape; k = 1 gives the exponential distribution.

Stretches the distribution; rate β = 1/θ.

The point at which to evaluate the distribution.

Quick Presets

Results at x

Enter parameters and press Calculate.

Distribution Statistics

Enter parameters and press Calculate.

Formulas

PDF:
f(x) = xk−1 e−x/θ / (θk Γ(k))
CDF:
F(x) = P(k, x/θ) — regularized incomplete gamma
Mean:
k · θ
Variance:
k · θ2
Mode:
(k − 1) · θ for k ≥ 1, else 0
Skewness:
2 / √k

Summary

The Gamma distribution is a two-parameter family of continuous probability distributions that generalizes the exponential and chi-squared distributions. Given shape parameter k (> 0) and scale parameter θ (> 0), this calculator computes the probability density function (PDF), cumulative distribution function (CDF), and key statistics including mean, variance, mode, and standard deviation. Results update on demand as you enter values.

How it works

  1. Enter a positive shape parameter k — controls the skewness and peak shape of the distribution.
  2. Enter a positive scale parameter θ (theta) — stretches or compresses the distribution along the x-axis.
  3. Enter a non-negative value x at which to evaluate the distribution.
  4. The calculator computes the PDF: x^(k-1) · e^(-x/θ) / (θ^k · Γ(k)).
  5. The CDF is computed via the regularized incomplete gamma function P(k, x/θ).
  6. Distribution statistics (mean, variance, mode, skewness) are shown in the summary panel.

Use cases

  • Modeling waiting times for the k-th event in a Poisson process.
  • Insurance and finance: modeling aggregate claim sizes and loss distributions.
  • Bayesian statistics: using the Gamma as a conjugate prior for the Poisson rate.
  • Hydrology: fitting rainfall amounts and flood discharge data.
  • Reliability engineering: modeling component lifetimes with non-constant hazard rates.
  • Machine learning: prior distributions in probabilistic graphical models.
  • Biology: modeling cell cycle times and neural inter-spike intervals.
  • Statistics coursework: verifying manual calculations for homework or exams.

Frequently Asked Questions

Last updated: 2026-05-25 · Reviewed by Nham Vu