Process monitoring

Control Chart Constants d₂, d₃, c₄, A₂, A₃, D₃, D₄, B₃, B₄ for n = 2 to 25

Kitstead Labs · Engineering reference · Synthetic worked example

A reference table for process engineers who set control limits in a spreadsheet and want to know where every constant comes from.

Quick answer

Pick the row for your subgroup size n, the number of measurements inside each subgroup, not the number of subgroups. Then:

  • X̄-R chart: X̄ limits X̿ ± A₂ R̄; R limits D₃ R̄ and D₄ R̄.
  • X̄-s chart: X̄ limits X̿ ± A₃ s̄; s limits B₃ s̄ and B₄ s̄.
  • I-MR chart: moving ranges of two consecutive values use the n = 2 row: I limits x̄ ± 2.659 MR̄ (usually quoted as 2.66), MR upper limit 3.267 MR̄, no lower limit.
  • Standard deviation estimate: σ̂ = R̄/d₂ from ranges, or σ̂ = s̄/c₄ from subgroup standard deviations.

The constants are not arbitrary. d₂ and d₃ are the mean and standard deviation of the range of n values drawn from a normal distribution with σ = 1, c₄ is the mean of the sample standard deviation of n such values, and every other constant is a short formula in those three. The table below was recomputed from those definitions; the formulas are written out after it so that any entry can be checked.

About the example. The worked example uses a synthetic set of 60 thickness readings, 15 subgroups of 4, chosen to show the arithmetic. The constants are derived from their definitions (Montgomery, 2013, Chapter 6 and Appendix VI; NIST/SEMATECH e-Handbook, Section 6.3.2) and rounded once, at the end, to the digits shown.

The table

The columns are grouped by use. d₂, d₃ and c₄ are the base quantities; A₂, D₃ and D₄ serve the X̄-R chart; A₃, B₃ and B₄ serve the X̄-s chart; E₂ = 3/d₂ is the multiplier for individual-value limits when a moving range of n points is used. A zero in the D₃ or B₃ column means the lower limit of the range or s chart is zero for that subgroup size.

Control chart constants for n = 2 to 10
nd₂d₃c₄A₂A₃D₃D₄B₃B₄E₂
21.1280.8530.79791.8802.65903.26703.2672.659
31.6930.8880.88621.0231.95402.57502.5681.772
42.0590.8800.92130.7291.62802.28202.2661.457
52.3260.8640.94000.5771.42702.11402.0891.290
62.5340.8480.95150.4831.28702.0040.0301.9701.184
72.7040.8330.95940.4191.1820.0761.9240.1181.8821.109
82.8470.8200.96500.3731.0990.1361.8640.1851.8151.054
92.9700.8080.96930.3371.0320.1841.8160.2391.7611.010
103.0780.7970.97270.3080.9750.2231.7770.2841.7160.975

The second half of the table continues to n = 25. Subgroups this large are unusual on a production line, but they do occur when a whole panel or strip is measured at many sites, and the s chart is the better choice there (see below).

Control chart constants for n = 11 to 25
nd₂d₃c₄A₂A₃D₃D₄B₃B₄E₂
113.1730.7870.97540.2850.9270.2561.7440.3211.6790.946
123.2580.7780.97760.2660.8860.2831.7170.3541.6460.921
133.3360.7700.97940.2490.8500.3071.6930.3821.6180.899
143.4070.7630.98100.2350.8170.3281.6720.4061.5940.881
153.4720.7560.98230.2230.7890.3471.6530.4281.5720.864
163.5320.7500.98350.2120.7630.3631.6370.4481.5520.849
173.5880.7440.98450.2030.7390.3781.6220.4661.5340.836
183.6400.7390.98540.1940.7180.3911.6090.4821.5180.824
193.6890.7330.98620.1870.6980.4041.5960.4971.5030.813
203.7350.7290.98690.1800.6800.4151.5850.5101.4900.803
213.7780.7240.98760.1730.6630.4251.5750.5231.4770.794
223.8190.7200.98820.1670.6470.4351.5650.5341.4660.785
233.8580.7160.98870.1620.6330.4431.5570.5451.4550.778
243.8950.7120.98920.1570.6190.4521.5480.5551.4450.770
253.9310.7080.98960.1530.6060.4591.5410.5651.4350.763

