Weibull Distribution Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the shape parameter k, the scale parameter λ and a value x to get the Weibull density, the probability of failure by x, the reliability (survival) at x, the hazard rate, the median and the mode.
Result
P(X ≤ x) (failure probability)
Density f(x)
- Reliability R(x) = P(X > x)
- Hazard rate h(x)
- Median λ(ln 2)^(1/k)
- Mode
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Shape parameter (k > 0): enter 0 or more.
- Scale parameter (λ > 0): enter 0 or more.
- Value x (≥ 0), e.g. hours: enter 0 or more.
- Read the result: P(X ≤ x) (failure probability); the panel also shows Density f(x), Reliability R(x) = P(X > x), Hazard rate h(x), Median λ(ln 2)^(1/k) and Mode.
How this calculator works
Two-parameter Weibull distribution with shape k and scale λ: density f(x) = (k/λ)(x/λ)^(k−1) e^(−(x/λ)^k) for x ≥ 0; cumulative distribution F(x) = 1 − e^(−(x/λ)^k); reliability R(x) = e^(−(x/λ)^k); hazard rate h(x) = (k/λ)(x/λ)^(k−1).
Median = λ(ln 2)^(1/k); mode = λ((k − 1)/k)^(1/k) when k > 1, and 0 when k ≤ 1. A shape k below 1 means a falling failure rate (early failures), k = 1 a constant rate (the exponential distribution), k above 1 a rising rate (wear-out).
The formula
| Symbol | Meaning |
|---|---|
| Shape parameter (k > 0) | |
| Scale parameter (λ > 0) | |
| Value x (≥ 0), e.g. hours | |
| P(X ≤ x) (failure probability) |
Worked example
| Shape parameter (k > 0) | 2 |
|---|---|
| Scale parameter (λ > 0) | 1,000 |
| Value x (≥ 0), e.g. hours | 500 |
| Density f(x) | 0.0008 |
|---|---|
| Reliability R(x) = P(X > x) | 0.7788 |
| Hazard rate h(x) | 0.001 |
| Median λ(ln 2)^(1/k) | 832.5546 |
| Mode | 707.1068 |
P(X ≤ x) (failure probability) 0.2212
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
With k = 2 and λ = 1000 hours, what share of units fail by 500 hours?
F(500) = 1 − e^(−0.25) = 0.2212, so the reliability at 500 hours is 0.7788. The median life is 832.5546 hours.
What does the scale parameter λ mean?
It is the characteristic life: whatever the shape, F(λ) = 1 − e^(−1), so about 63.2% of units have failed by x = λ.