Skip to content

Compliance and audits

Control charts explained: X-bar and R charts, control limits and rules

13 min read Published Updated

A control chart plots a measured value in time order against a center line and two control limits calculated from the data itself, usually three standard deviations either side of the mean. A point outside the limits or a non-random pattern inside them signals a change worth investigating, while points that stay inside show only the normal variation the process always has.

On this page

What is a control chart?

A control chart is a plot of a statistic in time order, such as the average of a few parts or a single reading. It has a center line at the mean and an upper and a lower control limit (UCL and LCL). The classic design is the Shewhart control chart. ISO 7870-1:2019 sets out the general ideas behind control charts and ISO 7870-2:2023 is a guide to Shewhart charts. ASTM E2587-25 describes how to use them in statistical process control.

Every process varies. Part of that variation comes from many small causes that are always present. The NIST/SEMATECH e-Handbook of Statistical Methods calls these chance causes. The rest has a cause you can find and remove, such as a worn tool, a new material lot or a gage that was dropped. These are assignable causes, often called special causes. The chart tells the two apart, so you react to real changes and leave a steady process alone.

The limits are usually set three standard deviations of the plotted statistic either side of the center line. The e-Handbook (section 6.3.1) notes that for a normal distribution a fraction of 0.0027, or 0.27 percent, falls outside 3-sigma limits by chance alone. A point outside the limits is therefore taken as a sign that the process has probably changed. Data case: plotted values that are independent and normally distributed, from a process that has not changed.

Which control chart fits your data?

Pick the chart from the way the data is collected. Each row of the table names its data case.

The variables charts come in pairs. One chart follows the location of the process (averages or single values) and the other follows its spread (ranges or standard deviations). Read the two together.

Control charts by data case
Data caseChartNotes
Subgroups of 2 to about 10 readings taken close togetherX-bar and R chartPlots each subgroup's average and range. The e-Handbook calls the range quite satisfactory up to a subgroup size of about 10.
Subgroups of more than about 10 readingsX-bar and S chartPlots each subgroup's average and standard deviation. At n = 10 the range is about 85 percent as efficient as the standard deviation, and the e-Handbook prefers s for larger subgroups.
One reading per occasionIndividuals and moving range (I-MR) chartPlots each reading and its difference from the one before. Common for slow processes, batch results and check standards.
Counts or proportions, such as defective parts or defects per unitAttribute charts (p, c and u charts)Covered in e-Handbook section 6.3.3. This guide deals with measured values.

How to choose subgroups

Data case: subgrouped data. A subgroup is a small set of readings taken together, such as five consecutive parts from one machine. Take each subgroup over a short stretch of time, so the spread inside it is the short-term variation of the process. Changes between subgroups then show on the X-bar chart, which is where you want to see them.

Subgroups of 4 or 5 are typical, and the e-Handbook notes that little is lost by using the range at those sizes. Keep the subgroup size fixed, because the constants depend on it.

Collect enough data before you fix the limits. Shewhart's rule of thumb, quoted in e-Handbook section 6.3.2, was at least 25 subgroups of size 4 that are in control. ASTM E2587-25 recommends 100 or more data points for the first study where practical. When each subgroup is a single reading it asks for at least 30, and for attribute data it recommends 20 to 25 subgroups.

Limits from a small amount of data are uncertain themselves. The e-Handbook warns that the false alarm rates quoted for control charts assume the true mean and standard deviation are known, and that a chart with limits from little data can behave differently.

Control chart constants: A2, D3, D4 and d2

X-bar and R charts use three constants that depend only on the subgroup size n. A2 sets the X-bar limits from the average range. D3 and D4 set the R chart limits. A fourth constant, d2, turns the average range into an estimate of the process standard deviation: σ = R-bar / d2.

A2, D3 and D4 below are the values printed in NIST/SEMATECH e-Handbook section 6.3.2.1. The d2 values come from published range tables (Harter, 1960) as reproduced in Minitab's documentation. They agree with the handbook's definition A2 = 3 / (d2 × √n).

