Weibull Distribution Calculator - PDF, CDF & Reliability
Compute the Weibull PDF, CDF, reliability function, hazard rate, mean, median, mode, and variance from any shape and scale parameters.
Enter the shape parameter k, scale parameter λ, and a value x to get a full Weibull distribution analysis including failure probability and reliability.
Weibull Distribution Calculator - PDF, CDF & Reliability
Compute the Weibull PDF, CDF, reliability function, hazard rate, mean, median, mode, and variance from any shape and scale parameters.
About the Weibull distribution calculator
The Weibull distribution is a continuous probability distribution named after the Swedish engineer and mathematician Waloddi Weibull, who used it in 1951 to model material strength and fatigue. It is now one of the most important distributions in reliability engineering, survival analysis, wind-speed modeling, and extreme-value theory because its shape parameter k allows it to model increasing, constant, or decreasing failure rates — three very different physical behaviours — within a single flexible family.
The distribution is defined by two parameters. The shape parameter k (sometimes written β) controls whether the failure rate increases, decreases, or remains constant over time. When k > 1, the failure rate increases with time — this models wear-out failures typical of mechanical components, where parts degrade with use. When k = 1, the Weibull distribution reduces exactly to the exponential distribution with constant failure rate, modelling purely random failures such as electronic components failing at a steady background rate. When k < 1, the failure rate decreases over time — this models infant-mortality failures, where defective items fail early and the survivors become more reliable. The scale parameter λ (sometimes written η) is the characteristic life: at x = λ, the CDF equals 1 − e⁻¹ ≈ 63.2%, regardless of k.
The probability density function (PDF) f(x) gives the relative likelihood of observing a failure at exactly time x. The cumulative distribution function (CDF) F(x) gives the probability that a component will have failed by time x — this is also called the unreliability. The reliability function R(x) = 1 − F(x) gives the probability of survival past time x, which is the primary metric for warranty and maintenance planning. The hazard rate h(x) = f(x) / R(x) is the instantaneous failure rate at time x given survival up to that point; in engineering it is called the force of mortality or hazard function.
The mean of the Weibull distribution is λ · Γ(1 + 1/k), where Γ is the gamma function. The median is λ · (ln 2)^(1/k). The mode (most likely failure time) is λ · ((k−1)/k)^(1/k) when k > 1 and zero when k ≤ 1. The variance is λ² · [Γ(1 + 2/k) − (Γ(1 + 1/k))²].
Weibull analysis appears in fleet maintenance scheduling, aircraft component certification, wind-energy resource assessment, earthquake-return-period estimation, and cancer survival studies. This calculator performs all standard Weibull computations in a single step, using the Lanczos approximation for the gamma function to maintain high numerical accuracy across a wide range of parameter values.
Weibull distribution examples
Three industry scenarios showing how the Weibull distribution models failure and reliability.
| Parameters | CDF F(x) | Details |
|---|---|---|
| k=2.1, λ=8500, x=7000 | F(7000) ≈ 0.485 | About 48.5% of bearings will fail before 7000 hours. With k > 1 the failure rate increases with age (wear-out regime). |
| k=1.8, λ=12 mph, x=15 mph | F(15) ≈ 0.776 | About 77.6% probability that daily average wind speed is at or below 15 mph. Wind speeds in many regions follow Weibull with k ≈ 1.5–2.5. |
| k=1, λ=500, x=500 | F(500) ≈ 0.632 | When k=1, Weibull reduces to the exponential distribution. At x=λ, F(x) = 1 − e⁻¹ ≈ 63.2% regardless of k — this is the defining property of λ. |
How to use the Weibull distribution calculator
- Enter the shape parameter k — values above 1 model wear-out, k=1 is exponential, values below 1 model infant mortality.
- Enter the scale parameter λ, which represents the characteristic life (the time by which about 63.2% of units will have failed).
- Enter the value x at which you want to evaluate the distribution — typically a time, distance, or stress level.
- Click Calculate to get the PDF, CDF, reliability, hazard rate, mean, median, mode, variance, and standard deviation.
- Use the example buttons to load pre-set engineering or environmental scenarios instantly.
Weibull distribution FAQ
What does the shape parameter k mean in practice?
The shape parameter k determines the failure-rate pattern. When k < 1, failure rate decreases over time — early defects dominate. When k = 1, failure rate is constant — purely random failures. When k > 1, failure rate increases — wear-out is the dominant failure mode. Most mechanical components have k between 1 and 4.
What is the reliability function and how do I use it?
The reliability R(x) = 1 − F(x) gives the probability that a component survives beyond time x. For planning maintenance schedules or warranty periods, you choose an acceptable failure probability and solve for the corresponding x. For example, R(x) = 0.90 means 90% of units are expected to survive beyond x.
Why does CDF always equal about 63.2% at x=λ?
At x = λ, the exponent in the CDF formula becomes (λ/λ)^k = 1, so F(λ) = 1 − e⁻¹ ≈ 0.6321. This is true for any value of k, making λ the universal characteristic life: 63.2% of units will have failed by the scale parameter, regardless of the shape.
What is the hazard rate and when does it matter?
The hazard rate h(x) is the instantaneous rate of failure at time x, given survival to that point. In reliability engineering it is used to schedule preventive maintenance. When h(x) is increasing (k > 1), replacing parts before they reach high-hazard age is cost-effective. When h(x) is constant (k = 1), replacement timing does not matter statistically.
How is the Weibull mean different from the scale parameter?
The scale parameter λ is the time at which 63.2% of units have failed — it is not the mean lifetime. The mean is λ · Γ(1 + 1/k). For k=1 (exponential), mean = λ. For k=2, mean ≈ 0.886 λ. For k=3.44, mean ≈ λ. So the mean exceeds or falls below λ depending on the shape.