Defaults: sigma_a1 = 250 MPa x 5,000 cycles, sigma_a2 = 200 MPa x 10,000 cycles. Material constants used internally: Basquin exponent b = -0.10, fatigue strength coefficient sigma_f' = 1,000 MPa (typical steel).
x-axis = cycles N (log, 10^2 to 10^8) / y-axis = stress amplitude sigma_a (MPa, 50 to 500) / blue curve = Basquin S-N / red dot = level 1 (sigma_a1, N_1) / orange dot = level 2 (sigma_a2, N_2). The Basquin line is straight on log-log axes.
Bars = damage fractions D_i = n_i/N_i and their total D / red dashed line = failure criterion D = 1 (Miner limit). The closer D is to 1 the closer the structure is to end of life; S = 1/D tells how many more repetitions of the same spectrum are allowed.
The Palmgren-Miner linear cumulative damage rule is a classical method for predicting the fatigue life of structures under variable-amplitude loading. At each stress level $i$ it defines the damage fraction as the ratio between the applied cycles $n_i$ and the allowable cycles $N_i$ to failure, and adds the fractions linearly:
$$D = \sum_i \frac{n_i}{N_i}$$Fatigue failure is predicted at $D=1$ (Miner criterion). The allowable cycles $N_i$ come from the Basquin S-N curve:
$$\sigma_a = \sigma_f' \cdot (2N_f)^{b} \;\;\Longrightarrow\;\; N = \tfrac{1}{2}\!\left(\frac{\sigma_a}{\sigma_f'}\right)^{1/b}$$This tool uses typical steel values $\sigma_f' = 1000$ MPa and $b = -0.10$ (so $1/b = -10$), and defines the safety factor as $S = 1/D$:
$$S = \frac{1}{D} = \frac{1}{\sum_i n_i / N_i}$$$\sigma_a$ is the stress amplitude, $\sigma_f'$ the fatigue strength coefficient (about $1.5 S_u$ for steels), $b$ the Basquin exponent (typically $-0.05$ to $-0.15$), $n_i$ the applied cycles, and $N_i$ the allowable cycles at the same stress. With $b=-0.10$, doubling the stress amplitude makes $N$ about $2^{10} \approx 1000$ times smaller, which is why the Miner rule is so sensitive to high-stress events.