# Weibull Distribution Calculator

URL: https://speedycalculator.com/calculators/statistics/weibull-distribution/
Last updated: 2026-11-08

> 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.

## Inputs

- Scale parameter λ
- Shape parameter k
- What to calculate
- Value (time) x ≥ 0 (x₁ for a range)
- Upper value x₂
- Cumulative probability p (%)
- How many random values

## Results

- Result
- Weibull density with the requested area shaded
- Probability density f(x)
- P(X ≤ x) – cumulative (CDF)
- P(X > x) – survival
- P(x₁ ≤ X ≤ x₂)
- P(X < x₁ or X > x₂)
- Quantile x
- Random sample
- Hazard (failure) rate at x
- Mean (expected value)
- Median
- Mode (peak of the density)
- Variance
- Standard deviation
- Skewness
- Excess kurtosis

## Formula

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

## Explanation

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

- **Scale parameter λ**
- **Shape parameter k**
- **What to calculate**
- **Value (time) x ≥ 0 (x₁ for a range)**
- **Upper value x₂**
- **Cumulative probability p**
- **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 kHazard over timeTypical causek < 1DecreasingEarly failures, defects, burn-ink = 1Constant (exponential)Random external events1 < k < 3IncreasingEarly wear-out, fatiguek ≥ 3Rapidly increasingOld-age wear-out; shape close to normal

## 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.

## FAQ

**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

- [NIST/SEMATECH e-Handbook: Gallery of distributions](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm)
- [NIST/SEMATECH e-Handbook of Statistical Methods](https://www.itl.nist.gov/div898/handbook/)
- [Wolfram MathWorld: Probability and statistics](https://mathworld.wolfram.com/topics/ProbabilityandStatistics.html)
