Free tools

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.

One per line, or comma/tab separated; Excel columns paste straight in.
All calculation runs locally in this tab. Your data is never uploaded.
Leave blank to chart individual readings (I-MR). Enter 2 to 10 if your data was collected in rational subgroups (X-bar & R).
Free. No account needed.
VoraControl
This calculator answers one dataset. VoraControl charts every characteristic against your released control plans, flags out-of-spec captures as they happen and keeps the evidence.
Start free trialBook a demo
The short version

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.

Choosing the chart

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.

The arithmetic

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.

Control chart constants A2, D3, D4 and d2 for subgroup sizes 2 to 10
Subgroup size nA2D3D4d2
21.88003.2671.128
31.02302.5741.693
40.72902.2822.059
50.57702.1142.326
60.48302.0042.534
70.4190.0761.9242.704
80.3730.1361.8642.847
90.3370.1841.8162.970
100.3080.2231.7773.078
Reading the signals

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.

Rule 1
A point falls outside the control limits (more than 3 sigma from the center line).
A sudden special cause: a broken tool, a wrong setup, a measurement slip. Investigate that point first.
Rule 2
Nine or more consecutive points sit on the same side of the center line.
The process mean has shifted. Something changed and stayed changed: material lot, setting, operator method.
Rule 3
Six or more consecutive points steadily increase or steadily decrease.
A drift: tool wear, warming up, gradual contamination. The process is walking, not jumping.
Rule 4
Fourteen or more consecutive points alternate up and down.
Systematic overcorrection or two alternating streams (heads, fixtures, shifts) mixed on one chart.
Rule 5
Two out of three consecutive points fall more than 2 sigma from the center line, on the same side.
An early warning of a shift, caught before Rule 1 fires. Worth checking now, not after the next point.
Rule 6
Four out of five consecutive points fall more than 1 sigma from the center line, on the same side.
A smaller sustained shift than Rule 5 catches. The mean has probably moved a little.
Rule 7
Fifteen or more consecutive points sit within 1 sigma of the center line, on either side.
Variation looks too good. Usual suspects: stale or edited data, a stuck gauge, or stratified sampling that averages streams together.
Rule 8
Eight or more consecutive points fall more than 1 sigma from the center line, with none inside, on either side.
A mixture: two process streams (machines, cavities, shifts) plotted as one. Separate them onto their own charts.
Two rule sets

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.

The spreadsheet route

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.

Questions we get about control charts

How many readings do I need before the limits mean anything?
Twenty to twenty-five is the usual working minimum for I-MR, and the same number of subgroups for X-bar & R. Fewer than that and the limits move a lot as you add data. You can chart earlier, but treat the limits as provisional and recompute once you have a full run.
A point is outside the limits. Do I stop the machine?
Not automatically. Check the reading and the gauge first, because a mis-keyed value or a bad measurement is the most common cause. If the reading is real, look at what changed at that moment and act on that. The chart tells you where to look, not what to do.
Should I put the drawing tolerance on the chart?
No. Control limits and specification limits answer different questions and drawing both on one chart teaches operators to react to the wrong one. Keep the tolerance question in a capability study.
My process is in control. Are the parts good?
Not necessarily. In control means the process is behaving consistently; it says nothing about whether that consistent behaviour fits the tolerance. A stable process can sit half outside the drawing. Run a Cp/Cpk study to answer the tolerance question.
When should I recalculate the control limits?
After a deliberate change to the process, such as a new tool, a new material or a machine rebuild, and after you have found and fixed a special cause. Recompute from data that excludes the disturbance, and note the date the new limits took effect.
Does this calculator send my data anywhere?
No. The parse and the arithmetic run in your browser; the values you paste do not leave the page and nothing is stored.
VoraControl
This calculator answers one dataset. VoraControl charts every characteristic against your released control plans, flags out-of-spec captures as they happen and keeps the evidence.
Start free trialBook a demo
Control chart calculator: X-bar R & I-MR limits | VoraSuite