MECHOWL ENGINEERING AI

Control chart limits calculator (from the grand mean and mean range, or the mean fraction defective)

Finds the centre line and control limits of an X̄-R chart (from the grand mean, the mean range and the subgroup size) and the control limits of a p chart (from the mean fraction defective and the number inspected).

Last updated

Unit system (SI / gravitational units)

Inputs

What to find

Choose an X̄-R chart for measured values (length, mass and so on), or a p chart for counted defectives.

UCLCLLCL

The mean of the subgroup means X̄ over all the subgroups. e.g. 50.00

The mean, over all the subgroups, of the range of each subgroup (maximum − minimum), in the same unit as X̿ (0 or more). e.g. 0.8

The number of data measured in one subgroup (a whole number). e.g. 5

The total number of defectives in all the subgroups ÷ the total number inspected. e.g. 1.35 %

The number inspected in the subgroup (lot or day) for which the control limits are found (a whole number). When the number differs from subgroup to subgroup, find the limits for each subgroup. e.g. 703 pieces

Results

Enter the values to see the result diagram here.

Results appear here as you enter values.

Results are reference values from your inputs and the stated formulas and standards; they do not guarantee that a design is correct or safe. The final decision rests with you.

References

  • NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.2.1 Shewhart X-bar and R and S Control Charts · NIST (National Institute of Standards and Technology, US) · X-bar and R charts (σ estimated by R̄/d2; limits of the X-bar chart X̿ ± A2·R̄ with A2 = 3/(d2√n); limits of the R chart D3·R̄ and D4·R̄ with D3 = 1 − 3d3/d2 and D4 = 1 + 3d3/d2) · Open the document
  • NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.3.2 Proportions Control Charts · NIST (National Institute of Standards and Technology, US) · p chart (p̂ = D/n, centre line p̄, control limits p̄ ± 3√(p̄(1 − p̄)/n)) · Open the document
  • Control of Manufacturing Processes (MIT 2.830J, 2008), Lecture 7 “Shewhart SPC & Process Capability” · MIT OpenCourseWare · pp. 15–18 Chart Limits (control limits of the X-bar chart set at mean ± 3σ, the correction c4 for the bias of the sample standard deviation, limits of the S chart) · Open the document
    This is a document on X-bar–S charts. The coefficients of the X-bar–R chart (A2, D3, D4) and the p chart are not in it.
  • SQC Smart Introduction Course, Part 1: Making a data sheet for count inspection (Japanese) · KEYENCE · Data sheet of a p control chart (UCL and LCL for 11 days) · Open the document

The references were chosen independently by MechOwl; they do not recommend or guarantee this page.

Paste this line into your message:
https://mechowl.com/calc/en/quality/control-chart/ (calculation version 0.2.0)

Explanation

A control chart plots a statistic of each subgroup in time order and compares it with the centre line and the upper and lower control limits, to see whether there is an abnormality in the process (a cause different from the usual). The X̄-R chart plots the mean X̄ and the range R of each subgroup; the p chart plots the fraction defective p of each subgroup.

How to use

For an X̄-R chart, enter the grand mean X̿, the mean range R̄ and the subgroup size n. For a p chart, enter the mean fraction defective p̄ and the number inspected in that subgroup, n.

Worked examples (hand calculation)

  1. Example 1: X̄-R: X̿ 50, R̄ 0.8, n 5

    n = 5: d2 = 2.32593, d3 = 0.864082. A2 = 3 ÷ (2.32593 × √5) = 0.576819, 3·d3/d2 = 1.11450, so D3 = max(0, −0.11450) = 0 and D4 = 2.11450. X̄: 50 ± 0.576819 × 0.8 = 49.53854 to 50.46146. R: UCL = 2.11450 × 0.8 = 1.69160, LCL = 0.

  2. Example 2: X̄-R: X̿ 12.5, R̄ 0.4, n 10 (the LCL of R is positive)

    n = 10: d2 = 3.07751, d3 = 0.797051. A2 = 3 ÷ (3.07751 × √10) = 0.308264, 3·d3/d2 = 0.776977, D3 = 0.223023, D4 = 1.776977. X̄: 12.5 ± 0.123306 → 12.376695 to 12.623305. R: 0.0892091 to 0.710791.

  3. Example 3: X̄-R: subgroup size 25 (the largest with constants)

    n = 25: d2 = 3.93063, d3 = 0.708441. A2 = 3 ÷ (3.93063 × 5) = 0.152647, D3 = 0.459292, D4 = 1.540708. X̄: 25 ± 0.183177, R: 0.551151 to 1.848849.

  4. Example 4: X̄-R: subgroup size 26 (outside the scope)

    A subgroup size of 26 is a valid input but lies outside the constants of this page (2 to 25). Outside the scope: no result is given (use an X̄-s chart).

  5. Example 5: X̄-R: subgroup size 1 (input error)

    One datum has no range. The subgroup size is a whole number of 2 or more, and 1 is an input error (no verdict is given).

  6. Example 6: p: p̄ 1.35 %, n 703

    3√(0.0135 × 0.9865 ÷ 703) = 0.0130575. UCL = 1.35 % + 1.30575 % = 2.65575 %, LCL = 1.35 % − 1.30575 % = 0.044253 % (the source rounds the intermediate values to 3 digits: 2.65 % and 0.05 %).

  7. Example 7: p: p̄ 1.35 %, n 206 (the formula for the LCL is negative, so 0)

    3√(0.0135 × 0.9865 ÷ 206) = 0.0241214. UCL = 3.76214 %. The formula for the LCL gives 1.35 − 2.41214 = −1.06214 %, which is negative, so 0 (the source says "not considered").

Common mistakes

  • Confusing control limits with the upper and lower specification limits: control limits come from the variation of the process and are not a line for passing or failing a product.
  • Using the same limits on a p chart for subgroups with different numbers inspected: the limits change with n, so find them for each subgroup.
  • Entering the standard deviation of a subgroup as R̄: enter the mean of the ranges (maximum − minimum).

FAQ

Do the constants A2, D3 and D4 differ slightly from the values in tables?
Tables give values rounded to 3 or 4 digits. This page finds d2 and d3 by numerical integration and uses them unrounded (the values can differ in the 4th digit).
The LCL came out as 0.
When the value of the formula is negative, it is set to 0 (a range or a fraction defective cannot be negative).

Scope

The centre lines and the ±3σ control limits of the X̄-R chart (subgroup size 2 to 25) and the p chart.

Not covered by this calculation:

  • X̄-s, X-Rs, np, c and u charts; subgroup sizes of 26 or more
  • Calculating X̿, R̄ and p̄ from data, and judging abnormalities from the pattern of the points (runs and trends)

Next calculations

Request a calculation (contact page of the official site)

Design calculation sheet

Company name and other fields are stored on this device only.