Skip to content
QualityForEveryone

Control Chart Limits Calculator (X̄–R): Formula, Example & Instant Result

Control limits show how much an average and a range normally vary when only common causes are at work. Points outside them — or unusual patterns inside them — signal a special cause worth investigating. For an X̄–R chart the limits come from the grand average, the average range and constants that depend on the subgroup size.

↳ Values are pre-filled with an example — replace them with your own data.

Your data

Parts measured in each subgroup (2–10).

Separate values with spaces or new lines. Pre-filled with the worked example's 20 subgroups.

Result

Upper control limit X̄25.862

A subgroup average above this signals a special cause.

Lower control limit X̄24.938

A subgroup average below this signals a special cause.

Upper control limit R1.691

A subgroup range above this means within-subgroup variation jumped.

Lower control limit R0.000

A range below this is unusually small; for subgroups of 6 or fewer this limit is 0.

Constants for n = 5
A20.577
D30.000
D42.114

These are control limits, not specification limits. They describe what the process does, not what the customer allows — never compare single parts with them.

Detection rules
UCLX̿LCL
X̄ chart of 20 subgroup means with UCL 25.862 and LCL 24.938; dashed lines mark ±2σ, coloured points break the selected rules.
  • Rule 1: point beyond a limit — subgroups #12
  • Investigate each flagged subgroup and record the cause; do not delete points.

Formula

UCL X̄ = X̿ + A2 × R̄
LCL X̄ = X̿ − A2 × R̄
UCL R = D4 × R̄
LCL R = D3 × R̄
A2, D3 and D4 depend on the subgroup size n (table shown with the result)

Worked example

A turning cell checks five shafts every hour. After 20 subgroups, where should the X̄ and R chart limits be?

Data

  • • Subgroup size n = 5 → A2 = 0.577, D3 = 0, D4 = 2.114
  • • Grand average X̿ = 25.40 mm (average of the 20 subgroup means)
  • • Average range R̄ = 0.80 mm

Step by step

  1. 1UCL X̄ = 25.40 + 0.577 × 0.80 = 25.862 mm
  2. 2LCL X̄ = 25.40 − 0.577 × 0.80 = 24.938 mm
  3. 3UCL R = 2.114 × 0.80 = 1.691 mm
  4. 4LCL R = 0 × 0.80 = 0 mm
  5. 5Subgroup 12 averages 25.90 mm — above UCL X̄ (rule 1)

What it means

The averages should stay between 24.938 and 25.862 mm and the ranges below 1.691 mm. Subgroup 12 breaks rule 1: something changed at that hour (tool, material, setting). Investigate and record the cause — do not delete the point. If the cause is found and removed, recalculate the limits without that subgroup.

Tips & common mistakes

  • Read the R chart first: if the ranges are out of control, the X̄ limits (which use R̄) are not reliable.
  • Use at least 20–25 subgroups from a stable period to set limits.
  • Keep subgroups rational: parts made close together in time, under the same conditions.
  • Never draw specification limits on an X̄ chart; averages vary less than single parts.
  • AI assistants often mix up the A2, D3 and D4 constants or use the subgroup count instead of the subgroup size; check the constants table here.

AI prompt for this calculation

Paste it into your AI assistant to be walked through the calculation with your own data.

Act as an SPC specialist and help me calculate X̄–R control chart limits.

Use exactly these formulas:
UCL X̄ = X̿ + A2 × R̄; LCL X̄ = X̿ − A2 × R̄
UCL R = D4 × R̄; LCL R = D3 × R̄
Constants by subgroup size n: A2 2→1.880, 3→1.023, 4→0.729, 5→0.577, 6→0.483, 7→0.419, 8→0.373, 9→0.337, 10→0.308; D3 0 for n ≤ 6, 7→0.076, 8→0.136, 9→0.184, 10→0.223; D4 2→3.267, 3→2.574, 4→2.282, 5→2.114, 6→2.004, 7→1.924, 8→1.864, 9→1.816, 10→1.777.

Rules:
1. Work step by step and state which constants you used.
2. Restate my numbers first and check the decimal separators.
3. If the subgroup size, X̿ or R̄ is missing or unclear, ask me — never assume.
4. If I give subgroup data, check the R chart before the X̄ chart and list any points that break these rules: beyond a limit; nine in a row on one side; six in a row rising or falling; two of three beyond 2σ on the same side.
5. Remind me that control limits are not specification limits.

My data:
Subgroup size n = 
Grand average X̿ = 
Average range R̄ = 
Subgroup means and ranges (optional) = 

The buttons copy the prompt first, then open the assistant in a new tab.

Add this calculator to your site

Copy the code below into your page. The calculator stays free; keep the attribution link with it.

<iframe src="https://www.qualityforeveryone.com/embed/calculators/en/control-chart-limits-calculator" title="Control Chart Limits (X̄–R) — Quality for Everyone" width="100%" height="1100" style="border:0;max-width:100%" loading="lazy"></iframe>
<p><a href="https://www.qualityforeveryone.com/en/lab/calculators/control-chart-limits-calculator">Control Chart Limits (X̄–R) calculator by Quality for Everyone</a></p>

Next step · DOCAMIN

Update your control plan with these limits in DOCAMIN.

Open DOCAMIN →

Learn the method · Academy

Learn statistical process control step by step in our free courses.

Browse free courses →

Frequently asked questions

What is the difference between control limits and specification limits?

Specification limits come from the customer or design and say what a single part may be. Control limits come from the process data and say how much the process normally varies. A process can be in control and still make out-of-spec parts, or out of control while every part is in spec. They answer different questions, so keep them on different charts.

When should I recalculate control limits?

After a deliberate, verified process change (new tool, material or method), or when special causes have been found and removed from the base data. Do not recalculate just because points fall outside — that hides the signal the chart is there to give.

Why read the R chart first?

The X̄ limits are built from R̄. If the within-subgroup variation is unstable, R̄ is not a reliable estimate and the X̄ limits are meaningless until the range is under control.

What should I do when a point breaks a rule?

Investigate, don't erase. Note the time, look for what changed (operator, tool, batch, setting), fix the cause and document the action. The point stays on the chart as evidence.

Which chart pairs with X̄–R, and when to use another?

X̄–R suits subgroups of 2 to about 10. For larger subgroups use X̄–S; for single measurements use an individuals and moving range (I-MR) chart; for counts of defects or defectives use attribute charts.

Last tested: October 2026 · Tested with: automated math tests (3+ cases) · Reviewed by: Quality for Everyone editorial team