Governance DocsGovernance Docs
Browse Toolkits

CART

No products in the cart.

Skip to content

Deviation Management in GMP: Classify, Investigate, Close

deviation management: Deviation Management in GMP: Classify, Investigate, Close

Deviation management is the process a GMP site uses to record, assess, investigate and close any departure from an approved procedure, instruction or specification. Done well, it protects patients, supports batch release and gives the quality system its best source of improvement data. Done badly, it is one of the first things an inspector will find.

This guide covers what counts as a deviation and where the rules come from in the EU and the US. It then sets out a practical lifecycle, a risk-based classification scheme, and how deviations feed batch release and the product quality review.

What this guide covers

deviation management explained
A risk-based deviation lifecycle runs from detection and containment through root cause, CAPA, QA approval and trending.

What Is a GMP Deviation?

A GMP deviation is any departure from an approved instruction, procedure, specification or standard during manufacture, testing, storage or distribution. A missed signature, a hold time exceeded, a temperature excursion in a warehouse and a skipped line clearance check are all deviations. The size of the event decides how deep the response goes, not whether it is recorded.

Most deviation management procedures split deviations into two types:

  • Unplanned deviations: events nobody intended, found during or after the work. Annex 16, section 3, calls these unexpected deviations.
  • Planned deviations: a temporary, one-off departure that is risk-assessed and approved before it happens, for example using a qualified alternative piece of equipment for one batch. Planned deviations are a company practice. They are not a route around change control: a permanent change belongs in the change control system.

Laboratory out-of-specification results usually follow their own procedure, then link to a deviation when the cause sits in manufacturing.

Where Deviation Management Requirements Come From

No single clause covers the whole topic. The requirements sit across several texts.

EU GMP Part I. Chapter 1, section 1.8(vii), expects significant deviations to be fully recorded, investigated to find the root cause and followed by suitable CAPA. Section 1.4(xiv) asks for root cause analysis scaled by risk and warns against blaming human error without checking for process or system causes. Section 1.9(iv) covers deviations in quality control. Chapter 4, section 4.29, lists deviation investigations among the activities that need written procedures and records. Chapter 5, section 5.15, says a deviation needs written approval from a competent person, with Quality Control involved where appropriate.

Once product has left the site, Chapter 8 takes over for complaints and quality defects. Sections 8.16 to 8.19 cover root cause analysis, human error, CAPA effectiveness and trending of defect records.

21 CFR Part 211. Section 211.100(b) says any deviation from written production and process control procedures must be recorded and justified. Section 211.192 requires a thorough investigation of any unexplained discrepancy or batch failure, whether or not the batch was distributed. The investigation must extend to other batches that may be affected, with a written record of conclusions and follow-up. Our guide to 21 CFR Part 211 subpart by subpart puts these sections in context. You can read 21 CFR 211.192 on eCFR.

ICH Q10. Section 3.2.2 lists deviations as a source of CAPA and asks for investigation effort in line with risk. Our guide to ICH Q10 and its four PQS elements explains how CAPA fits the wider system.

The Deviation Management Lifecycle

A workable deviation management procedure follows the same steps every time, with the depth set by risk.

  1. Detect and report. Anyone who sees the event reports it at once to the supervisor and QA. Training should make clear that reporting is expected, not punished.
  2. Record within a set time. The procedure sets how quickly a deviation report is opened, for example by the end of the shift or next working day. The time is your choice; record it and keep to it.
  3. Take immediate action. Stop or contain the problem. Place affected materials or batches on hold and secure the evidence.
  4. Classify by risk. QA assigns minor, major or critical using quality risk management, based on the possible effect on product quality and patients.
  5. Investigate root cause. Depth matches the class. Use structured tools rather than opinion.
  6. Assess impact on other batches. Check other batches, products, equipment and materials that share the cause.
  7. Define CAPA. Fix the cause, not just the symptom, and plan an effectiveness check.
  8. QA approval and closure. QA reviews the evidence, the conclusion and the batch disposition, then closes the record.
  9. Trend. Review deviations by type, area, product and root cause so repeat issues show up.

Neither EU GMP Part I nor Part 211 sets a fixed number of days to open, investigate or close a deviation. Your procedure should set targets, such as a closure window, and require a documented, QA-approved extension when an investigation runs longer. Either way, the investigation must reach a point that supports the batch decision: Annex 16, section 1.7.16, expects batch investigations to be complete enough to support certification.

If you are writing this procedure from scratch, the Pharmaceutical GMP Toolkit includes a Deviation Management Procedure you can adapt to these steps.

