P Chart Calculator

Monitor defect proportions across samples with fast, consistent analysis today. Get limits, alerts, and summaries. Export results, share reports, and tighten process control now.

Input Samples

Enter inspected items (n) and defectives (d) for each sample. Variable sample sizes are supported.

Sample
p = d/n
Sample
p = d/n
Sample
p = d/n
Sample
p = d/n
Sample
p = d/n
Sample
p = d/n
Sample
p = d/n
Sample
p = d/n

Quick paste (CSV)

Paste rows as: label,n,d (header optional). Then click “Import”.
Import replaces the current rows.

Example Data Table

Use this sample dataset to see a full p chart calculation.
Sample n d p = d/n
S1 100 6 0.0600
S2 120 9 0.0750
S3 80 3 0.0375
S4 150 15 0.1000
S5 90 2 0.0222
S6 110 8 0.0727
S7 95 5 0.0526
S8 130 7 0.0538
Click “Load example” above to auto-fill these values.

Formula Used

A p chart monitors the proportion defective in each sample.

  • pᵢ = dᵢ / nᵢ
  • p̄ = (Σ dᵢ) / (Σ nᵢ) (center line)
  • σᵢ = √( p̄(1−p̄) / nᵢ )
  • UCLᵢ = p̄ + 3σᵢ, LCLᵢ = p̄ − 3σᵢ
  • Limits are clamped to [0, 1] to stay within valid proportions.

How to Use This Calculator

  1. Enter each sample’s label, inspected count n, and defectives d.
  2. Click Submit to compute and per-sample limits.
  3. Review the chart and the table for Out of control signals.
  4. Use Download CSV or Download PDF for sharing and audits.
  5. If you collect data in spreadsheets, paste it in “Quick paste (CSV)” and import.

Process capability context

P charts track attribute quality when each unit is classified as conforming or defective. If 8 samples total 975 inspected units with 55 defectives, the pooled estimate is p̄ = 55/975 = 0.05641, meaning 5.64% defective overall. The center line reflects your current baseline, not a target, so improvement projects should be validated by sustained shifts in p̄ across future samples.

Variable sample sizes

Because n can change by shift or batch, limits are computed per sample. For n = 80 with p̄ = 0.05641, σ = √(p̄(1−p̄)/n) = 0.02582, giving UCL = 0.13387 and LCL = 0.00000 after clamping. For n = 150, σ falls to 0.01884, tightening limits to UCL = 0.11293 and LCL = 0.00000.

Signal interpretation

A point outside the 3σ limits indicates special-cause variation. If a sample shows p = 0.18 while UCL is 0.11, treat it as a true signal until proven otherwise: confirm measurement rules, check material lots, review operator changes, and document corrective actions. Recalculate limits only after the cause is removed and a stable period is re-established.

Sampling discipline

Use rational subgrouping: each sample should represent a short, consistent production window. Mixing multiple days into one sample can hide spikes. Keep inspection criteria fixed, and record n and d directly from the same definition of “defective.” For low defect rates, increase n to reduce σ and avoid limits that are too wide to detect meaningful changes.

Audit-ready exports

The CSV and PDF exports capture p, LCL, CL, and UCL for each sample plus the status flag. This supports traceability during ISO-style audits: you can attach the PDF to a nonconformance report, or import the CSV into a dashboard for monthly trending. Always store the raw counts alongside the chart output for reproducibility. Use this calculator after each lot release to standardize reporting, reduce debate, and speed corrective-action approvals internally.

Next-step decisions

When the chart is in control, focus on reducing p̄ through structured improvement: Pareto the defect types, run designed trials, and confirm gains with new samples that stay within limits while trending lower. When it is out of control, prioritize containment and root-cause analysis before capability claims, because unstable processes invalidate yield forecasts and customer risk estimates.

FAQs

What inputs are required for a p chart?

Provide at least two samples with inspected count n and defectives d. Labels are optional. Keep the defect definition consistent across samples, and avoid mixing multiple time periods into one sample.

Why do UCL and LCL change by sample?

When sample sizes vary, the standard error uses σᵢ = √(p̄(1−p̄)/nᵢ). Larger n tightens limits and smaller n widens them, so each point is judged against its own limits.

What does an “Out of control” flag indicate?

It means the observed proportion pᵢ falls outside the 3σ control limits. Treat it as a potential special cause, verify data integrity, and investigate changes in materials, methods, machines, or people.

Why are limits clamped between 0 and 1?

Proportions cannot be negative or exceed 1. Clamping keeps LCL and UCL within valid bounds, especially when p̄ is low or n is small, where statistical limits may otherwise extend beyond reality.

When should I recalculate the center line p̄?

Recalculate after removing special causes or after a deliberate process change, using a stable window of recent samples. Avoid updating p̄ every point, because that can mask emerging shifts.

How many samples should I collect before trusting the chart?

You can start with 10–15 samples, but 20–25 provides a stronger baseline for p̄ and typical variation. More samples are helpful when defect rates are very low or sampling is irregular.

Related Calculators

X Bar Chart CalculatorR Chart CalculatorS Chart CalculatorC Chart CalculatorIndividuals Chart CalculatorControl Limit CalculatorProcess Mean CalculatorProcess Range CalculatorProcess Sigma CalculatorCenter Line Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.