Weibull Distribution Calculator

Quick answer

The Weibull distribution calculator evaluates lifetimes and failure times from the scale λ and shape k: density, cumulative failure probability, reliability, ranges, quantiles such as B10 life, random values, the hazard rate and the mean, median, mode, variance, skewness and kurtosis.

Result
P(X ≤ 1) = 0.297811 (29.7811%)
Weibull density with the requested area shaded
Probability density f(x)
0.372392
P(X ≤ x) – cumulative (CDF)
29.7811 %
P(X > x) – survival
70.2189 %
Hazard (failure) rate at x
0.53033
Mean (expected value)
1.8055
Median
1.5664
Mode (peak of the density)
0.9615
Variance
1.5028
Standard deviation
1.2259
Skewness
1.072
Excess kurtosis
1.3904

The Weibull distribution is the workhorse of reliability engineering and survival analysis. It describes the time until something fails (a bearing, a light bulb, a turbine blade) and it also fits wind speeds, particle sizes and flood levels. Two parameters control it: the scale λ, which stretches it (63.2% of items fail before λ), and the shape k, which sets how the failure rate changes over time.

The shape parameter tells the story. With k < 1 the hazard rate falls over time, as with early "infant mortality" failures. With k = 1 the hazard is constant and the Weibull becomes the exponential distribution, giving random failures. With k > 1 the hazard rises, as in wear-out; k = 2 is the Rayleigh distribution and k around 3.6 looks almost normal.

The calculator gives the probability of failure by time x, the reliability P(X > x), probabilities for intervals, quantiles such as the B10 life (time by which 10% fail), random lifetimes, the hazard rate at x and all summary measures, which use the gamma function. Enter times in any unit you like (hours, cycles, years) as long as λ and x use the same one.

How to use the Weibull Distribution Calculator

  1. Scale parameter λ
  2. Shape parameter k
  3. What to calculate
  4. Value (time) x ≥ 0 (x₁ for a range)
  5. Upper value x₂
  6. Cumulative probability p
  7. How many random values

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Probabilities come from the closed-form CDF 1 − e^(−(x/λ)^k) and quantiles from its inverse λ(−ln(1 − p))^(1/k). The moments use Γ(1 + i/k) for i = 1 to 4. Choose what to calculate: a cumulative probability, an upper tail, the probability between or outside two values, a quantile (inverse CDF) or a random sample generated by inverse-transform sampling. The chart shades exactly the area you asked for.

Worked example

Components have a Weibull lifetime with λ = 2 years and k = 1.5. The probability of failing in the first year is 1 − e^(−(1/2)^1.5) = 29.78%; the probability of lasting more than 3 years is e^(−1.5^1.5) = 15.93%. The mean life is 2Γ(1.667) = 1.8055 years, the median 2(ln 2)^(1/1.5) = 1.5664 years, and the mode 2(0.5/1.5)^(1/1.5) = 0.9615 years.

Reading the shape parameter

Shape k Hazard over time Typical cause
k < 1 Decreasing Early failures, defects, burn-in
k = 1 Constant (exponential) Random external events
1 < k < 3 Increasing Early wear-out, fatigue
k ≥ 3 Rapidly increasing Old-age wear-out; shape close to normal

Formula

f(x) = (k/λ)(x/λ)^(k−1) e^(−(x/λ)^k) · P(X ≤ x) = 1 − e^(−(x/λ)^k) · quantile = λ(−ln(1 − p))¹/k) · mean = λΓ(1 + 1/k) · median = λ(ln 2)¹/k) · hazard h(x) = (k/λ)(x/λ)^(k−1)

Worked example

Inputs: Scale parameter λ: 2; Shape parameter k: 1.5; What to calculate: P(X ≤ x) – probability at or below x; Value (time) x ≥ 0 (x₁ for a range): 1.
Results: Result = P(X ≤ 1) = 0.297811 (29.7811%); Probability density f(x) = 0.372392; P(X ≤ x) – cumulative (CDF) = 29.7811 %; P(X > x) – survival = 70.2189 %; Hazard (failure) rate at x = 0.53033; Mean (expected value) = 1.8055.

Key terms

Scale parameter (λ)
The characteristic life, at which 63.2% have failed.
Shape parameter (k)
Also called the Weibull modulus or slope; controls whether failures decrease, stay constant or increase over time.
Reliability
P(X > x), the probability of surviving beyond time x.
Hazard rate
The failure rate among items still working at time x.

Frequently asked questions

What do the Weibull parameters mean?

λ is the characteristic life (63.2% of items fail before it) and k is the shape: k < 1 falling failure rate, k = 1 constant, k > 1 rising (wear-out).

What is P(X ≤ 1) for λ = 2, k = 1.5?

1 − e^(−(0.5)^1.5) = 29.78%.

What is the B10 life?

The time by which 10% of items have failed: λ(−ln 0.9)^(1/k). For λ = 1,000 hours and k = 2 it is 324.6 hours. Use quantile mode with p = 10%.

How is the Weibull related to other distributions?

k = 1 gives the exponential and k = 2 the Rayleigh distribution; for k near 3.6 it resembles the normal.

What is the hazard rate?

The instantaneous failure rate of survivors, h(x) = f(x)/P(X > x) = (k/λ)(x/λ)^(k−1).

How are λ and k estimated?

By maximum likelihood or by a straight-line fit on a Weibull probability plot of ln(−ln(1 − F)) against ln x, whose slope is k.

Sources

  1. NIST/SEMATECH e-Handbook: Gallery of distributions
  2. NIST/SEMATECH e-Handbook of Statistical Methods
  3. Wolfram MathWorld: Probability and statistics

Cite this calculator

Speedy Calculator. (2026). Weibull Distribution Calculator. Speedy Calculator. https://speedycalculator.com/calculators/statistics/weibull-distribution/