Calculates on this device. File exports run online.
Control Chart Generator
Paste your measurements or counts to get the centre line, the upper and lower control limits, a chart and the points that break a run rule. Or work out the limits from a known mean and standard deviation, average range or average share defective.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use the control chart generator
- Choose the kind of data: measurements in subgroups (several parts measured each time), single measurements, or counts of defects or defective units.
- Paste the data in time order. For subgroups, put one subgroup on each line, or one long list and the subgroup size.
- Choose the run rules (Western Electric or Nelson) and press Calculate. You get the centre line, the control limits, the charts and a table of every point that breaks a rule.
- To set up limits from past data, tick phase I under More options: points beyond the limits are set aside and the limits are worked out again.
- The box under the result works the same chart out again on the server and gives it as a picture file.
Which chart?
- X̄ and R chart: subgroups of 2 to about 10 measurements (for example 5 parts every hour). X̄ and S chart: larger subgroups.
- I-MR chart (individuals and moving range): one measurement at a time, such as a daily test result.
- p chart: the share of defective units in samples whose size may change. np chart: the number of defective units in samples of the same size.
- c chart: the number of defects in the same amount of product each time. u chart: defects per unit when the amount changes.
The formulas
- X̄ chart: X̿ ± A2 R̄ (or X̿ ± A3 S̄). R chart: D3 R̄ to D4 R̄. S chart: B3 S̄ to B4 S̄. For subgroups of 5: A2 = 0.577, D4 = 2.114.
- I chart: X̄ ± 2.66 MR̄ (2.66 = 3 ÷ d2, d2 = 1.128 for ranges of two values). MR chart: up to 3.267 MR̄.
- p chart: p̄ ± 3 √(p̄ (1 − p̄) ÷ n). np chart: n p̄ ± 3 √(n p̄ (1 − p̄)). c chart: c̄ ± 3 √c̄. u chart: ū ± 3 √(ū ÷ n).
- The constants d2, d3, c4 and the factors made from them are worked out from their definitions for any subgroup size from 2 to 100 (the tables of ASTM E2587-16 agree).
Run rules
- Western Electric (1956): 1 point beyond 3σ; 2 of 3 in a row beyond 2σ on the same side; 4 of 5 in a row beyond 1σ on the same side; 8 in a row on one side of the centre line.
- Nelson (1984) adds: 6 in a row rising or falling; 14 in a row alternating up and down; 15 in a row within 1σ; 8 in a row beyond 1σ on either side (and uses 9 in a row on one side).
- σ here is a third of the distance from the centre line to a control limit. More rules find small shifts sooner but also give more false alarms.
Worked example
Twelve subgroups of five shaft diameters have a grand mean X̿ = 25.00087 mm and an average range R̄ = 0.00842 mm. The X̄ limits are 25.00087 ± 0.577 × 0.00842 = 24.99601 to 25.00572 mm; the R chart goes up to 2.114 × 0.00842 = 0.01780 mm.
Subgroup 10 has a mean of 25.0106 mm, beyond the upper limit: a signal to look for a cause.
Limits you should know
- Control limits come from the process, not from the specification. A process can be stable and still make parts out of tolerance: check that with a capability study.
- The limits assume independent points; data that drift slowly or are correlated in time give more signals than the rules expect.
- p and c charts assume binomial and Poisson counts; very small p̄ or c̄ give a lower limit of 0 and few useful signals.