Welcome to the Weibull distribution calculator! Here you can quickly generate samples, determine probabilities, and find the values of the pdf, cdf, and quantile functions of the Weibull distribution.

Are you not sure what the Weibull distribution is? Do you want to know how to calculate the Weibull distribution? Then keep reading! We will explain to you what the Weibull distribution parameters mean and provide you with a few Weibull distribution formulas. As a bonus, we will also show you how to calculate the mean of the Weibull distribution, as well as its median, mode, variance, and skewness.

What is the Weibull distribution?

The Weibull distribution is a continuous probability distribution. It is very versatile, which is why it is widely used in mathematical modeling. You can find Weibull distribution examples in:

The importance of the Weibull distribution comes from the fact that it can assume different shapes. The available shapes vary from an exponential distribution through to a nearly symmetric bell-shaped distribution to even a right-skewed distribution. A particular case of the Weibull distribution is the Rayleigh distribution.

The next section provides details about the Weibull distribution formula.

💡 The Weibull distribution owes its name to a Swedish mathematician Waloddi Weibull, who described it in 1951. However, Maurice Fréchet studied this distribution more than twenty years earlier (in 1927).

Weibull distribution formula. Weibull distribution examples

So, how to calculate the Weibull distribution? Let's firstly look at its probability density function (pdf):

Weibull distribution pdf


  • λ > 0 is the scale parameter; and
  • k > 0 is the shape parameter.

The scale parameter, λ, is responsible for stretching/squeezing the distribution along the horizontal axis. If λ is large, then the distribution is more spread out. If λ is small, then the distribution is more concentrated.

Thanks to the presence of the shape parameter, k, the Weibull distribution can take on different shapes. The below Weibull distribution examples shows how the pdf of the Weibull distribution changes as we vary the value of k:

Weibull distribution pdf
Weibull distribution pdf
Calimo / CC BY-SA

In the second plot you can see how the cumulative distribution function of the Weibull distribution (Weibull cdf) changes with the value of k:

Weibull distribution cdf
Weibull distribution cdf
Calimo, after Philip Leitch. / CC BY-SA

How to calculate the Weibull distribution?

There are several different things related to the Weibull distribution that you may want to calculate. Let's go through them one by one.

  • How to calculate probabilities in the Weibull distribution:

    Let F stand for the cumulative distribution function of the Weibull distribution (Weibull cdf). The formula for the Weibull cdf is the following:

    Weibull distribution cdf

    By the very definition of the cdf, we have

    P(X ≤ x) = F(x)

    As we deal with a continuous probability distribution, we have

    P(X < x) = F(x)


    P(X ≥ x) = P(X > x) = 1 - F(x).

  • How to calculate quantiles in the Weibull distribution?

    The quantile function of the Weibull distribution reads:

    Weibull distribution quantile function

    Recall that the quantile function is the inverse of the cdf.

  • How to draw a sample from the Weibull distribution?

    It's easy to sample from the Weibull distribution, provided you can sample from the uniform distribution on (0,1).

    Namely, if X is a random variable following the uniform distribution on (0,1), then the random variable

    Weibull distribution generation

    follows the Weibull distribution with scale parameter λ and shape parameter k.

Common measures of the Weibull distribution

In this section, we give the formulas of the most common measures of central tendency (mode, median, and mean of the Weibull distribution), of spread (standard deviation and variance of the Weibull distribution), and of shape (skewness of the Weibull distribution).

  • Mean of the Weibull distribution:

    Weibull distribution mean

  • Median of the Weibull distribution:

    Weibull distribution median

  • Mode of the Weibull distribution:

    Weibull distribution mode

  • Variance of the Weibull distribution:

    Weibull distribution variance

    As you surely remember, the standard deviation of the Weibull distribution is just the square root of the Weibull variance.

  • Skewness of the Weibull distribution:

    Weibull distribution skewness

    Interestingly, in the Weibull distribution the skewness depends only on the shape parameter k.

How to use this Weibull calculator?

Below, you can find an instruction about using the Weibull calculator:

  1. Choose the calculator mode. Our Weibull distribution calculator has six modes, which allow you to determine:

    • Probabilities;
    • Samples (of any length!);
    • Values of cdf;
    • Values of pdf;
    • Quantiles; and
    • A few of the most common distribution measures.
  2. Enter the parameters of the Weibull distribution you want to work with.

  3. You may need to enter more required data. For instance, for the sample generator mode enter the length of the sample, and for the pdf mode enter the argument x at which the Weibull pdf will be evaluated.

  4. Our Weibull distribution calculator returns the result in a blink of an eye! Enjoy! 😊

Anna Szczepanek, PhD
Probability calculator
Probability type
P(X ≤ x)
Scale parameter, λ
Shape parameter, k
Argument, x
P(X ≤ x)
People also viewed…

Car vs. Bike

Everyone knows that biking is awesome, but only this Car vs. Bike Calculator turns biking hours into trees! 🌳

Coffee kick

A long night of studying? Or maybe you're on a deadline? The coffee kick calculator will tell you when and how much caffeine you need to stay alert after not sleeping enough 😀☕ Check out the graph below!

Fisher's exact test

The Fisher's exact test calculator performs a one-tailed and two-tailed Fisher's test on any given 2 x 2 contingency table.

Rayleigh distribution

Our Rayleigh distribution calculator helps you generate samples from the Rayleigh distribution, or determine probabilities, cdf, pdf, quantiles, and common measures in this distribution.
main background