Control chart calculator
A control chart plots a measure in time order against limits three standard deviations either side of its average, so a real change stands out from everyday variation. Use a p chart for the fraction defective per day or shift, and an I-MR chart for individual measurements. Points that break the Western Electric rules are flagged.
Build your control chart
Pick the chart that fits your data. Paste one subgroup or measurement per line, oldest first.
"410, 13", or with a label first: "3 Nov, 410, 13". A header row is skipped.
1 point breaks a rule. Rule 1 (one point beyond the 3σ limits): 13 Nov. Look for what changed at those points before adjusting the process. With fewer than 20 points, treat the limits as provisional.
- Value
- Control limits
- Rule signal (number = rule)
Show the data table
| Point | Value | LCL | UCL | Rules |
|---|---|---|---|---|
| 3 Nov | 3.17% | 0.87% | 6.43% | — |
| 4 Nov | 3.8% | 0.82% | 6.48% | — |
| 5 Nov | 2.86% | 0.9% | 6.4% | — |
| 6 Nov | 3.95% | 0.85% | 6.45% | — |
| 7 Nov | 2.84% | 0.79% | 6.51% | — |
| 10 Nov | 3.37% | 0.89% | 6.41% | — |
| 11 Nov | 3.25% | 0.84% | 6.46% | — |
| 12 Nov | 3.83% | 0.81% | 6.49% | — |
| 13 Nov | 7.5% | 0.84% | 6.46% | 1 |
| 14 Nov | 3.35% | 0.9% | 6.4% | — |
| 17 Nov | 2.98% | 0.85% | 6.45% | — |
| 18 Nov | 3.66% | 0.87% | 6.43% | — |
| 19 Nov | 3.28% | 0.82% | 6.48% | — |
| 20 Nov | 3.76% | 0.92% | 6.38% | — |
| 21 Nov | 3.21% | 0.85% | 6.45% | — |
Show the working
- p̄ = 222 defective ÷ 6,082 checked = 0.0365 (3.65%).
- Subgroup 3 Nov (n = 410): σ = √(0.0365 × 0.9635 ÷ 410) = 0.00926, so UCL = 6.43% and LCL = 0.87%. Each subgroup gets its own limits from its own n: larger subgroups get tighter limits.
- Rule 1 (one point beyond the 3σ limits): 13 Nov at 7.5%.
- Rule 2 (two of three points in a row beyond 2σ on the same side): no signal.
- Rule 3 (four of five points in a row beyond 1σ on the same side): no signal.
- Rule 4 (eight points in a row on the same side of the centre line): no signal.
- Only 15 subgroups: treat these limits as provisional until you have 20 or more.
The control limit formulas
The limits describe what the process does, not what the customer wants: they come from the data's own variation. A p chart's limits move with each subgroup's size, because a percentage from a big subgroup is steadier than one from a small one.
Each point is also checked against the four Western Electric rules: 1, one point beyond 3σ; 2, two of three in a row beyond 2σ on the same side; 3, four of five in a row beyond 1σ on the same side; 4, eight in a row on the same side of the centre line. Rules 2 to 4 catch shifts too small for rule 1. The more rules you apply, the more often an ordinary process will set one off by chance.
Worked example
Two examples, one for each chart. A final inspection station checks every unit off an assembly line: over 15 working days it checked between 388 and 425 units a day and found 222 defective in total, 30 of them out of 400 on 13 November. Separately, a bottle filler targets 500 g, and an operator weighs one bottle every 15 minutes for 20 bottles; after the twelfth, a new batch of product goes into the hopper.
- p chart: p̄ = 222 defective ÷ 6,082 checked = 0.0365 (3.65%).
- p chart: Subgroup 3 Nov (n = 410): σ = √(0.0365 × 0.9635 ÷ 410) = 0.00926, so UCL = 6.43% and LCL = 0.87%. Each subgroup gets its own limits from its own n: larger subgroups get tighter limits.
- p chart: Rule 1 (one point beyond the 3σ limits): 13 Nov at 7.5%.
- p chart: Rule 2 (two of three points in a row beyond 2σ on the same side): no signal.
- p chart: Rule 3 (four of five points in a row beyond 1σ on the same side): no signal.
- p chart: Rule 4 (eight points in a row on the same side of the centre line): no signal.
- p chart: Only 15 subgroups: treat these limits as provisional until you have 20 or more.
- I-MR chart: Mean: x̄ = 10,009.7 ÷ 20 = 500.485.
- I-MR chart: Moving ranges: 19 differences between neighbouring points, average MR̄ = 16.3 ÷ 19 = 0.8579.
- I-MR chart: σ estimate: MR̄ ÷ 1.128 = 0.7605.
- I-MR chart: Individuals limits: x̄ ± 3σ = 498.2034 to 502.7666.
- I-MR chart: Moving range limit: 3.267 × MR̄ = 2.8027; the lower limit is 0.
- I-MR chart: Rule 1 (one point beyond the 3σ limits): no signal.
- I-MR chart: Rule 2 (two of three points in a row beyond 2σ on the same side): no signal.
- I-MR chart: Rule 3 (four of five points in a row beyond 1σ on the same side): no signal.
- I-MR chart: Rule 4 (eight points in a row on the same side of the centre line): point 20 (501.1).
- I-MR chart: Moving range rule 1: no jump between neighbouring points is beyond the limit.
Common mistakes
- Using specification limits as control limits. Specification limits say what the customer will accept. Control limits say what the process does on its own. A process can be in control and still make bad parts, or be out of control while every part is in spec.
- Recomputing the limits with every new point. Set the limits from a stable baseline period, then judge new points against them. Limits that move with every point slowly absorb a drift instead of showing it.
- Adjusting the process on every point near a limit. Reacting to ordinary variation (tampering) adds variation. Act on a rule signal, look for the cause, and leave the process alone otherwise.
- A p chart with very large subgroups. With thousands of units per subgroup, p chart limits get so tight that almost every point signals, because real processes vary more from day to day than the binomial formula assumes. The Laney p′ chart widens the limits using the variation seen between subgroups.
- Mixing products or machines on one chart. Each product or machine has its own average. Putting several on one chart creates runs and jumps that are just the mix changing.
Control chart FAQ
What is a control chart?
A time-ordered plot of a process measure with a centre line and upper and lower control limits, usually three standard deviations from the centre. Points inside the limits with no pattern are ordinary variation; a point outside or a rule-breaking pattern is a signal that something changed.
How are control limits set?
From the process's own data. For a p chart: p̄ ± 3 × √(p̄ × (1 − p̄) ÷ n) for each subgroup size n. For an individuals chart: x̄ ± 3σ, with σ estimated as the average moving range ÷ 1.128. The moving range chart's upper limit is 3.267 × the average moving range.
What are the Western Electric rules?
Four tests for signals: 1, one point beyond 3σ; 2, two of three consecutive points beyond 2σ on the same side; 3, four of five consecutive points beyond 1σ on the same side; 4, eight consecutive points on the same side of the centre line.
When should I use a p chart instead of an I-MR chart?
Use a p chart when each subgroup gives a count of defective units out of a number checked, such as rejects per day. Use an I-MR chart when you have one measurement at a time, such as a weight, a diameter or a daily total.
How many points do I need?
Twenty to twenty-five subgroups or measurements give limits you can rely on. With fewer, the tool still draws the chart but marks the limits as provisional.
Is anything I enter saved?
No. The calculator runs in your browser and nothing you type is sent to AutoOps AI or stored. There is no login.