The X-bar and R chart is a pair of variables control charts that monitors a process by plotting the average (X-bar) and the range (R) of small subgroups of consecutive measurements, so that shifts in the process level and changes in its variability are caught separately. It is the original Shewhart chart pairing and still the default choice wherever you can economically measure 3 to 5 consecutive parts at regular intervals. The averaging inside each subgroup suppresses noise, which makes the X-bar chart considerably more sensitive to small shifts than a chart of individual values.
The X-bar and R chart is built on the idea of the rational subgroup: a small set of parts made under essentially identical conditions, typically consecutive pieces from one machine. Variation inside a subgroup then represents pure short-term process noise, while variation between subgroup averages reveals real changes in the process level. That separation is the entire diagnostic power of the method. Averages of n parts also scatter less than individual parts (their standard deviation shrinks by the square root of n), so the control limits tighten and small shifts stand out sooner. This is the same family of tools covered in our guide to statistical process control, and it is the standard alternative to the I-MR chart used when only one measurement per period exists.
You always run the pair together and read the R chart first, because the X-bar limits are computed from the average range: if variability is unstable, the X-bar limits cannot be trusted.
The constants depend only on subgroup size n. The three most common rows of the table:
Note that D3 = 0 for subgroups smaller than 7, so the R chart has no lower limit at typical subgroup sizes.
A CNC cell turns shafts to a 50.00 mm target. Every hour, the operator measures 5 consecutive parts. After 25 subgroups the summary is: grand average X-double-bar = 50.00 mm, average range R-bar = 0.58 mm.
Now suppose tool wear moves the true mean to 50.20 mm, less than one part sigma. Individual parts still look fine, but subgroup averages now scatter around 50.20 with a standard deviation of only 0.25 / sqrt(5) = 0.11 mm, so points start crowding and then crossing the 50.33 limit within a few subgroups. The same shift on a chart of individuals would hide for far longer. Note the crucial distinction: the X-bar limits (49.67 to 50.33) apply to subgroup averages, never to individual parts, and they say nothing about whether parts meet specification, which is a process capability (Cp/Cpk) question.
An X-bar and R program stands on timely, trustworthy production data and a closed loop from signal to fix. Fabrico is that real-time data foundation: its real-time OEE and production monitoring captures machine state, counts, and stops as they happen, including via computer vision on machines with no PLC, so quality engineers see the production context behind every out-of-control subgroup. When a signal traces to the equipment (worn tooling, drifting setpoints), Fabrico's field-ready CMMS turns it into a work order on the right asset with history, preventive scheduling, and spare parts in one place. EU-built with EU data residency, it keeps the operational record auditable while your SPC tooling does the statistics.
Subgroups of 4 or 5 are the standard compromise: large enough for the averaging to sharpen sensitivity, small enough to stay rational and affordable. Use n = 2 or 3 when measurement is expensive, and switch to an X-bar and S chart (standard deviation instead of range) when subgroups reach about 9 or more, because the range becomes an inefficient spread estimator for large n.
Because the X-bar limits are calculated from R-bar. If the ranges are unstable, R-bar does not represent the true short-term variation, so the X-bar limits are wrong in an unknown direction. Stabilize variability first, then judge the process level.
No. Control limits describe what the process does, calculated from its own data, and they apply to subgroup averages. Specification limits describe what the customer needs and apply to individual parts. A process can be in perfect statistical control while producing scrap; comparing the process spread to the tolerance is the job of a capability study.
Want your control charts backed by live machine data and a maintenance loop that actually closes? Book a Fabrico demo and see real-time OEE and a field-ready CMMS in one system.