MECHOWL QUALITY ANALYSIS AI
c chart and u chart maker: control limits for defects and defects per unit
Paste the number of defects of each subgroup (and the number of inspection units) to get the c chart (number of defects) or the u chart (defects per unit) with its control limits and out-of-control signals.
Last updated
Your data is not sent. Everything is computed in your browser
Data
Column names in the first row. Tabs or commas, full-width digits, thousands separators and blanks are read.
Read 25 rows and 2 columns.
More settings (Subgroups for the limits, Chart title, Period, Stratum)
Empty: all subgroups.
Empty: the name of the type of chart.
e.g. 1–31 Oct 2026. Written on the chart and the report.
Empty: all rows. A value: only the rows with that value.
Judgement rules
By default, the page uses the eight tests shown as examples in JIS Z 9020-2 annex B (the Western Electric rules, with the point counts of Nelson (1984)). With “Set of tests” you can switch to the examples in figure 3 of the standard (four). Switch tests on or off, or change their numbers, to match your company's or industry's rules; changes are written in the report.
By default the eight tests of annex B. With the examples of figure 3, the switches and numbers below are not used: points are marked for ① a point beyond a control limit, ② 7 points in a row on one side and ③ 7 points in a row increasing or decreasing.
Source of the default: JIS Z 9020-2:2025
Result
UCL 10.28: No out-of-control signals
Result of the sample data
No out-of-control signals
Tests used: 1, 2, 3, 4, 5, 6, 7, 8 (from the eight tests shown as examples in JIS Z 9020-2 annex B (the Western Electric rules)). A signal is a prompt to check the state of the process, not a pass or fail decision.
- Upper control limit UCL
- 10.28
- Lower control limit LCL
- None
About the data
- Where the lower control limit would be 0 or below, no lower limit is drawn.
How to read it
What the chart shows
- No point meets any of the 8 tests used.
Common misreadings
- Control limits are not specification limits. A point can be inside the control limits and outside the specification, and the other way round.
Next steps
- If no point is marked, check the margin to the specification with the process capability indices.
Numbers
| Number of subgroups k | 25 |
|---|---|
| Average number of defects c̄ | 4.16 |
| Center line CL | 4.16 |
| Upper control limit UCL | 10.28 |
| Lower control limit LCL | None |
| Subgroups with out-of-control signals | 0 |
Calculation steps
- Average number of defects
c̄ = Σ defects / k= 4.16 - Control limits
UCL, LCL = c̄ ± 3√c̄ (no LCL at or below 0)4.16 ± 3 × 2.0396 - Tests
The tests are applied to the standardised points zᵢ = (xᵢ − center line) / σᵢσ (last subgroup) = 2.03961
Values, control limits and signals by subgroup
| Subgroup | Defects | Number of defects | UCL | LCL | Tests met |
|---|---|---|---|---|---|
| 1 | 5 | 5 | 10.279 | — | |
| 2 | 5 | 5 | 10.279 | — | |
| 3 | 3 | 3 | 10.279 | — | |
| 4 | 3 | 3 | 10.279 | — | |
| 5 | 5 | 5 | 10.279 | — | |
| 6 | 4 | 4 | 10.279 | — | |
| 7 | 4 | 4 | 10.279 | — | |
| 8 | 2 | 2 | 10.279 | — | |
| 9 | 5 | 5 | 10.279 | — | |
| 10 | 2 | 2 | 10.279 | — | |
| 11 | 6 | 6 | 10.279 | — | |
| 12 | 4 | 4 | 10.279 | — | |
| 13 | 4 | 4 | 10.279 | — | |
| 14 | 2 | 2 | 10.279 | — | |
| 15 | 4 | 4 | 10.279 | — | |
| 16 | 3 | 3 | 10.279 | — | |
| 17 | 2 | 2 | 10.279 | — | |
| 18 | 8 | 8 | 10.279 | — | |
| 19 | 2 | 2 | 10.279 | — | |
| 20 | 9 | 9 | 10.279 | — | |
| 21 | 3 | 3 | 10.279 | — | |
| 22 | 7 | 7 | 10.279 | — | |
| 23 | 2 | 2 | 10.279 | — | |
| 24 | 6 | 6 | 10.279 | — | |
| 25 | 4 | 4 | 10.279 | — |
Tests used (the eight tests shown as examples in JIS Z 9020-2 annex B (the Western Electric rules))
| Test | Description | Used |
|---|---|---|
| 1 | 1 point more than 3σ from the center line (beyond a control limit) | ○ |
| 2 | 9 points in a row on the same side of the center line | ○ |
| 3 | 6 points in a row steadily increasing or decreasing | ○ |
| 4 | 14 points in a row alternating up and down | ○ |
| 5 | 2 out of 3 points in a row more than 2σ from the center line, on the same side | ○ |
| 6 | 4 out of 5 points in a row more than 1σ from the center line, on the same side | ○ |
| 7 | 15 points in a row within 1σ of the center line | ○ |
| 8 | 8 points in a row more than 1σ from the center line, on either side | ○ |
The results are reference values based on the data you entered and the formulas and criteria shown. They are not a quality guarantee or a pass/fail decision. The final decision rests with you.
References
- ISO 7870-2:2023 Control charts — Part 2: Shewhart control charts · ISO
- D. C. Montgomery, Introduction to Statistical Quality Control, 8th ed., 2019 · Wiley
- The Shewhart Control Chart—Tests for Special Causes · Journal of Quality Technology 16(4), 237–239 (L. S. Nelson, 1984)
- NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.3 What are Attributes Control Charts? · NIST · Open
- NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.3.1 Counts Control Charts · NIST · Open
- JIS Z 9020-2:2025 Control charts — Part 2: Shewhart control charts (in Japanese) · Japanese Standards Association (JSA)
Standards are shown by number and title only.
c and u charts explained
A c chart plots the number of defects c in each inspection unit of the same size (one sheet, one machine, one m² and the like) in time order and compares it with the center line and the control limits, to show whether something unusual has changed in how defects occur. When the size of the unit differs between subgroups, the u chart is used instead: it plots the number of defects per unit u.
c and u charts by hand: step by step
- Count the defects in each unit of the same size for 20 to 25 subgroups or more (when the number of units differs, record it too).
- Compute c̄ = Σc / k for the c chart, or ū = Σc / Σn for the u chart.
- Compute the control limits: c̄ ± 3√c̄ for the c chart, ū ± 3√(ū/n) for the u chart. When the lower limit is 0 or below, no lower limit is drawn.
- Plot the points in time order, look for points that meet a test, and find what changed in the 4Ms at that time.
Worked examples
Example 1: c chart, 4 subgroups (3, 5, 4, 4)
Defects 3 5 4 4
Settings: Type of chart = c chart (number of defects)
c̄ = 16/4 = 4. UCL = 4 + 3 × √4 = 10; LCL = 4 − 6 < 0, so there is none.
Example 2: c chart with a positive LCL (c̄ = 20)
Defects 20 22 18 20
Settings: Type of chart = c chart (number of defects)
c̄ = 80/4 = 20, √20 = 4.47214. UCL = 20 + 13.4164 = 33.4164, LCL = 6.5836 (the lower limit is positive when c̄ > 9).
Example 3: u chart, 2 subgroups with different numbers of units
Units Defects 1 2 2 6
Settings: Type of chart = u chart (defects per unit)
ū = 8/3 = 2.6667. n = 1: UCL = 2.6667 + 3√2.6667 = 2.6667 + 4.8990 = 7.5656. n = 2: UCL = 2.6667 + 3√(2.6667/2) = 6.1308. Both lower limits are negative, so there are none.
Example 4: Only one subgroup (data that does not meet the conditions)
Defects 3
Settings: Type of chart = c chart (number of defects)
With one subgroup, the center line and the control limits cannot be set.
Common mistakes
- Using the c chart for units of different sizes (use the u chart).
- Using the number of defective items (an item counts as 1 however many defects it has) in a c chart (use the p or np chart).
FAQ
- What is the difference between a p chart and a c chart?
- The p chart looks at the number (proportion) of defective items; the c chart looks at the number of defects. When one product can have several defects, use the c or u chart.
- Is my data sent anywhere?
- No. The calculations and the chart are made in your browser only.
Scope
Control charts of the number of defects in each inspection unit (assuming the Poisson distribution). The control limits are 3σ.
Not covered by this tool:
- The number of defective items (use the p and np charts).
Excel template: c and u charts
A template with the column names and sample values only (no formulas). Enter your values, then copy the range and paste it into the box above.