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.

What each column means

Guessed from the column names. Choose again if a guess is wrong.

One column: split by the subgroup column (or cut in order by the subgroup size). Several columns: each row is one subgroup.

The same number or name on the rows of one subgroup.

Date, time and the like.

Line, part, machine, period … Select it to look at one value at a time.

Settings

Cuts one column of data into subgroups of n values from the top.

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

X̄-s chartSubgroup size n = 10 Subgroups k = 20 Unit: g Period: November 2026 Tests that marked points: Test 5 (2 of 3 beyond 2σ) Test 6 (4 of 5 beyond 1σ)X-s chartSubgroup size n = 10 Subgroups k = 20 Unit: g Period: November 2026 Tests that marked points: Test 5 (2 of 3 beyond 2σ)Test 6 (4 of 5 beyond 1σ)Subgroup valueCenter lineControl limitsPoint meeting another test24.950024.975025.000025.025025.050025.0750Mean X (g)UCL 25.06233CL 25.01215LCL 24.961960.000000.050000.10000Standard deviation s (g)UCL 0.08833CL 0.05148LCL 0.01462Test6561234567891011121314151617181920Subgroup

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 n10
Number of subgroups k20
Grand mean X̿25.01215 g
Average standard deviation s̄0.051477 g
Upper control limit of the X̄ chart UCL25.06233 g
Lower control limit of the X̄ chart LCL24.96196 g
Upper control limit of the s chart UCL0.088334 g
Lower control limit of the s chart LCL0.014619 g
Estimated within-subgroup standard deviation σ̂0.052921 g
Subgroups with out-of-control signals3

Calculation steps
  1. Grand meanX̿ = Σ X̄ᵢ / kk = 20 → X̿ = 25.01215
  2. Average standard deviations̄ = Σ sᵢ / k (sᵢ: the standard deviation of each subgroup, divided by n − 1)s̄ = 0.051477
  3. ConstantsConstants 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)
  4. X̄ chartUCL, LCL = X̿ ± A₃s̄25.01215 ± 0.975 × 0.051477 = 25.06233, 24.96196
  5. s chartUCL = B₄s̄, LCL = B₃s̄1.716 × 0.051477 = 0.088334, 0.284 × 0.051477 = 0.014619
  6. Estimate of σσ̂ = s̄ / c₄0.051477 / 0.9727 = 0.052921
Mean, standard deviation and signals by subgroup
SubgroupMean X̄Std. dev. sTests met
124.97690.05584
224.98190.0443
325.00390.07894
424.98860.05247
▲ 524.9940.05434X̄: 6
625.01310.04956
725.02440.07303
825.00430.04265
925.01040.05609
1024.98520.05713
1125.02430.05009
1225.00740.02557
1324.9940.05566
1425.02330.05338
1525.02850.04252
1625.02960.05172
1725.01190.03884
1825.05760.05773
▲ 1925.0470.04638X̄: 5
▲ 2025.03660.04331X̄: 6
Tests used (the eight tests shown as examples in JIS Z 9020-2 annex B (the Western Electric rules))
TestDescriptionUsed
11 point more than 3σ from the center line (beyond a control limit)○
29 points in a row on the same side of the center line○
36 points in a row steadily increasing or decreasing○
414 points in a row alternating up and down○
52 out of 3 points in a row more than 2σ from the center line, on the same side○
64 out of 5 points in a row more than 1σ from the center line, on the same side○
715 points in a row within 1σ of the center line○
88 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.

Next tool: Check the margin to the specification with process capability

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

  1. 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.
  2. Compute the mean X̄ and the standard deviation s (divided by n − 1) of each subgroup.
  3. 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.
  4. Plot the points in time order and draw the center lines and the control limits.
  5. 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Download the template (xbar-s-template.xlsx)

Related tools

Request a tool (contact page of the official site)

Report

The company name and the other fields are kept on this device only.

Contact

We take enquiries on the contact page of the MechOwl official site. Requests for tools you would like are welcome there too.

To the contact page(opens in a new tab)