Free Weibull Distribution Calculator

Enter k, λ, x

The Weibull distribution is a flexible continuous probability distribution that can model a wide variety of data shapes, from exponential decay to near‑symmetry. This free online Weibull Distribution Calculator lets you compute probabilities, generate random samples, evaluate the pdf and cdf, determine quantiles, and obtain key statistical measures—all in one place. Below we cover the distribution’s parameters, core formulas, and how to use the tool.

Parameters

Two positive parameters define the distribution:

  • Shape kk – determines the curve’s form. For k=1k=1 the distribution reduces to the exponential; for k=2k=2 it becomes the Rayleigh distribution; with k≈3.6k \approx 3.6 the pdf is nearly symmetric. Values between give various right‑skewed shapes.
  • Scale λ\lambda – stretches or compresses the distribution along the x‑axis. A larger λ\lambda spreads the distribution out, while a smaller one concentrates it near zero.

Because kk controls the hazard rate (decreasing for k<1k<1, constant for k=1k=1, increasing for k>1k>1), the Weibull distribution is especially popular in reliability engineering, survival analysis, hydrology, and electrical system modeling.

Probability Density Function (PDF)

For x≥0x \ge 0,

f(x)=kλ(xλ)k−1e−(x/λ)kf(x) = \dfrac{k}{\lambda} \left( \dfrac{x}{\lambda} \right)^{k-1} e^{-(x/\lambda)^k}

Cumulative Distribution Function (CDF)

The CDF simplifies to a closed form:

F(x)=1−e−(x/λ)k,x≥0F(x) = 1 - e^{-(x/\lambda)^k}, \quad x \ge 0

Hence P(X≤x)=F(x)P(X \le x) = F(x) and P(X>x)=1−F(x)P(X > x) = 1 - F(x).

Quantile Function and Sampling

The quantile function (inverse CDF) for 0≤p<10 \le p < 1 is

Q(p)=λ[−ln⁡(1−p)]1/kQ(p) = \lambda \bigl[ -\ln(1-p) \bigr]^{1/k}

To generate a random Weibull value, draw U∼Uniform(0,1)U \sim \text{Uniform}(0,1) and set

X=λ(−ln⁡U)1/kX = \lambda (-\ln U)^{1/k}

This method is used by the calculator’s sample generation mode.

Common Statistical Measures

Let Γ\Gamma denote the gamma function. The main measures are:

MeasureFormula
Meanμ=λΓ(1+1k)\mu = \lambda \Gamma\left(1 + \frac{1}{k}\right)
Medianm=λ(ln⁡2)1/km = \lambda (\ln 2)^{1/k}
Mode (when k>1k>1)λ(k−1k)1/k\displaystyle \lambda \left( \frac{k-1}{k} \right)^{1/k} (if k≤1k \le 1 the mode is 0)
Varianceσ2=λ2[Γ ⁣(1+2k)−(Γ ⁣(1+1k))2]\sigma^2 = \lambda^2 \left[ \Gamma\!\left(1+\frac{2}{k}\right) - \bigl(\Gamma\!\left(1+\frac{1}{k}\right)\bigr)^2 \right]
Standard deviationσ=σ2\sigma = \sqrt{\sigma^2}
SkewnessΓ ⁣(1+3k)−3 Γ ⁣(1+1k)Γ ⁣(1+2k)+2 ⁣[Γ ⁣(1+1k)]3[Γ ⁣(1+2k)−(Γ ⁣(1+1k))2]3/2\displaystyle \frac{\Gamma\!\left(1+\frac{3}{k}\right) - 3\,\Gamma\!\left(1+\frac{1}{k}\right)\Gamma\!\left(1+\frac{2}{k}\right) + 2\!\left[\Gamma\!\left(1+\frac{1}{k}\right)\right]^3}{\bigl[ \Gamma\!\left(1+\frac{2}{k}\right) - \bigl(\Gamma\!\left(1+\frac{1}{k}\right)\bigr)^2 \bigr]^{3/2}}

Skewness depends only on kk; for example, at k=2k=2 it is about 0.631, and near k=3.6k=3.6 it approaches zero.

Using the Calculator

The tool offers six operating modes:

  • Probabilities – obtain P(X≤x)P(X \le x) or P(X>x)P(X > x).
  • Samples – generate any desired number of random draws.
  • CDF – evaluate F(x)F(x) at a given xx.
  • PDF – evaluate f(x)f(x) at a given xx.
  • Quantiles – find the value that corresponds to a specified probability.
  • Distribution Measures – view mean, median, mode, variance, and skewness.

To get a result, select the mode, enter the Weibull parameters λ\lambda and kk, and fill in any additional required fields (such as sample size or argument xx). The calculator then instantly returns the answer. With this free online Weibull Distribution Calculator you can explore the distribution’s behavior without manual computation.

FAQ

1. What do the shape and scale parameters of the Weibull distribution mean?

The shape parameter k controls the form of the distribution (e.g., k=2 gives the Rayleigh distribution, and k≈3.6 gives a near‑symmetric bell shape). The scale parameter λ stretches or compresses the distribution along the x‑axis: larger λ spreads it out, smaller λ concentrates it closer to zero.

2. How can I calculate the probability P(X ≤ x) for a Weibull distribution?

Use the cumulative distribution function: P(X ≤ x) = F(x) = 1 − e^{−(x/λ)^k}. Simply plug in the scale λ, shape k, and the value x into this formula. The calculator can perform this evaluation for you in the 'Probabilities' or 'CDF' mode.

3. What is the formula for the mean of a Weibull distribution?

The mean (expected value) is given by μ = λ · Γ(1 + 1/k), where Γ denotes the gamma function. For example, when k=1 the mean equals λ, and when k=2 the mean is λ·√π/2.

4. Can I generate random samples from a Weibull distribution with this tool?

Yes. Select the 'Samples' mode, enter the scale λ and shape k, and specify the desired sample size. The tool uses the inverse‑CDF method: X = λ(−ln U)^{1/k} where U is uniform on (0,1).

5. When is the Weibull distribution the same as the exponential distribution?

When the shape parameter k equals 1. In that case the pdf reduces to f(x) = (1/λ) e^{−x/λ}, which is exactly the exponential distribution with rate 1/λ.

How to Use

  1. Enter your values.
  2. The result updates automatically.
  3. Use the result for your needs.