X-bar and S Control Chart Limits Calculator
When subgroups are larger than about 8, or when you have the standard deviation recorded anyway, the X-bar and S chart is the better choice over X-bar and R. This calculator turns your grand mean and average S into both sets of limits, and shows the c4, B3 and B4 constants it used.
Your numbers
Average of the subgroup means.
Average of the subgroup sample standard deviations.
Your results
Uses exact c4 values for n = 2 to 10. Confirm against your control chart software and your customer's SPC manual.
X-bar limits vs subgroup size
Sweeps Subgroup size from 2 to 10, holding your other inputs fixed.
SPC from your ERP data
Optional: we can discuss pulling measurement data into a private SPC dashboard.
Optional. The tool and every export work without this. No spam.
How to use it
Take at least 20 to 25 subgroups from a stable period. Calculate each subgroup mean and sample standard deviation, then average the means to get X-double-bar and average the standard deviations to get S-bar. Enter both with the subgroup size. The calculator returns the X-bar chart and S chart limits and the estimated process sigma. Plot your subgroup means and standard deviations against these limits.
- Use sample standard deviation with n-1, not population
- Keep subgroup size constant
- Recalculate limits only after a verified process change
Formulas and constants
X-bar limits are X-double-bar plus or minus A3 times S-bar, where A3 = 3 / (c4 times the square root of n). S chart limits are B3 times S-bar and B4 times S-bar, with B4 = 1 + 3 sqrt(1 - c4^2) / c4 and B3 = the larger of 0 and 1 - 3 sqrt(1 - c4^2) / c4. For subgroups of 5 you should see A3 of about 1.427 and B4 of about 2.089, which matches published tables. B3 is zero for subgroups of 5 or fewer.
Worked example
With the defaults, subgroup size 8 gives c4 of 0.9650, so estimated sigma is 0.42 / 0.965, about 0.435. The X-bar limits are 50.02 plus or minus 3 x 0.435 / sqrt(8), roughly 49.56 and 50.48. The S chart upper limit is about 0.42 x 1.815, near 0.76. A subgroup standard deviation above that, or a run of 8 points on one side of the centre line, is a signal to investigate.
Common mistakes
Putting specification limits on a control chart is the classic error; control limits come from the process, not the drawing. Others mix subgroups from different machines, which inflates S-bar and widens the limits so nothing ever signals. Using R-bar constants with S-bar values gives wrong limits. If you do not have S recorded, the X-bar and R chart is simpler for subgroups below 6.
Frequently Asked Questions
When should I use X-bar and S instead of X-bar and R?
Use S when subgroups are larger than about 8 to 10, because the range uses only two of the readings and loses efficiency. For small subgroups the range chart is almost as good and easier to compute by hand.
Why is B3 zero for small subgroups?
The calculated lower limit goes negative for subgroups of 5 or fewer, and a standard deviation cannot be negative, so the lower limit is set to zero.
Can I use this with varying subgroup sizes?
Not directly. Variable subgroup sizes need limits recalculated for each subgroup, or a standardised chart. This tool assumes a constant n.
What should I do when a point is outside the limits?
Treat it as a signal of special cause. Check the measurement, the setup and recent changes, record the cause, and exclude the point from limit calculation only if you have found and corrected the cause.
If your measurement data sits in an ERP quality module or a database, we can build a private SPC view that applies these limits automatically.
Related Tools
Individuals and Moving Range (I-MR) Chart Limits Calculator
Calculate X chart and moving range limits when you can only measure one value at a time, with the 2.66 and 3.267 constants applied.
Quality & InspectionCpk Confidence Interval and Sample Size Calculator
Shows the true uncertainty around a Cpk estimate for a given sample size, so a Cpk of 1.40 from 30 parts is not mistaken for proof.
Quality & InspectionExpected PPM Out of Specification Calculator
Predict parts per million outside tolerance from a normal process mean, standard deviation and spec limits, and see what an off-centre mean costs.
Field Service & QualitySPC Implementation Readiness Assessment
Answer ten questions about your data, measurement systems, training, and culture to find out whether an SPC rollout will stick or stall.
More Quality & Inspection tools
See all- A3 Problem Solving Report Template
- Rolled Throughput Yield Calculator
- A3 Problem Solving Template
- Rolled Throughput Yield Calculator
- Taguchi Loss Function Calculator
- Western Electric and Nelson Rules Reference
- Gage R&R Average and Range Method Calculator
- Gage Bias and Linearity Study Worksheet
- Gage Stability Study Control Chart Worksheet