Control chart calculator (X-bar & R, I-MR)
Paste your measurements; get control limits, the charts and every Nelson rule flag, in plain English. Free, runs in your browser.
What a control chart actually tells you
A control chart answers one question: is this process behaving the same way it did yesterday? Control limits are calculated from your own measurements. They describe the spread you get when nothing unusual is happening, which is why people call them the voice of the process. A point outside them, or one of the patterns below, says something changed and is worth chasing while the trail is warm.
Specification limits are a different thing entirely. They come from the drawing, the customer or the standard, and they describe what the part must be. Control limits come from the process and describe what it does. A process can sit perfectly inside its control limits and still make parts outside the tolerance, and a process can drift badly while every part still passes. Control is not capability; if you need the tolerance answer, run a Cp/Cpk study alongside this one.
Never draw specification limits on a control chart. Mixing the two is the most common way a chart stops being useful: operators start reacting to the tolerance instead of the signal, and real shifts get adjusted away before anyone sees them.
X-bar & R or I-MR: which chart to use
The choice follows how the data was collected, not what you would like to see. If you measure one part at a time, at the end of a cycle or at a set interval, you have individual readings and you chart them on an I-MR pair: the individuals chart for location, the moving range chart for short-term variation between consecutive readings.
If you pull a small sample of consecutive parts at each check, five consecutive shots from the same cavity, four consecutive parts off one press, that sample is a rational subgroup and it belongs on an X-bar & R pair. Do not mix parallel streams into one subgroup: five cavities from a single shot carry a fixed cavity-to-cavity offset that inflates the range and deadens the chart, which is exactly the mixture rules 4 and 8 below exist to catch. Chart each cavity as its own stream. The subgroup should be tight enough that only common-cause variation lives inside it; everything you want the chart to detect should show up between subgroups instead. Enter a subgroup size of 2 to 10 above and the calculator switches to X-bar & R automatically.
Above a subgroup size of 10 the range stops being an efficient estimate of spread and the pair to use is X-bar & S, with the standard deviation of each subgroup on the lower chart. This calculator covers I-MR and X-bar & R; if your subgroups are larger than 10, split them or use an X-bar & S chart instead.
How the control limits are calculated
For individual readings the calculator averages the moving ranges between consecutive values, then sets the individuals limits at the mean plus and minus 2.66 times that average. The moving range chart gets an upper limit of 3.267 times the average moving range and a lower limit of zero. For subgrouped data it uses the classic constants: X-bar limits at the grand average plus and minus A2 times R-bar, and range limits at D3 and D4 times R-bar. The d2 column converts R-bar into an estimate of sigma when you need one.
| Subgroup size n | A2 | D3 | D4 | d2 |
|---|---|---|---|---|
| 2 | 1.880 | 0 | 3.267 | 1.128 |
| 3 | 1.023 | 0 | 2.574 | 1.693 |
| 4 | 0.729 | 0 | 2.282 | 2.059 |
| 5 | 0.577 | 0 | 2.114 | 2.326 |
| 6 | 0.483 | 0 | 2.004 | 2.534 |
| 7 | 0.419 | 0.076 | 1.924 | 2.704 |
| 8 | 0.373 | 0.136 | 1.864 | 2.847 |
| 9 | 0.337 | 0.184 | 1.816 | 2.970 |
| 10 | 0.308 | 0.223 | 1.777 | 3.078 |
The eight Nelson rules in plain language
Rule 1 catches the obvious break. The other seven catch patterns that are still inside the limits but too orderly to be chance, which is how a chart warns you before scrap appears.
Nelson rules and the Western Electric rules
The Western Electric rules came first, in the 1956 statistical quality control handbook, and there are four of them: one point beyond 3 sigma; two of three consecutive points beyond 2 sigma on the same side; four of five beyond 1 sigma on the same side; eight consecutive points on one side of the center line. Lloyd Nelson published his eight tests in 1984 as an extension of that set.
So the Western Electric four are a subset of the Nelson eight, with one small difference of threshold: Western Electric flags eight points on one side, Nelson uses nine. The extra Nelson tests add the trend, the alternating sawtooth, the too-quiet run inside 1 sigma and the mixture pattern. This calculator runs all eight and tells you which fired, so you can ignore the ones your customer's plan does not use.
Control charts without the Excel template
Most SME shops chart in a workbook that someone built years ago. It works, until it has to scale. You end up maintaining the constants table by hand, one tab per characteristic, hard-coded ranges that break when a row is inserted, and limits that were recalculated at some point nobody recorded. The rule checks are usually the first thing to go, because writing eight pattern tests in formulas is genuinely awkward, so the chart ends up flagging only points outside the limits.
Then there is the evidence question. When a customer asks which limits were in force in March, a workbook rarely answers: the file has been overwritten, the tab renamed, the drift adjusted out. This calculator takes one dataset off your hands for free. Charting every characteristic against a released control plan, and keeping the record of what was in force when, is what the product does.