MECHOWL QUALITY ANALYSIS AI
X-bar S chart maker: control limits for larger subgroups, A3 B3 B4 constants
Paste subgroup data to get the X-bar S chart with its center lines and control limits, and the out-of-control signals of the tests in JIS Z 9020-2. Use it for larger subgroups (about 10 or more).
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 20 rows and 11 columns.
More settings (Subgroups for the limits, Unit, Chart title, Period and more)
Empty: all subgroups.
e.g. g.
Empty: “X̄-s 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 25.06233 g: Out-of-control signals (3 subgroups)
Result of the sample data
Out-of-control signals (3 subgroups)
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 of the X̄ chart UCL
- 25.06233 g
- Lower control limit of the X̄ chart LCL
- 24.96196 g
How to read it
What the chart shows
- Out-of-control signals at subgroups 5, 19, 20. The tests that marked them: Test 5 (2 of 3 beyond 2σ); Test 6 (4 of 5 beyond 1σ).
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.
- Control limits computed with the signalling points included are wider. Remove the subgroups whose cause you have found and compute the limits again (“Subgroups for the limits”).
Next steps
- Check the records for a change in the 4Ms (man, machine, material, method) at the dates and times of the marked subgroups.
Numbers
| Subgroup size n | 10 |
|---|---|
| Number of subgroups k | 20 |
| Grand mean X̿ | 25.01215 g |
| Average standard deviation s̄ | 0.051477 g |
| Upper control limit of the X̄ chart UCL | 25.06233 g |
| Lower control limit of the X̄ chart LCL | 24.96196 g |
| Upper control limit of the s chart UCL | 0.088334 g |
| Lower control limit of the s chart LCL | 0.014619 g |
| Estimated within-subgroup standard deviation σ̂ | 0.052921 g |
| Subgroups with out-of-control signals | 3 |
Calculation steps
- Grand mean
X̿ = Σ X̄ᵢ / kk = 20 → X̿ = 25.01215 - Average standard deviation
s̄ = Σ sᵢ / k (sᵢ: the standard deviation of each subgroup, divided by n − 1)s̄ = 0.051477 - Constants
Constants for subgroup size n = 10 (digits of the JIS table)A₃ = 0.975, B₃ = 0.284, B₄ = 1.716, c₄ = 0.9727 (constants version constants-2026-11-17e) - X̄ chart
UCL, LCL = X̿ ± A₃s̄25.01215 ± 0.975 × 0.051477 = 25.06233, 24.96196 - s chart
UCL = B₄s̄, LCL = B₃s̄1.716 × 0.051477 = 0.088334, 0.284 × 0.051477 = 0.014619 - Estimate of σ
σ̂ = s̄ / c₄0.051477 / 0.9727 = 0.052921
Mean, standard deviation and signals by subgroup
| Subgroup | Mean X̄ | Std. dev. s | Tests met |
|---|---|---|---|
| 1 | 24.9769 | 0.05584 | |
| 2 | 24.9819 | 0.0443 | |
| 3 | 25.0039 | 0.07894 | |
| 4 | 24.9886 | 0.05247 | |
| ▲ 5 | 24.994 | 0.05434 | X̄: 6 |
| 6 | 25.0131 | 0.04956 | |
| 7 | 25.0244 | 0.07303 | |
| 8 | 25.0043 | 0.04265 | |
| 9 | 25.0104 | 0.05609 | |
| 10 | 24.9852 | 0.05713 | |
| 11 | 25.0243 | 0.05009 | |
| 12 | 25.0074 | 0.02557 | |
| 13 | 24.994 | 0.05566 | |
| 14 | 25.0233 | 0.05338 | |
| 15 | 25.0285 | 0.04252 | |
| 16 | 25.0296 | 0.05172 | |
| 17 | 25.0119 | 0.03884 | |
| 18 | 25.0576 | 0.05773 | |
| ▲ 19 | 25.047 | 0.04638 | X̄: 5 |
| ▲ 20 | 25.0366 | 0.04331 | X̄: 6 |
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.2 What are Variables Control Charts? · NIST · Open
- NIST/SEMATECH e-Handbook of Statistical Methods, 6.3.2.1 Shewhart X-bar and R and S 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.
X-bar S chart explained
An X-bar S chart (X̄-s chart) plots the mean X̄ and the standard deviation s of each subgroup in time order, and compares them with the center line and the control limits to show whether something unusual has changed in the process. For larger subgroups (about 10 or more), the standard deviation s describes the variation within a subgroup better than the range R, so this chart is used instead of the X-bar R chart.
X-bar S chart by hand: step by step
- Take a few values in a row under the same conditions as one subgroup (subgroup size n), and collect 20 to 25 subgroups or more.
- Compute the mean X̄ and the standard deviation s (divided by n − 1) of each subgroup.
- Compute the grand mean X̿ and the average standard deviation s̄, and the control limits with the constants A₃, B₃ and B₄: X̿ ± A₃s̄ for X̄, B₄s̄ and B₃s̄ for s.
- Plot the points in time order and draw the center lines and the control limits.
- Look for points beyond the control limits and for points that meet a pattern test, and find what changed in the 4Ms at that time.
Worked examples
Example 1: Subgroup size 4, 3 subgroups (no LCL for s)
x1 x2 x3 x4 1 2 3 4 2 3 4 5 3 4 5 6
Subgroup means 2.5, 3.5, 4.5 → X̿ = 3.5. Each subgroup is 4 consecutive whole numbers, so s = √(5/3) = 1.29099. Constants for n = 4 (table values): A₃ = 1.628, B₃ = 0 (none), B₄ = 2.266, c₄ = 0.9213. UCL = 3.5 + 1.628 × 1.29099 = 5.6017, LCL = 1.3983; s chart UCL = 2.266 × 1.29099 = 2.9254. σ̂ = 1.29099 / 0.9213 = 1.40127.
Example 2: Subgroup size 6 (the smallest with an LCL for s)
Subgroup Value 1 1 1 2 1 3 1 4 1 5 1 6 2 2 2 3 2 4 2 5 2 6 2 7
Means 3.5 and 4.5 → X̿ = 4. s = √(17.5/5) = 1.87083. Constants for n = 6: A₃ = 1.287, B₃ = 0.030, B₄ = 1.970. UCL = 4 + 1.287 × 1.87083 = 6.4078. s chart LCL = 0.030 × 1.87083 = 0.0561 (up to n = 5, B₃ = 0 and there is no lower limit), UCL = 3.6855.
Example 3: Subgroup size 26 (outside this page)
Subgroup Value 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27
A subgroup size of 26 is outside 2 to 25, where the constants are given. The page says it cannot compute the chart, and why.
Example 4: Limits from 1 subgroup (input error)
x1 x2 1 2 2 3
Settings: Subgroups for the limits (from the start) = 1
One subgroup cannot give an average standard deviation. The page shows an input error in the setting.
Common mistakes
- Using the standard deviation for small subgroups (for 4 or 5 values, the X-bar R chart is enough).
- Computing the standard deviation divided by n (the control chart constants are for the standard deviation divided by n − 1).
FAQ
- Should I use the X-bar R chart or the X-bar S chart?
- The X-bar R chart is used for subgroups smaller than 10, the X-bar S chart for larger ones. This page takes subgroup sizes of 2 to 25.
- Is my data sent anywhere?
- No. The calculations and the chart are made in your browser only.
Scope
An X-bar S chart of equal subgroups of 2 to 25 values: means and standard deviations. The control limits are 3σ (constants A₃, B₃, B₄).
Not covered by this tool:
- Subgroups of different sizes.
- Control charts for attributes (p, np, c and u charts).
Excel template: X-bar S chart
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.