To work out how to calculate control limits, find the center line (the average of your process data), estimate sigma from within-subgroup variation, then set UCL = center line + 3σ and LCL = center line − 3σ. For individual readings, that becomes the mean ± 2.66 × the average moving range. For subgrouped data, it becomes the grand mean ± A2 × the average range. Attribute charts use square-root formulas of their own.
The trouble is that no single formula covers every chart. Pick the wrong one and your limits come out too tight, so you chase noise, or too wide, so real shifts slip through. Many people also plug the plain standard deviation of all their data into the formula, or confuse control limits with specification limits. Both mistakes are common, and both are easy to avoid once you see the logic.
This guide covers four steps: choose the chart, calculate the limits by hand, build the same calculation in Excel, and check the result. Each step includes worked numbers.
What control limits are and which formula to use
What UCL and LCL tell you
Control limits show the range of variation that a stable process produces on its own. They come from your process data, not from customer requirements. That separates them from specification limits, which state what the customer will accept. A process can sit inside its control limits and still miss spec, or sit outside them and still meet spec. With three-sigma limits, a stable, roughly normal process puts about 99.73% of points between the UCL and LCL, so a point outside is worth investigating.
The multiplier is 3 on nearly all industrial charts. Laboratory QC charts such as Levey-Jennings often add 2s lines as warning limits, but the 3s lines remain the action limits.
Control limits describe what your process does; specification limits describe what the customer wants.
Which formula fits which chart
Your data type decides the formula. Use this table to find yours, then follow the matching worked example in Step 2.
| Data | Chart | Center line | UCL and LCL |
|---|---|---|---|
| Individual measurements | I-MR | X-bar | X-bar ± 2.66 × MR-bar |
| Measurements in subgroups of 2 to 9 | X-bar and R | X-double-bar | X-double-bar ± A2 × R-bar |
| Defective units, varying sample size | p | p-bar | p-bar ± 3√(p-bar(1 − p-bar)/n) |
| Defective units, constant sample size | np | np-bar | np-bar ± 3√(np-bar(1 − p-bar)) |
| Defects per constant area | c | c-bar | c-bar ± 3√c-bar |
| Defects per unit, varying area | u | u-bar | u-bar ± 3√(u-bar/n) |
If a calculated LCL comes out negative, set it to zero, because a count or proportion cannot go below zero.
Step 1. Pick your chart and collect data
Choose the chart type
Two questions settle it. First, are you measuring (length, time, weight) or counting (defective parts, defects)? Second, how many readings go into each sample? One reading per time point calls for an I-MR chart. Two to nine readings per sample call for X-bar and R. Counting defective units calls for p or np, and counting defects within a unit calls for c or u.
Collect enough data
Gather 20 to 25 subgroups in time order, taken while the process runs normally. For example, pull five consecutive parts every hour for 25 hours. Limits built on fewer than 20 points are trial limits, so treat them as provisional and revisit them as data accumulates.
Twenty to twenty-five time-ordered subgroups give you limits you can trust; fewer give you a draft.
Step 2. Calculate the limits by hand
Individuals chart (I-MR)
Use this when you have one reading per time point.