Constants for X-bar and R charts by subgroup size n
nA2D3D4d2
21.88003.2671.128
31.02302.5751.693
40.72902.2822.059
50.57702.1152.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
Tip: D3 is zero for subgroups of 6 or fewer, so the R chart has a lower limit of zero there. A range cannot be negative.

How to calculate X-bar and R chart limits

Data case: subgroups of the same size n, with n from 2 to 10. For each subgroup work out its average (X-bar) and its range (R), the largest reading minus the smallest. Then average them. The grand mean is the average of the subgroup averages, and R-bar is the average of the ranges.

X-bar chart: center line = grand mean, UCL = grand mean + A2 × R-bar, LCL = grand mean − A2 × R-bar.

R chart: center line = R-bar, UCL = D4 × R-bar, LCL = D3 × R-bar.

These are the formulas of e-Handbook section 6.3.2.1. Behind them sits σ = R-bar / d2. Because A2 = 3 / (d2 × √n), the X-bar limits fall three standard deviations of a subgroup average, 3σ / √n, either side of the center line.

Worked example: an X-bar and R chart for a shaft diameter

A shaft is turned to 10.00 ± 0.05 mm. Every hour an operator measures five consecutive shafts. After 25 hours there are 25 subgroups of five. The table shows the first three.

Over all 25 subgroups the grand mean is 10.010 mm and R-bar is 0.0233 mm. For n = 5 the table of constants gives A2 = 0.577, D3 = 0 and D4 = 2.115.

  • X-bar chart: UCL = 10.010 + 0.577 × 0.0233 = 10.0234 mm and LCL = 10.010 − 0.577 × 0.0233 = 9.9966 mm.
  • R chart: UCL = 2.115 × 0.0233 = 0.0493 mm and LCL = 0 × 0.0233 = 0.
  • Estimated process standard deviation: σ = 0.0233 / 2.326 = 0.0100 mm.
The first three subgroups of five shaft diameters
SubgroupReadings (mm)X-bar (mm)R (mm)
110.004; 10.021; 10.012; 9.998; 10.01510.0100.023
210.017; 10.009; 10.026; 10.003; 10.01010.0130.023
39.999; 10.008; 10.014; 10.018; 10.00110.0080.019
Tip: The X-bar limits of 9.9966 to 10.0234 mm are much narrower than the tolerance of 9.95 to 10.05 mm, because they bound averages of five shafts. Single shafts from this process spread over about 9.98 to 10.04 mm, the mean ± 3σ. The Cp and Cpk guide uses the same process: against the ±0.05 mm tolerance it has Cp = 1.67 and Cpk = 1.33.

X-bar and S charts and individuals charts

Data case: subgroups of the same size n, usually more than 10. The X-bar and S chart replaces each range with the subgroup's standard deviation s. With S-bar as the average of those standard deviations, e-Handbook section 6.3.2.1 gives X-bar limits of grand mean ± 3 × S-bar / (c4 × √n) and S chart limits of S-bar ± 3 × (S-bar / c4) × √(1 − c4²). The constant c4 corrects the bias of s as an estimate of σ. It depends on n and is 0.9727 for n = 10. When the lower S limit comes out negative, the chart has a lower limit of zero.

Data case: one reading per occasion. The individuals and moving range (I-MR) chart uses the moving range MR, the absolute difference between each reading and the one before. With x̄ as the mean of the readings and MR-bar as the average moving range, e-Handbook section 6.3.2.2 gives individuals limits of x̄ ± 3 × MR-bar / 1.128, which is x̄ ± 2.66 × MR-bar. The 1.128 is d2 for n = 2, because each moving range spans two readings. The moving range chart uses the n = 2 constants for the same reason, so its UCL is 3.267 × MR-bar and its LCL is 0.

An example from a gage room: a 25 mm gauge block is kept as a check standard and measured with a micrometer once a week. Over 30 weekly checks the deviations from nominal average +0.6 µm and MR-bar is 0.9 µm. The individuals limits are 0.6 ± 2.66 × 0.9, so about −1.8 µm to +3.0 µm. The moving range chart has a UCL of 3.267 × 0.9 = 2.9 µm.

An individuals chart has no averaging to smooth the readings, so its limits depend heavily on their shape. They assume readings that are roughly normal and do not depend on the reading before. Check a histogram and a plot in time order before you rely on them.

