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.
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.
Use the gate for sensor noise only. Cycles well below the endurance limit can still add damage once larger cycles have started a crack.
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.
Worked solution: equations and numbers
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.
| Range | Rainflow | Rainflow, repeating | Range-pair | Simple range |
|---|---|---|---|---|
| 9 | 0.5 | 1 | 0 | 0 |
| 8 | 1 | 0 | 1 | 1 |
| 7 | 0 | 1 | 0 | 0.5 |
| 6 | 0.5 | 0 | 1 | 1 |
| 4 | 1.5 | 1 | 1 | 1 |
| 3 | 0.5 | 1 | 1 | 0.5 |
| Total cycles | 4 | 4 | 4 | 4 |
Rainflow Counting
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.
Only the turning points matter. Points between them are dropped. The time scale has no effect on the count.
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.
Choosing a Counting Method
| Method | Use it for |
|---|---|
| Rainflow | A history that happens once, start to end. Gives half cycles. |
| Rainflow, repeating | A block that repeats many times. Starts at the largest peak or valley, so every cycle closes. |
| Range-pair | Close to rainflow. Matches it for a repeating history. |
| Simple range | Older spectra. Breaks large cycles into small ones and gives less damage. |
| Level crossing | Comparing load spectra, not damage. |
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.
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.
Miner's Rule
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:
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.
After some cycles at one level, the cycles left at another level are:
Miner's rule ignores the order of the loads. A few large cycles first do more harm than the same cycles last.
Cycles Below the Endurance Limit
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.
- 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.
Mean Stress and the Target Life
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.
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.
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.