- Average all values to get the center line, X-bar.
- Calculate each moving range, the absolute difference between consecutive readings, and average them to get MR-bar.
- Compute UCL = X-bar + 2.66 × MR-bar and LCL = X-bar − 2.66 × MR-bar.
Suppose X-bar = 50.2 and MR-bar = 1.5. Then 2.66 × 1.5 = 3.99, so UCL = 54.19 and LCL = 46.21. The 2.66 equals 3 ÷ 1.128, where 1.128 converts MR-bar into a sigma estimate (here, about 1.33).
Estimate sigma from the moving range or subgroup range, because a plain standard deviation of all points folds in the very drift the chart should catch.
X-bar and R chart
Calculate each subgroup’s mean and range, then average them to get X-double-bar and R-bar. Look up your constants by subgroup size n.
| n | A2 | D3 | D4 |
|---|---|---|---|
| 2 | 0.577 | 0 | 3.267 |
| 3 | 1.023 | 0 | 2.574 |
| 4 | 0.729 | 0 | 2.282 |
| 5 | 0.577 | 0 | 2.114 |
| 6 | 0.483 | 0 | 2.004 |
| 7 | 0.419 | 0.076 | 1.924 |
With n = 5, X-double-bar = 10.00 mm and R-bar = 0.30, the X-bar limits are 10.00 ± 0.577 × 0.30, so UCL = 10.173 and LCL = 9.827. The R chart uses UCL = D4 × R-bar = 2.114 × 0.30 = 0.634 and LCL = D3 × R-bar = 0.
Attribute data with a p chart
Say you inspect 200 units a day for 25 days and the average defective fraction, p-bar, is 0.04. The standard error is √(0.04 × 0.96 / 200) = 0.0139, and three times that is 0.0416. So UCL = 0.0816 (8.2%). The raw LCL is −0.0016, so you set LCL = 0. If your sample size changes daily, recalculate the limits for each day’s n.
Step 3. Calculate control limits in Excel
Set up the sheet for an I-MR chart
Put 25 individual readings in B2:B26. In column C, start the moving ranges in C3 with =ABS(B3-B2) and fill down to C26. Then add these cells.
| Cell | Purpose | Formula |
|---|---|---|
| E2 | Center line | =AVERAGE(B2:B26) |
| E3 | MR-bar | =AVERAGE(C3:C26) |
| E4 | UCL | =E2+2.66*E3 |
| E5 | LCL | =E2-2.66*E3 |
For an X-bar chart, put each subgroup in one row, such as B2:F2 for n = 5. Calculate the row mean with =AVERAGE(B2:F2) and the row range with =MAX(B2:F2)-MIN(B2:F2). Then swap 2.66 and MR-bar for the A2 constant and R-bar. You can run =STDEV.S() on the raw data as a rough sanity check, but do not use it as your chart sigma.
In Excel, the formulas are the same as on paper; the only real decision is which sigma estimate you feed them.
Build a p chart and plot the lines
For a p chart, put defectives in column B and sample size in column C. Place p-bar in E2 with =SUM(B2:B26)/SUM(C2:C26). Then enter the limits in D2 and F2 and fill them down.
=$E$2+3*SQRT($E$2*(1-$E$2)/C2)
=MAX(0,$E$2-3*SQRT($E$2*(1-$E$2)/C2))
To plot any chart:
- Add three columns that repeat the center line, UCL and LCL values on every row.
- Select your data column and those three columns.
- Choose Insert, then Line with Markers.
- Format the limit lines as dashed so the data stands out.
Step 4. Check the limits and keep them honest
Read the chart and remove special causes
Look for a point beyond the UCL or LCL, and for a run of eight or nine consecutive points on one side of the center line. Both signal a special cause. If you can name the cause, such as a tool failure or a bad material lot, remove those points and recalculate. If you cannot name a cause, keep the points, because deleting data to tighten the limits only hides real variation.

Remove a point from the calculation only when you can name what caused it.
Know when to recalculate
Once the chart is stable, freeze the limits and keep plotting new data against them. Recalculate only after a deliberate process change, such as a new supplier, a new setup or a completed improvement project. Updating the limits every time new data arrives lets them follow drift, which defeats the chart.
Control charts anchor the Control phase of DMAIC. Our Green Belt Online Training Course runs about 28 hours at $1,195 and covers statistical techniques across each DMAIC stage, with an emphasis on measuring.

Put your control limits to work
Calculating control limits comes down to matching the formula to your data. Use 2.66 × MR-bar for individual readings, A2 × R-bar for subgroups, and the square-root formulas for counts. Collect 20 to 25 subgroups, estimate sigma from within-subgroup variation, and build the same logic in Excel. Then clean out special causes, freeze the limits, and recalculate only when the process truly changes.
If you want help setting up charts across several lines or sites, or training your team to read them, contact Lean Six Sigma Experts for a conversation about your process.
