Which process question does this chart answer?
An X-bar and R pair separates two related questions: did the subgroup average move, and did the within-subgroup spread change? Plotting both matters because a steady average can hide a new source of variation, while a changing average can make a spread estimate harder to trust.
The subgroup should represent a short, comparable production window, with pieces made under similar conditions. If measurements are collected across an entire shift or across different machines, the range may mix distinct sources and the calculated control limits will not describe one stable process.
Inputs, units, and validation
Enter the subgroup size as a whole number from 2 through 10, the grand mean in the measurement unit, and the average subgroup range in that same unit. A negative grand mean can be valid for a signed measurement; a negative range cannot, because a range is a nonnegative distance.
The calculator uses the subgroup size to select the standard constants A₂, D₃, and D₄. It does not need every raw reading because those summaries are already supplied; it also cannot verify that the ranges came from the same subgroup definitions as the grand mean.
Formula and worked example
The X-bar center is the grand mean; its limits are grand mean ± A₂ times average range. The R center is average range, with limits D₃R-bar and D₄R-bar. These dimensionless constants account for expected range behavior at the selected subgroup size.
For n=5, A₂=0.577, D₃=0, and D₄=2.115. With an average range of 2 units around a grand mean of 100, the X-bar limits are 98.846 and 101.154; the R limits are 0, 2, and 4.230 units (displayed as 4.23). The calculator shows control limits to at most four decimal places.
Read the result in time order
For n=4, the corresponding factors are A₂=0.729, D₃=0, and D₄=2.282. If the grand mean is 50 units and the average range is 1.2, the X-bar limits are 49.1252 and 50.8748, while the R upper limit is 2.7384 units.
The example values are calculated before display rounding. A control limit such as 101.154 is a process-monitoring boundary, not a tolerance limit, and should not be copied into a product drawing as an acceptance criterion.
Assumptions and limits
Read the R chart first. If within-subgroup spread is unstable, the estimate underlying the X-bar limits is suspect. Once spread behaves consistently, look for points or patterns in the X-bar chart and investigate process changes instead of adjusting settings automatically.
A point outside a limit is evidence of an unlikely pattern under the fitted model, not proof that a specific operator or machine caused it. Conversely, points inside limits do not establish that output meets customer specifications or that every unit is conforming.
Use the limits consistently
Three-sigma constants assume a stable process and rational subgroups that capture short-term variation. This summary calculator cannot test independence, normality, subgroup homogeneity, sampling cadence, or whether a historical baseline contains special causes.
Keep the subgroup size, measurement unit, baseline window, included shifts, average range, and selected factors with the chart. Recalculate only when a documented baseline or subgroup design changes; do not silently mix results from different periods. the X-bar R Control Chart Limits Calculator
Match factors to subgroup size
The first example uses n=5 and the second n=4. The constants are tabulated by subgroup size, so keep the selected n with both the X-bar and R limits.
Worked examples
Five-piece subgroup example
Inputs: n=5; grand mean=100 units; average range=2 units
Calculation: A₂=0.577, D₃=0, D₄=2.115; X-bar limits=100±0.577×2; R limits=0, 2, 2.115×2=4.230
X-bar LCL=98.846, center=100, UCL=101.154; R LCL=0, center=2, UCL=4.23 units.
Four-piece subgroup example
Inputs: n=4; grand mean=50 units; average range=1.2 units
Calculation: A₂=0.729, D₃=0, D₄=2.282; X-bar limits=50±0.729×1.2; R UCL=2.282×1.2
X-bar limits are 49.1252 and 50.8748 around 50; the R limits are 0 and 2.7384 around 1.2 units.