CalcWorldHub
Quality control · CalcWorldHub

P Chart Limits: Tracking the Fraction of Defective Items

A P chart expresses the defective share of a sample, rather than the number of defective items. That proportion is often easier to compare across processes that inspect differently sized lots, but the specific calculator here uses an aggregate baseline with equal subgroup sizes. It returns one pooled center and one set of three-sigma limits.

Open calculator
An original quality-control illustration for p chart limits: tracking the fraction of defective items.

Share this article

P chart formula for a pooled fraction and the standard error of a fixed-size sample.
The P chart expresses a defective count as a proportion of inspected items.

What the P chart measures

For a clearly defined characteristic, each inspected item is classified as conforming or defective. The chart's plotted statistic is the defective count divided by the number inspected in that subgroup. The denominator matters: ten defectives in 100 items is a different observed fraction from ten in 1,000.

A P chart is not a defect-per-unit chart. If one item can contribute multiple nonconformities and you want those events, use a count-based C or U chart. If the fixed subgroup size matters most and you want counts, an NP chart keeps the same underlying classification in item units.

Fields and denominator

Enter the total defective item count, the number of subgroups, and the common number inspected in each subgroup. The calculator expects whole counts, positive subgroup count and size, and no more defectives than total items inspected. The fraction is pooled across the entire baseline.

Because only totals are entered, the calculator does not calculate a separate denominator for each subgroup or preserve time order. It therefore produces one pooled fraction and one fixed set of limits for an equal-size baseline. If your samples differ in size, use a variable-size P-chart method that calculates a distinct limit for each denominator.

Formula and unit conversion

The pooled center is p-bar = total defective items divided by total items inspected. For a common subgroup size m, the standard error for a sample proportion is the square root of p-bar times one minus p-bar, divided by m. The three-sigma limits are centered at p-bar.

The tool converts the center and limits to percentages and rounds them to two decimal places. It constrains the lower limit to zero and the upper limit to one, or 100 percent, because a fraction cannot leave that range. Intermediate calculations use the unrounded pooled fraction.

Work two baselines

For the first example, divide 27 defectives by nine samples of 50, or 450 items. The pooled fraction is 0.06. The standard error is √(0.06 × 0.94 / 50) ≈ 0.0335857, so the three-standard-error width is about 0.100757. The lower limit is clipped to zero and the upper limit is about 0.160757 (16.08%).

For the second example, 21 defectives across seven samples of 60 also means 420 inspected items. Its pooled fraction is 0.05. The standard error is about 0.02814, yielding a three-sigma upper limit near 0.13441. The center is 5 percent and the displayed upper limit is 13.44 percent.

Worked examples

Nine samples of fifty items

Inputs: 27 defectives across 9 subgroups of 50 items each

Calculation: p-bar = 27 / 450 = 0.06; SE = √(0.06×0.94/50) = 0.03359; UCL = 0.06 + 3×0.03359 = 0.16077; LCL = 0

The pooled center is 6.00%. The lower limit is 0.00% after clipping, and the upper limit is about 16.08%.

Seven samples of sixty items

Inputs: 21 defectives across 7 subgroups of 60 items each

Calculation: p-bar = 21 / 420 = 0.05; SE = √(0.05×0.95/60) = 0.02814; UCL = 0.05 + 3×0.02814 = 0.13441; LCL = 0

The center is 5.00%, with a lower limit of 0.00% and an upper limit of 13.44%. Retain the 21 and 420 counts for traceability.

The same defective count produces different proportions under different sample denominators.
Keep the sample denominator attached to every plotted proportion.

Read percentage points, not counts

An observed sample proportion above the upper limit is a signal to investigate; it is not a direct probability that the lot is bad. The control limit changes with the subgroup size, so the comparison only makes sense when your chart's denominators follow the assumed design. Plot each sample in time order alongside the same center or the appropriate sample-specific limits.

Assumptions and validation checks

The binomial interpretation assumes one binary outcome per item, a consistent classification, and sufficiently comparable process conditions. Correlated observations or a changing mix of products can make the pooled fraction conceal important variation. Use the process definition that will also be used for future observations.

The page validates whole-number counts, positive subgroup count and size, and an aggregate defect count no larger than the inspected total. It does not take subgroup-level counts or sample-size variation. Its output is a two-decimal percentage summary, not a full chart, confidence interval, or test for process stability.

Build the chart around the data collection plan

Record how an item becomes defective, where the sample starts and stops, and who classifies it. Check the baseline for known process changes before estimating p-bar. If sample sizes are truly variable, retain the denominator for every sample and use limits that change with that denominator.

Keep the original counts with the percentages so reviewers can reconstruct the calculation. The P-chart calculator checks the fixed-size pooled limits; retain each sample denominator with its point.

Sources and further reading

Share this article

Browse all articles · Calculator: P-chart control limits calculator