Why you read the R chart first

The X-bar limits are built from R-bar. If the ranges are out of control, R-bar does not describe one steady amount of short-term variation, and the X-bar limits drawn from it are not reliable. Minitab's guidance on X-bar and R charts gives the same order: examine the R chart before you interpret the X-bar chart.

So check the R chart for points above its UCL and for patterns first, and find the cause of each signal. If a subgroup has a known cause that has been fixed, leave it out and recalculate R-bar and the limits from the rest. Then turn to the X-bar chart.

The two charts point to different kinds of trouble. A rising R chart means the process has become less consistent, for example through a loose fixture or a worn tool. A shift on the X-bar chart with a steady R chart means the whole process has moved, for example after a new setting or a new material lot.

What counts as an out-of-control signal?

The basic signal is one point outside a control limit. Patterns inside the limits can signal a change too. E-Handbook section 6.3.2 lists four Western Electric (WECO) rules, which split each side of the center line into zones at 1σ, 2σ and 3σ, and after them two trend rules. Each rule below counts as a signal.

  • Any point beyond 3σ from the center line.
  • 2 of the last 3 points beyond 2σ on the same side.
  • 4 of the last 5 points beyond 1σ on the same side.
  • 8 points in a row on the same side of the center line.
  • Trend rules, listed separately: 6 points in a row steadily rising or falling, or 14 points in a row alternating up and down.
Tip: More rules catch small shifts sooner, at the price of more false alarms. With the 3σ rule alone, the e-Handbook puts the average at one false alarm in 371 points from a process that has not changed. With all four WECO zone rules in use it is about one in 92 points (Champ and Woodall, 1987). The trend rules add more false alarms on top. Both figures assume independent, normally distributed points and exactly known limits. Agree on the rule set before the chart goes live and write it into the procedure.

Control limits are not specification limits

Control limits come from the process data. They show what the process does when nothing changes. Specification limits come from the drawing or the customer. They show what the part has to meet. Minitab's control chart guidance draws the same line: control limits are based on process variation and specification limits on customer requirements.

Do not draw specification limits on an X-bar chart. The chart plots averages of n readings, and the standard deviation of an average is σ / √n, smaller than that of a single part. A subgroup average can sit well inside the tolerance while one of its parts is outside it.

Do not move the control limits to match the tolerance either, or recalculate them each week. Limits that keep moving stop showing change. The e-Handbook suggests recalculating only for a valid reason, such as at least 30 more points with no known change to the process.

In control is not the same as capable

A process in statistical control is predictable. It is not necessarily good. Its spread may be too wide for the tolerance, or its mean may sit off center. Minitab's guidance says it plainly: a process can be in control and still not be capable of meeting specifications.

Capability is the second question. Cp and Cpk compare the process spread with the tolerance, using the standard deviation from the control chart, R-bar / d2 or S-bar / c4. E-Handbook section 6.1.6 describes capability as a comparison of an in-control process with its specification limits. An out-of-control process has no single mean or spread to compare, so a Cpk worked out from its data does not predict the next batch.

The order is to chart the process, bring it into control and then judge its capability.

Control charts in calibration: check standards

Calibration labs and gage rooms use the same tool on their own measurements. A check standard, such as a gauge block or a check weight that stays in the lab, is measured on a schedule and each result is plotted. A shift on the chart shows that something in the measurement has changed between calibrations.

ISO/IEC 17025:2017 clause 7.7.1 lists check or working standards with control charts, where applicable, among the ways a laboratory can monitor the validity of its results. The same clause asks for the data to be recorded so that trends can be detected.

NIST's Office of Weights and Measures describes one method in SOP 17, Control Charts of Check Standards. The check standard should be similar to the items the lab calibrates. It is calibrated at least 12 times on different days to set the baseline. Warning limits sit at 2 standard deviations and control (action) limits at 3. A result between the two calls for a repeat measurement, and the SOP accepts no calibration data while the process is out of control.

Data case: one check standard value per occasion, often the mean of a few repeats. The limits come from the spread of those values over days and weeks, not from the repeats within one occasion. E-Handbook section 2.2.2.1 asks for at least 100 check standard values before the accepted value is fixed.

In automotive measurement practice the same idea is called stability monitoring. Bosch Booklet 10 (procedure 5) measures a reference part at least three times per interval and plots the averages against limits set at 99 percent confidence.

Tip: An out-of-control signal on a check standard chart is not an out-of-tolerance result, and the instrument may still be well inside its limits. Treat the signal as a reason to look for the cause before the next calibration is due.

How to set up an X-bar and R chart, step by step

  1. Choose one characteristic that matters, and check that the gage measuring it is calibrated and fit for the tolerance.
  2. Decide the subgroup: how many readings (often 4 or 5), taken how close together and how often.
  3. Collect at least 25 subgroups from normal running, and note the time and anything that changed.
  4. Work out each subgroup's average and range, then the grand mean and R-bar.
  5. Look up A2, D3 and D4 for your subgroup size and calculate the limits.
  6. Plot the R chart and check it first. Then plot the X-bar chart.
  7. Investigate each signal. Leave out subgroups whose cause was found and fixed, and recalculate the limits.
  8. Fix the limits for ongoing use, and agree in writing which rules count as a signal and who acts on one.
  9. Recalculate the limits only for a reason, such as a deliberate process change or enough new data with no known change.

Where Axiospec fits

Axiospec is calibration management software, not SPC software, and it does not draw control charts. Keep your control charts in your SPC tool or spreadsheet.

It keeps the measurement side that a control chart depends on. Each gage has its calibrations with as-found and as-left readings, its certificates and its next due date. Once an instrument has two calibrations with numeric readings, its Metrology panel can plot the as-found and as-left readings against the nominal and the tolerance band. The panel shows where one of the workspace's standards calls for it (ISO/IEC 17025, IATF 16949, AS9100, ANSI/NCSL Z540.3 or ISO 15189), where the Gage R&R studies or Metrology Insights module is switched on, or where the instrument already holds a gage study or an uncertainty budget and that module has not been switched off. An approved Fail puts the instrument in quarantine. With a standard such as ISO 9001 or ISO/IEC 17025 selected for the workspace, it also asks for the out-of-tolerance impact to be written.

The free plan covers up to 50 active instruments. A new workspace starts with a 45-day trial of Professional, with room for 1,500 active instruments and no credit card.

Common questions

What is a control chart?
A control chart plots a measured value in time order with a center line and upper and lower control limits calculated from the data, usually three standard deviations from the mean. Points outside the limits or non-random patterns signal that the process has changed. Points inside show only its normal variation.
What is an X-bar and R chart?
It is a pair of control charts for data collected in small subgroups, typically 4 or 5 readings. The X-bar chart plots each subgroup's average and the R chart plots its range. The X-bar limits are the grand mean ± A2 × R-bar and the R chart limits are D3 × R-bar and D4 × R-bar.
How do you calculate control limits?
For an X-bar and R chart, average the subgroup averages and the ranges, then apply the constants for your subgroup size. For subgroups of five, A2 = 0.577, D3 = 0 and D4 = 2.115. For single readings, the individuals limits are the mean ± 2.66 times the average moving range.
What is the difference between control limits and specification limits?
Control limits are calculated from the process data and show how the process behaves when nothing changes. Specification limits come from the drawing or the customer and show what the part has to meet. A process can be in control and still make parts outside the specification.
Why do you read the R chart before the X-bar chart?
The X-bar limits are calculated from the average range. If the R chart is out of control, that average does not describe a steady spread, so the X-bar limits are not reliable. Bring the R chart into control first.
How are control charts used in calibration?
A lab plots repeated measurements of a check standard to see whether its measurement process stays stable between calibrations. ISO/IEC 17025:2017 clause 7.7.1 lists check or working standards with control charts among the ways to monitor the validity of results. A signal calls for an investigation before more results are reported.

Put it into practice

Got a gage list? Send it over and we load it for you, usually in a couple of business days. Free on every plan. Then log every calibration to a tamper-evident audit trail and produce records on demand.

Axiospec is a documentation and workflow tool. It helps you keep clean, traceable, audit-ready records. Certification depends on your own processes, scope and assessor.