🔬
🔬 Science & engineering

p-Chart Control Limits Calculator

Results update as you type.

Your numbers

Understanding the p-chart control limits calculator — concept and principle

A p-chart monitors the fraction of defective items in successive samples, for example the share of rejected invoices each day or of failed boards in each lot. It is the Shewhart control chart for attribute (pass/fail) data. This calculator gives the upper and lower 3-sigma control limits from the long-run average fraction defective and the sample size.

p chart limits for samples of 200With 4% average defective and samples of 200, about 8 per sample are expected; limits are 0 and 8.16% (about 16 per sample).p chart: defectives per sample of 200average 4% → 8 of 200σ = √(0.04 × 0.96 ÷ 200)= 0.013863σ = 0.0416LCL 08 (4%)UCL 16.3UCL 0.0816 · LCL −0.0016 → clipped to 0
Expect about 8 defectives in 200; up to 16 is still ordinary variation.

How it is calculated

p̄ is entered as a fraction (0.04 = 4%) and n is the number of items in each sample.

The principle

If each item independently has the same probability p of being defective, the count in a sample of n follows a binomial distribution. The sample fraction then has mean p and standard deviation √(p(1 − p)/n). Setting limits three of those standard deviations either side of p̄ follows Shewhart's rule: when the process is stable, points fall outside only rarely, so a point beyond the limits suggests something has changed. Larger samples shrink the standard deviation and tighten the limits.

Worked example

  1. Inputs: p̄ = 0.04, n = 200.
  2. Standard deviation: √(0.04 × 0.96 / 200) = √0.000192 = 0.013856.
  3. Three standard deviations: 3 × 0.013856 = 0.041569.
  4. UCL = 0.04 + 0.041569 = 0.08157 (about 8.16%).
  5. LCL = 0.04 − 0.041569 = −0.00157, which is negative, so LCL = 0.
How UCL changes with Average fraction defective p̄How UCL changes with Average fraction de…0.0250.050.0750.10.1250.150.010.020.030.040.050.060.08Example: 0.0815692194Average fraction defective p̄
Each point is the calculator re-run with only “Average fraction defective p̄” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Average fraction defective p̄UCL
0.010.0311068709
0.020.0496984848
0.030.0661870143
0.040.0815692194
0.050.096233105
0.060.1103785669
0.080.1375499783

How to read the result

Plot each sample's fraction defective. A point above the UCL indicates a likely special cause making things worse; with a positive LCL, a point below it can mean a real improvement or an inspection problem. With an LCL of 0, as here, the chart cannot signal improvement from single points, so look for long runs below the centre line. If sample sizes vary, each sample needs its own limits, or the data should be standardised.

Common mistakes

Keep in mind: Limits assume independent items with a constant defect probability. Clustered defects (for example, a whole batch affected at once) make the true variation larger than the binomial model and trigger frequent false alarms.

Frequently asked questions

What is the difference between a p-chart and an np-chart?

A p-chart plots the fraction defective; an np-chart plots the number defective and is easier to read when every sample has the same size.

Why is the LCL zero?

Because p̄ − 3σ is negative and a fraction cannot be below zero.

How large should samples be?

Large enough that you expect several defectives per sample; a positive LCL needs n > 9(1 − p̄)/p̄, which is n > 216 at p̄ = 0.04.

Sources: ISO 7870-2, Control charts — Part 2: Shewhart control charts · D. C. Montgomery, Introduction to Statistical Quality Control, Wiley

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →