Rainflow Counting Calculator: ASTM E1049 Cycle Counts, Palmgren-Miner Damage, Range-Mean Matrix, Cycle Exceedance and Level Crossings for a Stress History

Paste a stress or load history, or upload a CSV. The calculator counts the fatigue cycles, finds the damage of each with your S-N curve, adds it up with Miner's rule, and gives the life in repeats. Short histories show every comparison of the count.

Inputs
Loading

With several columns, the last one is used. Time steps do not matter. Lines that start with # are skipped. The file stays in your browser.

Counting method
ksi
ksi
ksi

Use the gate for sensor noise only. Cycles well below the endurance limit can still add damage once larger cycles have started a crack.

S-N Curve
ksi
ksi
ksi
repeats

For a spectrum (PSD) instead of a time history, use the vibration fatigue calculator. Get Se for your part, with the Marin factors, from the endurance limit calculator. MIL-HDBK-5 curves use nominal net-section stress and already include the specimen notch.

Examples
Results
Worked solution: equations and numbers
Charts
Load History and Damage

Canvas Element Not Working, Please Check Browser Settings or Contact KasperCalc to fix the issue.

Cycle Exceedance

Canvas Element Not Working, Please Check Browser Settings or Contact KasperCalc to fix the issue.

Level Crossings

Canvas Element Not Working, Please Check Browser Settings or Contact KasperCalc to fix the issue.

Range-Mean Matrix
Cycles and Damage by Range

Canvas Element Not Working, Please Check Browser Settings or Contact KasperCalc to fix the issue.

Worked Example: One History, Four Counts

The ASTM E1049 example history: A −2, B 1, C −3, D 5, E −1, F 3, G −4, H 4, I −2. Press "ASTM E1049 example" to step through it.

RangeRainflowRainflow, repeatingRange-pairSimple range
90.5100
81011
70100.5
60.5011
41.5111
30.5110.5
Total cycles4444
Reference Guide: Rainflow Counting and Cumulative Damage
01

Rainflow Counting

What it finds

An irregular history holds large cycles with small ones riding on them. Rainflow counting pulls out each closed stress-strain loop as one cycle with a range and a mean. A small dip in a large swing counts as its own small cycle, and the large swing still counts in full.

First step: peaks and valleys

Only the turning points matter. Points between them are dropped. The time scale has no effect on the count.

The three-point rule

Take the last three turning points. X is the newest range and Y is the one before it.

  • X < Y: read the next point.
  • X ≥ Y, and Y holds the starting point: Y is a half cycle. Drop its first point.
  • X ≥ Y otherwise: Y is one full cycle. Drop both its points.
  • At the end, each range left over is a half cycle.
Example: in −1, 3, −4 after a peak of 5, the range from −1 to 3 (Y = 4) is closed by the range from 3 to −4 (X = 7). It is one cycle of range 4 with mean 1.
02

Choosing a Counting Method

When to use each
MethodUse it for
RainflowA history that happens once, start to end. Gives half cycles.
Rainflow, repeatingA block that repeats many times. Starts at the largest peak or valley, so every cycle closes.
Range-pairClose to rainflow. Matches it for a repeating history.
Simple rangeOlder spectra. Breaks large cycles into small ones and gives less damage.
Level crossingComparing load spectra, not damage.
Reading the outputs

The range-mean matrix sorts the cycles by size and mean. The exceedance chart shows how many cycles reach each range or more, and does not depend on the bin width. The damage line on the history shows where the life is used up.

Gate

A gate drops reversals smaller than a chosen range. It shortens noisy records. Set it just above the noise, and check that the damage does not change.

03

Miner's Rule

Damage sum

Each cycle uses up 1/N of the life, where N is the constant-amplitude life at that stress. The part fails when the sum reaches one:

Palmgren-Miner sum (Shigley Eq. 6-58) \[ D = \sum \frac{n_i}{N_i} \]

One pass of the history gives D, so the life is 1/D passes. Tests put the sum at failure between about 0.7 and 2.2, with an average near one.

Remaining life

After some cycles at one level, the cycles left at another level are:

Remaining cycles at the next level \[ n_2 = (1 - D)\,N_2 \]
Example (Shigley sec. 6-15): Sut = 80 kpsi, Se = 40 kpsi, f = 0.9. After 3000 cycles at 60 kpsi (N = 8520), D = 0.352 and 0.648 × 10⁶ cycles remain at 40 kpsi.

Miner's rule ignores the order of the loads. A few large cycles first do more harm than the same cycles last.

04

Cycles Below the Endurance Limit

Why they can matter

At constant amplitude, steel cycles below Se do no damage. Under variable amplitude, larger cycles can start a crack that smaller cycles then grow. Dropping the small cycles can overstate the life.

Three choices
Life below the endurance limit \[ N = N_e\left(\frac{S_e}{\sigma}\right)^{m} \]
Slope of the S-N line \[ k = -\frac{1}{b} \]
  • No damage: the constant-amplitude limit applies. The textbook choice.
  • Haibach: m = 2k − 1, a flatter slope below Se.
  • Same slope: m = k. The most conservative.
05

Mean Stress and the Target Life

Each cycle has its own mean

The count gives an amplitude and a mean for each cycle. The chosen correction turns them into an equivalent reversed stress, which reads the S-N line. MIL-HDBK-5 curves build the mean into Seq.

Modified Goodman \[ \sigma_{rev} = \frac{\sigma_a}{1 - \sigma_m/S_{ut}} \]
Gerber \[ \sigma_{rev} = \frac{\sigma_a}{1 - (\sigma_m/S_{ut})^2} \]
Smith-Watson-Topper (Lee Eq. 4.5.8) \[ \sigma_{rev} = \sqrt{\sigma_{max}\,\sigma_a} \]
Factor on stress

Enter a target life in repeats. The calculator scales every stress in the history until D = 1/target. A factor above one is the margin. A factor below one is how far the stresses must come down.

Example (Shigley Ex. 6-15): Sut = 151 kpsi, Se = 67.5 kpsi, Gerber. The block 60, 80, 40, 60, −40, −60, −20, −40 hides a cycle from 80 to −60. It alone does damage: σrev = 70.3 kpsi and N ≈ 613 000 repeats (Shigley rounds b and prints 619 000).
06

Sources

ASTM E1049-85 (Reapproved 1997), Standard Practices for Cycle Counting in Fatigue Analysis: sections 5.1 to 5.4 and the example of Figs. 4 to 7.

R. G. Budynas and J. K. Nisbett, Shigley's Mechanical Engineering Design, 10th ed., McGraw-Hill, 2015: Eqs. 6-13 to 6-17, section 6-15 and Example 6-15.

Y.-L. Lee, J. Pan, R. B. Hathaway and M. E. Barkey, Fatigue Testing and Analysis, Elsevier, 2005: chapter 3 (cycle counting), section 4.3 (Miner and Miner-Haibach), section 4.5 (Morrow and Smith-Watson-Topper).

MIL-HDBK-5J, Metallic Materials and Elements for Aerospace Vehicle Structures, 2003, section 9.6.1: equivalent-stress S/N curves.

Related: fatigue life calculator, minimum shaft diameter, MIL-HDBK-5 aluminum S/N curves.