Published tables agree with this one except in the last digit of a few entries that sit close to a rounding boundary, D₄ at n = 3 (printed as 2.574 or 2.575) and at n = 5 (2.114 or 2.115) being the usual ones. Differences like these come from how many digits of d₂ and d₃ were carried before the division. In the control limit they amount to 0.001 R̄, under 0.05 % of the limit, far less than the sampling uncertainty of R̄ itself, which is several percent with 25 subgroups. This page carries full precision through the division and rounds once.

Where the constants come from

Every variables control chart needs an estimate of the process standard deviation σ, and the constants exist to turn a statistic that is easy to compute by hand, the range R or the standard deviation s of a small subgroup, into that estimate. Three quantities carry all the information; the rest are arithmetic.

d₂ and d₃: the range of n normal values. Take n values from a normal distribution with standard deviation σ and compute their range R = max − min. The range is a random variable; its mean is d₂ σ and its standard deviation is d₃ σ. For n = 2, R is the absolute difference of two values, so d₂ = 2/√π = 1.128 and d₃ = √(2 − 4/π) = 0.853. For larger n, d₂ is the integral of 1 − Φ(x)ⁿ − [1 − Φ(x)]ⁿ over all x, where Φ is the standard normal cumulative distribution, and d₃ comes from the corresponding expression for the mean of R². For most n the integrals are evaluated numerically; a few small n still have closed forms, for example d₂ = 3/√π = 1.693 at n = 3. Because the mean range is d₂ σ, the average of many subgroup ranges estimates d₂ σ, and σ̂ = R̄/d₂. The constant grows with n, from 1.128 at n = 2 to 3.931 at n = 25, because the extremes of a larger sample sit further apart.

c₄: the standard deviation of n normal values. The sample standard deviation s (with n − 1 in the denominator) is an unbiased estimator of σ² when squared, but s itself is biased low: its mean is c₄ σ with c₄ below 1. The exact value is c₄ = √(2/(n − 1)) × Γ(n/2)/Γ((n − 1)/2), where Γ is the gamma function. For n = 2, c₄ = √(2/π) = 0.7979; by n = 10 it is 0.9727 and by n = 25 it is 0.9896, so the bias shrinks quickly as the subgroup grows. The standard deviation of s is σ √(1 − c₄²). Averaging subgroup standard deviations gives s̄, and σ̂ = s̄/c₄.

The chart constants are 3σ limits rewritten in R̄ or s̄. A Shewhart chart places its limits three standard deviations of the plotted statistic from the centre line. The mean of a subgroup of n values has standard deviation σ/√n, so the X̄ limits are X̿ ± 3σ/√n. Substituting σ̂ = R̄/d₂ gives X̿ ± [3/(d₂ √n)] R̄, and A₂ is defined as that bracket. Substituting σ̂ = s̄/c₄ gives A₃ instead. The range chart's limits are R̄ ± 3 d₃ σ̂ = R̄ ± 3 (d₃/d₂) R̄, so D₃ = 1 − 3 d₃/d₂ and D₄ = 1 + 3 d₃/d₂. The s chart's limits are s̄ ± 3 σ̂ √(1 − c₄²), which gives B₃ = 1 − 3 √(1 − c₄²)/c₄ and B₄ = 1 + 3 √(1 − c₄²)/c₄. For an individuals chart the plotted statistic is a single value with standard deviation σ, so the limits are x̄ ± 3 σ̂ = x̄ ± (3/d₂) MR̄, and E₂ = 3/d₂.