Deviation Classification: Minor, Major, Critical

The regulations do not define deviation classes. A three-tier scheme is common practice, and Q9(R1) supports scaling effort and formality to the level of risk. Define each class in your deviation management procedure with examples that fit your products.

Classification Example Investigation depth Approval
Minor A late but complete entry in a logbook, with no effect on product or data Short assessment and correction; a full root cause study is usually not needed Department head and QA
Major An in-process hold time exceeded, or a validated parameter briefly outside its range Formal root cause analysis, impact on other batches, CAPA with effectiveness check QA, with input from production and QC; QP or quality unit for batch disposition
Critical A mix-up of labels or materials, or a sterility assurance failure, with possible patient harm Full cross-functional investigation, wide batch and product scope, senior management escalation, possible recall assessment Head of QA and senior management; QP or quality unit for disposition

Classify early, then confirm the class when the investigation ends. A deviation can move up or down as facts emerge.

Running a Deviation Investigation

Investigation is the core of deviation management, and good investigations start with facts: batch records, logbooks, audit trails, interviews and the physical scene. Then a structured tool links the facts to a cause. Cause and effect (Ishikawa) diagrams appear in Q9(R1) Annex I.1, and Annex I.4 notes fault tree analysis can be used for deviations. Simple “five whys” questioning works for smaller events.

Three rules from the texts shape the outcome:

  • If the true root cause cannot be found, name the most likely cause and act on it (EU GMP Chapter 1, section 1.4(xiv)).
  • Human error needs justification. Check first for weak procedures, poor equipment design or system gaps.
  • Look beyond the batch. 21 CFR 211.192 requires the investigation to reach other batches and products that may be linked.

Data integrity matters here too. Records used in an investigation must be reliable, which our guide to ALCOA+ data integrity controls explains.

Common Deviation Management Inspection Findings

Inspectors often start with the deviation log because it shows how the quality system really works. Weak spots they tend to probe include:

  • Investigations that end at “operator error” with retraining as the only action.
  • No assessment of other batches, products or equipment that share the cause.
  • Deviations closed after the batch was released, or long overdue with no approved extension.
  • CAPA closed without any check that it worked.
  • Repeat deviations that trending missed, or no trending at all.
  • Events found in batch records or logbooks that were never raised as deviations.

The last point is why a careful batch manufacturing record review matters. Each of these weak spots traces back to a specific requirement above, so your deviation management procedure should address them by name.

How Deviations Feed Batch Release and Product Quality Review

In the US, 211.192 requires the quality control unit to review and approve all production and control records before a batch is released or distributed. In the EU, Annex 16, section 3, lets a QP certify a batch with an unexpected deviation only if registered specifications are met and a risk assessment concludes the impact is negligible. The QP must also consider adding the batch to the ongoing stability program. Our guide to Annex 16 QP certification and batch release covers this decision.

Deviations also feed the periodic review. EU GMP Chapter 1, section 1.10(iv), puts all significant deviations, their investigations and CAPA effectiveness into the product quality review. In the US, the annual evaluation in 211.180(e)(2) covers investigations made under 211.192. A well-kept deviation management log makes both reviews far easier.

Deviation Management Templates

The Pharmaceutical GMP Toolkit includes 114 consultant-written, editable documents mapped to EU GMP Part I, 21 CFR Parts 210 and 211, ICH Q10 and ICH Q9(R1). For deviations it provides a Deviation Management Procedure, a Deviation Report Template, a Deviation, CAPA and Change Log, a CAPA Procedure, a Root Cause Analysis Toolkit and a Quality Risk Management Procedure. You set your own classes, timelines and approvers in the bracketed placeholders. The documents give structure; your team still runs the investigations.

Deviation Management FAQ

What is the difference between a planned and an unplanned deviation?

A planned deviation is a temporary departure that is risk-assessed and approved before it happens. An unplanned deviation is an event nobody intended. Both are recorded. The unplanned one normally needs a root cause investigation, while the planned one rests on its prior risk assessment.

How long should a deviation investigation take?

The regulations set no fixed number of days. Your procedure should set realistic targets by class and require approved, documented extensions. What matters most is that the batch decision rests on a completed risk assessment.

Is a deviation the same as an OOS result?

No. An out-of-specification result is a test result outside its acceptance criteria and usually starts a laboratory investigation first. If that investigation points to manufacturing, a deviation is raised and linked.

Can a batch with a deviation still be released?

Yes, if the investigation and risk assessment support it. In the EU, Annex 16, section 3, sets the conditions for QP certification. In the US, the quality control unit approves release under 211.22 and 211.192.