A C chart is a statistical process control (SPC) tool designed for attribute data, specifically for monitoring the total number of nonconformities (defects) in a constant sample size over time. It plots the count of defects per unit or inspection area against statistically calculated control limits, which are typically set at ±3 standard deviations from the process mean. This allows practitioners to distinguish between common cause variation (inherent, random noise) and special cause variation (assignable, non-random signals) in the data generation process.
Glossary
C Chart

What is a C Chart?
A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the count of nonconformities (defects) in a sample of constant size for attribute data over time.
The chart's effectiveness relies on the data meeting key assumptions: the opportunity for defects is large, their occurrence is independent, and the probability of a defect is small and constant. It is closely related to the P chart, which monitors the proportion of defective units. C charts are foundational in data quality monitoring and manufacturing quality control, providing a visual mechanism to detect shifts or trends that indicate a process is becoming unstable or out of control, triggering investigative and corrective actions.
Key Characteristics of a C Chart
A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the total count of nonconformities (defects) in a sample of constant size over time. It is designed for attribute data where the opportunity area for defects is large but the sample size is fixed.
Purpose and Core Use Case
The C chart is used to monitor the total number of defects (nonconformities) in a constant sample size or inspection unit. It answers the question: "Is the defect rate stable?"
- Key Application: Monitoring the count of flaws, errors, or incidents where the sample area, volume, or time period is constant (e.g., defects per 100 lines of code, errors per daily transaction log, scratches per manufactured panel).
- Data Type: Uses attribute data (count data), not continuous measurements.
- Objective: To distinguish between common cause variation (inherent to the process) and special cause variation (indicating an assignable change that needs investigation).
Fundamental Assumptions
For a C chart to be valid and effective, the underlying process and data must meet specific statistical assumptions.
- Constant Sample Size/Opportunity: The area of opportunity for defects must be identical for each sample (e.g., same length of code reviewed, same time period, same unit area inspected).
- Poisson Distribution: The occurrence of defects is assumed to follow a Poisson distribution. This implies defects are independent, rare, and randomly distributed within the inspection unit.
- Defect Definition: The definition of a 'defect' or 'nonconformity' must be clear, consistent, and objectively measurable across all samples.
Control Limit Calculation
The center line and control limits for a C chart are derived from the observed data, providing statistically sound boundaries for process behavior.
- Center Line (c̄): The average number of defects per sample. Calculated as:
c̄ = (Sum of defects in all samples) / (Number of samples). - Upper Control Limit (UCL):
UCL = c̄ + 3 * sqrt(c̄) - Lower Control Limit (LCL):
LCL = c̄ - 3 * sqrt(c̄)(set to 0 if calculation yields a negative value).
These 3-sigma limits are based on the properties of the Poisson distribution, where the standard deviation is the square root of the mean. A point plotting outside these limits is a strong signal of special cause variation.
Interpretation and Signals
Analyzing a C chart involves looking for patterns that indicate the process is out of statistical control.
- Primary Signal: Any single point falling outside the control limits (UCL or LCL).
- Pattern-Based Signals (Western Electric Rules):
- A run of 7 or more points consecutively above or below the center line.
- 6 points in a row steadily increasing or decreasing (a trend).
- 2 out of 3 points in the outer third of the control band (between 2 and 3 sigma from the mean).
- Implication: A signal suggests an assignable cause—a specific, identifiable factor has changed the defect generation process, requiring investigation and corrective action.
Comparison with P Chart
It is crucial to distinguish a C chart from a P chart, as both handle attribute data but for different scenarios.
- C Chart: Tracks the count of defects (nonconformities) in a constant sample size. The sample is a single unit of inspection with multiple opportunities for defects.
- P Chart: Tracks the proportion or percentage of defective units in a sample where each unit is classified as pass/fail. Sample sizes can vary.
Example:
- C Chart: Number of typographical errors in ten 100-page manuals (sample size = 1 manual, defect count per manual).
- P Chart: Proportion of manuals with any typos out of a daily batch of 50 manuals (sample size = 50, defective unit = a manual with ≥1 typo).
Application in Data Observability
In modern data pipelines, C charts can be applied to monitor data quality metrics where the inspection unit is constant.
- Monitoring Data Errors: Count of parsing failures per daily ETL job run, assuming a consistent volume of source files.
- Schema Violations: Number of records failing schema validation checks per fixed batch of 10,000 records.
- Anomaly Detection: Count of outlier data points identified by a rule-based checker per hourly data stream snapshot.
By establishing a baseline defect count (c̄) and control limits, data engineering teams can receive statistical alerts when the rate of data quality issues shifts significantly, moving from reactive firefighting to proactive process control.
C Chart vs. P Chart: Key Differences
A comparison of two primary control charts used for attribute data in Statistical Process Control, highlighting their distinct applications, formulas, and data requirements.
| Feature / Metric | C Chart (Count of Defects) | P Chart (Proportion Defective) |
|---|---|---|
Data Type | Count data (Discrete) | Proportion data (Continuous 0-1) |
What is Monitored | Number of nonconformities (defects) in a constant sample size | Proportion or fraction of nonconforming units (defectives) in a sample |
Sample Size Requirement | Constant (must be identical for all samples) | Can vary from sample to sample |
Central Line (CL) Formula | c̄ = (Total Defects) / (Number of Samples) | p̄ = (Total Defectives) / (Total Items Inspected) |
Control Limits | Based on Poisson distribution: UCL/LCL = c̄ ± 3√c̄ | Based on Binomial distribution: UCL/LCL = p̄ ± 3√(p̄(1-p̄)/n) |
Unit of Analysis | Opportunities for defects within an item or sample (e.g., flaws per bolt of fabric) | The item itself (e.g., defective/non-defective bolt of fabric) |
Primary Use Case | Monitoring total defect count when inspection area/unit size is constant (e.g., bugs per 1000 lines of code, typos per page) | Monitoring the fraction defective when sample size varies (e.g., % defective parts from daily production batches) |
Sensitivity to Sample Size Changes | High - Invalid if sample size varies | Robust - Formulas account for variable 'n' in each sample |
Frequently Asked Questions
A C chart is a statistical process control (SPC) chart used to monitor the total count of nonconformities (defects) in a sample of constant size over time. It is a key tool for attribute data quality monitoring in data observability and manufacturing.
A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the total count of nonconformities (defects) in a sample of constant size over time. It works by plotting the number of defects per inspection unit (c) on a chart with a center line (CL) representing the average defect count and statistically derived upper control limit (UCL) and lower control limit (LCL).
How it works:
- Data Collection: Inspect a constant sample size (e.g., 100 records, 1 square meter of fabric, a batch of 50 transactions).
- Count Defects: Record the total number of defects (c) found in that unit. A single unit can have multiple defects.
- Calculate Limits: The center line (CL) is the average number of defects per sample. Control limits are calculated based on the Poisson distribution:
UCL = c̄ + 3√c̄andLCL = c̄ - 3√c̄(where c̄ is the average defect count). The LCL is set to 0 if the calculation yields a negative number. - Plot and Analyze: Plot each sample's defect count. Points outside the control limits or forming non-random patterns indicate special cause variation, signaling an out-of-control process that requires investigation.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A C chart is a fundamental tool within Statistical Process Control (SPC). To fully understand its application and context, it is essential to be familiar with these related concepts and chart types.
Control Chart
A control chart is a graphical tool used in Statistical Process Control to plot data over time against statistically derived control limits. It is the foundational framework for all specific chart types, including the C chart. Its primary purpose is to distinguish between common cause variation (inherent, random noise) and special cause variation (assignable, non-random signals).
P Chart
A P chart is used to monitor the proportion of nonconforming units (defectives) in a sample of attribute data. Unlike the C chart, which tracks the count of defects, the P chart tracks the fraction defective. It is used when sample sizes can vary from one sampling period to another. Key calculations involve the average proportion defective and control limits that adjust based on each sample's size.
U Chart
A U chart (units chart) is the direct counterpart to the C chart for situations where the area of opportunity is not constant. It monitors the average number of nonconformities per unit. For example, tracking defects per square meter of fabric or errors per 1000 lines of code. The control limits for a U chart vary with each sample based on the inspection unit count.
NP Chart
An NP chart monitors the number of nonconforming units (defectives) in a sample. It is used for attribute data with a constant sample size, similar to a C chart, but the underlying metric is different. While a C chart counts all defects (multiple defects can occur on a single unit), an NP chart simply counts how many units in the sample are defective, regardless of the number of defects on each.
Statistical Process Control (SPC)
Statistical Process Control (SPC) is the overarching methodology of using statistical techniques to monitor and control a process. It aims to achieve and maintain a state of process stability, where only common cause variation exists. SPC employs control charts (like the C chart) as its primary tool, along with concepts like rational subgrouping, process capability analysis, and Measurement System Analysis (MSA).
Process Capability Analysis
Process capability analysis assesses a stable process's ability to produce output within specification limits. It is performed after a control chart like the C chart confirms the process is in statistical control. Key indices include Cp (measures process potential) and Cpk (measures actual performance relative to specifications). For attribute charts, capability is often expressed as the average defect count (c-bar) or defects per unit.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us