How each chart constant is calculated
ConstantFormulaUsed for
A₂3/(d₂ √n)X̄ limits from R̄
A₃3/(c₄ √n)X̄ limits from s̄
D₃1 − 3 d₃/d₂, or 0 when negativeR chart lower limit
D₄1 + 3 d₃/d₂R chart upper limit
B₃1 − 3 √(1 − c₄²)/c₄, or 0 when negatives chart lower limit
B₄1 + 3 √(1 − c₄²)/c₄s chart upper limit
E₂3/d₂Individuals limits from MR̄

Why the lower limits are zero for small subgroups. A range or a standard deviation cannot be negative, but the formula 1 − 3 d₃/d₂ is negative for n up to 6, and 1 − 3 √(1 − c₄²)/c₄ is negative for n up to 5. In those rows the lower limit is set to zero. The practical consequence is that a range chart with n ≤ 6 cannot flag a reduction in variation by the single-point rule, because no range can fall below zero; a run of ranges below the centre line is still visible to the run rules, and that is how an improvement is usually noticed on such a chart.

Why A₂ falls as n grows. Two effects act in the same direction. A larger subgroup has a larger mean range, so dividing by d₂ gives a smaller σ̂ per unit of R̄, and the mean of more values varies less, so the limits sit at 3σ/√n rather than 3σ. At n = 2 the X̄ limits are 1.880 R̄ wide on each side; at n = 5 they are 0.577 R̄; at n = 10 they are 0.308 R̄. A chart drawn with the wrong row therefore has limits that are wrong by a large factor, not by a few percent, which is why the subgroup size is the first thing to check when a chart looks too quiet or too noisy.

When to prefer the s chart. For subgroups of 2 to about 10 the range uses nearly all the information in the subgroup and is easier to compute, so the X̄-R chart is the usual choice. As n grows the range increasingly ignores the values in the middle of the subgroup, and the standard deviation becomes the better estimator; the X̄-s chart is preferred for larger subgroups, roughly n above 10, and whenever the subgroup size varies from sample to sample, because s̄/c₄ handles unequal n more naturally than ranges do. On the same data with the same n the two charts give almost the same limits, as the example shows.

1 2 3 4 0.80 0.90 1.00 2 5 10 15 20 25 subgroup size n d₂ = 1.128 d₂ = 3.931 at n = 25 c₄ = 0.7979 c₄ = 0.9896 at n = 25 d₂ (left axis) c₄ (right axis)
d₂ grows with the subgroup size while c₄ approaches 1.

Worked example: one data set, both charts

A solder-resist layer is measured at four sites on each panel, 15 panels in a row, in µm. The subgroup is the panel, n = 4, and the four sites are measured under the same conditions within a few minutes, so the within-panel spread represents common-cause variation.

Readings by panel, one row per subgroup, four sites per row:

1,24.7,24.9,25.2,25.7
2,25.2,25.3,25.3,24.3
3,24.9,26.6,25.2,26.1
4,26.2,24.6,25.7,24.8
5,23.9,25.5,25.6,25.0
6,24.8,25.1,24.3,25.4
7,25.3,24.5,25.8,26.0
8,25.4,24.4,23.9,24.1
9,24.4,24.7,23.7,24.8
10,25.1,24.3,25.0,25.0
11,25.5,25.9,25.6,24.8
12,23.8,23.7,24.6,25.4
13,24.8,24.7,24.7,24.9
14,24.8,23.9,24.4,23.3
15,25.7,24.1,24.9,24.6

For each panel compute the mean x̄, the range R and the standard deviation s (n − 1 in the denominator).

Panel means, ranges and standard deviations (µm)
Panelx̄ (µm)R (µm)s (µm)
125.1251.00.435
225.0251.00.486
325.7001.70.787
425.3251.60.754
525.0001.70.779
624.9001.10.469
725.4001.50.668
824.4501.50.666
924.4001.10.497
1024.8500.80.370
1125.4501.10.465
1224.3751.70.793
1324.7750.20.096
1424.1001.50.648
1524.8251.60.670

