p-Chart (Proportion Defective) Calculator

Calculate p-chart control limits for proportion defective data. Monitor attribute quality with this SPC tool for manufacturing inspection.

%
$
Center Line (p-bar)
0.0270
2.70% fraction defective
Upper Control Limit
0.0614
6.14% at 3-sigma
Lower Control Limit
0.0000
0.00% at 3-sigma
Standard Error
0.011461
Std dev of proportion
DPMO
27,000
Defects per million opportunities
Avg Defectives per Subgroup
5.4
Out of 200 inspected
Process Capability (Ppk)
N/A
Process exceeds target rate
Out of Control Points
0 / 20
Process is stable
Cost of Defectives
$2,025
135 defectives at $15 each

P-Chart Visualization

Subgroup 1UCL: 6.14%CL: 2.70%LCL: 0.00%Subgroup 20

Control Chart Zones

ZoneLower BoundUpper BoundExpected %Range Width
Above UCL (Out of Control)6.138%--0.135%--
Zone A (2-3 sigma)4.992%6.138%2.14%1.146%
Zone B (1-2 sigma)3.846%4.992%13.59%1.146%
Zone C (0-1 sigma)2.700%3.846%34.13%1.146%
Zone C (0-1 sigma, lower)1.554%2.700%34.13%1.146%

Subgroup Data

#InspectedDefectsProportion (p)StatusVisual
120021.00%In Control
220063.00%In Control
320010.50%In Control
420052.50%In Control
520084.00%In Control
620031.50%In Control
720073.50%In Control
820010.50%In Control
920052.50%In Control
1020094.50%In Control
1120042.00%In Control
1220073.50%In Control
1320021.00%In Control
1420063.00%In Control
1520094.50%In Control
1620042.00%In Control
1720084.00%In Control
1820021.00%In Control
1920063.00%In Control
2020010.50%In Control
Planning notes, formulas, and examples

About the p-Chart (Proportion Defective) Calculator

The p-chart is an attribute control chart used to monitor the proportion (fraction) of defective items in a sample. Unlike X-bar and R charts, which require continuous measurement data, the p-chart works with pass/fail or go/no-go data — making it applicable to virtually any inspection process.

The p-chart plots the fraction defective (p) for each sample against control limits derived from the overall average fraction defective (p-bar). When sample sizes are constant, the control limits are straight lines; when sample sizes vary, the limits widen for smaller samples and narrow for larger ones.

This calculator computes p-bar and control limits for constant sample sizes. Enter the total defectives, total inspected, and sample size to get UCL, CL, and LCL for your p-chart.

Precise measurement of this value supports data-driven planning and helps manufacturing professionals make informed decisions about resource allocation and process optimization strategies. Quantifying this parameter enables systematic comparison across time periods, shifts, and production lines, revealing patterns that might otherwise go unnoticed in routine operations.

When This Page Helps

The p-chart is the most versatile attribute control chart because it accepts varying sample sizes and works with any binary quality characteristic. Use it when measurement data is unavailable or impractical.

How to Use the Inputs

  1. Inspect a fixed number of units in each sample period.
  2. Record the number of defective units found.
  3. Enter the total defective units across all samples.
  4. Enter the total number of units inspected.
  5. Enter the typical sample size (n) per period.
  6. Review p-bar and the control limits for your p-chart.
Formula used
p̄ = Total Defectives / Total Inspected UCL = p̄ + 3 × √(p̄(1 − p̄) / n) LCL = max(0, p̄ − 3 × √(p̄(1 − p̄) / n)) where n = sample size per period

Example Calculation

Result: p̄ = 0.027, UCL = 0.061, LCL = 0

p̄ = 135 / 5,000 = 0.027 (2.7%). UCL = 0.027 + 3 × √(0.027 × 0.973 / 200) = 0.027 + 0.034 = 0.061. LCL = 0.027 − 0.034 = −0.007, set to 0. Any sample with more than 6.1% defective is out of control.

Tips & Best Practices

  • Use sample sizes of at least 50 to ensure the normal approximation is reasonable.
  • For varying sample sizes, recalculate control limits for each sample or use an average n.
  • If LCL is negative, set it to zero — a negative proportion is impossible.
  • Track p-chart data by defect type separately for diagnostic purposes.
  • The p-chart can also be used with 100% inspection by defining the "sample" as all units in a period.
  • When p-bar is very small (< 0.01), consider switching to a c-chart or u-chart for better sensitivity.

Attribute Charts in Manufacturing

Not every quality characteristic can be measured on a continuous scale. Visual defects, electrical pass/fail tests, and dimensional go/no-go checks produce attribute data. The p-chart is the primary SPC tool for monitoring these characteristics.

Improving Sensitivity

If the p-chart fails to detect known process changes, increase the sample size. Doubling n reduces the control limit width by approximately 30%, making the chart more sensitive to shifts.

Practical Implementation

Post p-charts at inspection stations and update them each shift or day. Use them in daily standup meetings to discuss quality trends. When a point exceeds UCL, trigger a standard investigation procedure to identify and correct the special cause.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use a p-chart when sample sizes vary between periods. Use an np-chart when sample sizes are constant — it plots the count of defectives rather than the proportion, which is easier for operators to understand.