The three averages over the 15 panels are X̿ = 24.913 µm, R̄ = 1.273 µm and s̄ = 0.572 µm. Intermediate values are shown rounded, but every result below was carried at full precision and rounded at the end.

Sigma estimates. From the n = 4 row, d₂ = 2.059 and c₄ = 0.9213:

The two estimates differ by 0.003 µm, well within what the sampling variation of 15 subgroups can produce.

X̄-R limits. With A₂ = 0.729, D₃ = 0 and D₄ = 2.282:

X̄-s limits. With A₃ = 1.628, B₃ = 0 and B₄ = 2.266:

The X̄ limits from the two routes differ by 0.004 µm, well below the 0.1 µm resolution of the readings. Both charts show the same picture: the panel means run from 24.100 to 25.700, inside the limits; the largest range is 1.7 against an upper limit of 2.906, and the largest standard deviation is 0.793 against 1.297. The process shows only common-cause variation over these 15 panels, and these trial limits can be carried forward to monitor the next panels. The lower limit of zero on the R and s charts means that panel 13, with a range of 0.2 µm, is not flagged by the single-point rule even though it is unusually uniform; it would take a run of such panels to signal a real reduction in spread.

Checking a constant by hand. A₂ for n = 4 should equal 3/(d₂ √n) = 3/(2.059 × 2) = 0.729, and it does; D₄ should equal 1 + 3 d₃/d₂ = 1 + 3 × 0.880/2.059 = 2.282, and it does. The same two lines check any row of the table, which is the point of knowing where the constants come from: a transcription error in a spreadsheet is caught in a minute.

Common mistakes

  1. Using the number of subgroups as n. The row is chosen by the number of readings inside one subgroup (4 in the example), not by how many subgroups were collected (15). Confusing the two is the most common reason for limits that are far too tight.
  2. Mixing the n = 2 constants into a subgrouped chart. The I-MR multipliers 2.659 (or 2.66) and 3.267 belong to moving ranges of two consecutive values. An X̄-R chart with n = 5 uses 0.577 and 2.114; applying 2.66 to R̄ there would place the X̄ limits more than four times too far from the centre line.
  3. Pairing R-chart constants with s̄, or s-chart constants with R̄. A₂, D₃ and D₄ multiply R̄; A₃, B₃ and B₄ multiply s̄. In the example, A₂ × s̄ would give limits only 0.417 µm wide on each side instead of 0.928 µm.
  4. Estimating σ with the overall standard deviation of all readings. The constants convert within-subgroup spread into σ. The standard deviation of all 60 readings pooled together includes any drift between panels and belongs to capability indices such as Pp and Ppk, not to control limits.
  5. Reading a zero lower limit as "no lower limit needed". D₃ = 0 for n ≤ 6 and B₃ = 0 for n ≤ 5 are consequences of the 3σ formula going negative, not a statement that reduced variation is unimportant. Use run rules on the R or s chart to detect improvement.
  6. Treating the last digit of a table as exact. Two tables can print 2.574 and 2.575 for the same constant. Neither is wrong; the upper limits they produce differ by 0.001 R̄, about 0.04 %, far smaller than the sampling uncertainty of R̄ from the 20 or 25 subgroups normally used to set trial limits.

Using the tools and guides with this table

The Which control chart for which data guide decides between I-MR, X̄-R, p and c charts and works the first two with the n = 2 and n = 5 rows of this table. The I-MR control chart guide carries an individuals chart end to end on ordered thickness data using the n = 2 row. The Subgroup Control Chart Calculator applies the unrounded values behind this table to pasted subgroups of 2 to 25, so its limits agree with this guide's worked example. Once a chart shows the process is stable, the Process Capability Calculator estimates the within-process σ from consecutive readings with the same d₂ = 1.128 and turns it into Cp and Cpk; the Cpk vs Ppk guide explains why a within σ estimated from ranges and d₂, as in this table, and the overall σ of all readings answer different questions. The Z, t and chi-square tables cover the probability side: how rare a point beyond 3σ is, and how wide an interval for σ from a small sample is.

Sources and further reading