Deviation Management in Pharma: Complete Guide (GMP, CAPA)

Last reviewed 29 Oct 2026 · 17 min read

Contents
  1. What is a deviation?
  2. Planned and unplanned deviations
  3. How a deviation differs from related events
  4. Classification of deviations
  5. The deviation management process step by step
  6. Step 1: Detection and immediate action
  7. Step 2: Reporting and logging
  8. Step 3: Initial assessment and classification
  9. Step 4: Impact assessment
  10. Step 5: Root cause investigation
  11. Step 6: Corrective and preventive actions
  12. Step 7: Effectiveness check
  13. Step 8: QA approval and batch disposition
  14. Step 9: Trending and management review
  15. Documentation and data integrity
  16. Common inspection findings
  17. Worked example (fictional)
  18. Frequently asked questions
  19. Is every deviation reported to the regulator?
  20. What is the difference between a deviation and an OOS result?
  21. How long should a deviation investigation take?
  22. Can a batch be released while the deviation is still open?
  23. Is “human error” an acceptable root cause?
  24. Should a repeat deviation be a new report or an update to the old one?
  25. What if the root cause cannot be found?
  26. References

In short: A deviation is any departure from an approved instruction, procedure, specification or standard. It must be recorded when it happens, assessed for its effect on product quality, investigated to a depth that matches the risk, closed with corrective and preventive actions (CAPA), and approved by Quality Assurance before the batch is decided. This guide takes QA officers, production and QC staff and students through the full process, from detection to trending, with a fictional worked example.

What is a deviation?

A deviation is any departure from an approved procedure, instruction, specification, validated parameter or established standard. The principle is old and simple. In the United States, 21 CFR 211.100(b) requires written production and process control procedures to be followed and documented at the time of performance, and says any deviation from them must be recorded and justified. EU GMP Part I Chapter 1 (§1.8, item vii) expects significant deviations to be fully recorded, investigated to find the root cause, and followed by appropriate corrective and preventive action. In India, revised Schedule M (Part I §18.2.2) says deviations from instructions or procedures should be avoided as far as possible; if one occurs, it must follow an approved procedure and be authorised in writing by a designated person, with QC involvement where appropriate.

Two points are easy to miss:

  • A deviation does not have to cause a quality problem. A missed log entry, a late calibration or a wrong gowning step is a deviation even if the product is unaffected. What matters is that it is recorded and its impact is assessed.
  • Recording a deviation is not an admission of failure. Unreported deviations are the real risk, because they cannot be assessed, trended or prevented.

Planned and unplanned deviations

TypeMeaningExample
Unplanned deviationHappens unexpectedly during manufacturing, testing, storage or support activitiesMixing time found shorter than the batch record states
Planned deviationA one-time, pre-approved departure from a procedure, authorised before the work is doneUsing an alternate qualified sieve for one batch while the usual one is being repaired

Many sites restrict planned deviations tightly, because a repeated “planned” departure is really a change that belongs in change control. Whether your site allows planned deviations at all is a quality system decision, so follow your own procedure.

TermWhat it isHow it relates
IncidentAny unexpected event, for example a spill, equipment breakdown or power failureAn incident becomes a deviation when it departs from an approved procedure or standard. See incidents and deviations
OOS resultA test result outside the specificationHandled through its own laboratory investigation; a confirmed OOS then feeds the deviation and batch decision. See the OOS investigation guide
Change controlA planned, evaluated and approved change to a validated or controlled stateA deviation is unplanned and looks backwards at what happened; a change is planned and looks forwards. See change control
Complaint or quality defectAn issue reported from the marketHandled under the complaints procedure (EU GMP Chapter 8, complaints, quality defects and recalls); it may lead to a deviation investigation at the site
CAPAAction taken to fix a cause and prevent recurrenceThe outcome of an investigation, not the same thing. See CAPA process

Classification of deviations

Most sites classify a deviation to decide how deep the investigation must go and who must approve it. Regulations do not prescribe one scheme. The three-level model below is typical industry practice.

ClassTypical meaningExample
CriticalHas, or could have, a direct effect on patient safety, product quality, data integrity or a regulatory commitmentSterilisation cycle outside validated limits; falsified or missing raw data
MajorCould affect product quality or compliance, but not directly a patient-safety eventCompression force out of the validated range with no confirmed effect on the product
MinorNo effect on product quality, safety or data integrityLate entry of a non-critical record, corrected with a justified note

The meaning of each class, and the timelines and approvers attached to it, are example in-house criteria. Write your own definitions in the deviation SOP, apply the same definitions to every event and let Quality Assurance confirm the class, not only the originator. A classification can be raised once the investigation shows more than was first known. It should not be lowered only to meet a due date.

Classification should rest on the risk to the patient, the process and the data. ICH Q9(R1) on quality risk management supports this: the level of effort, formality and documentation of the quality risk management process should match the level of risk (ICH Q9(R1), Section 3). See quality risk management for the tools.

The deviation management process step by step

The flow below suits most oral solid dose, liquid and sterile sites. Titles and forms differ, but the logic is stable.

Step 1: Detection and immediate action

Anyone who sees a departure must stop, secure the situation and tell their supervisor. Immediate actions limit the damage; they do not decide the cause or the batch fate. Typical actions:

  • Stop the affected process step or equipment if continuing could worsen the situation.
  • Segregate and label affected material, so nothing moves on by mistake.
  • Preserve evidence, such as samples, printouts, equipment settings and the area as found.
  • Do not “fix” the record. Correct entries only under good documentation practice, with the original still readable.

Step 2: Reporting and logging

The deviation is recorded in the quality system (paper or electronic) and given a unique number. Record at least what happened, when, where, who found it, which batch, material, equipment and room are involved, and what was done immediately.

Prompt reporting matters. Many sites set a short reporting window, for example the same shift or within 24 hours of discovery (example in-house criterion). Late reporting is itself a finding at inspections, and it also means evidence is lost.

Step 3: Initial assessment and classification

QA reviews the report, confirms the classification and decides the depth of investigation. At this stage, ask four questions:

  1. Which batches, materials, equipment or areas are or could be affected?
  2. Could the event affect patient safety, a validated state or a regulatory commitment?
  3. Does anything need to be stopped, held or notified right now, for example a product already distributed?
  4. Is it a repeat of an earlier event? Search the deviation history by equipment, process, product and root cause.

Step 4: Impact assessment

Impact assessment is the scientific core and is where many reports are weakest. It should cover:

  • The batch itself: which critical quality attributes and process parameters could be affected, and what data (in-process checks, test results, process monitoring) show.
  • Other batches and products: the same equipment, material lot, utility, method or operator may have touched them. 21 CFR 211.192 expects the investigation to extend to other batches of the same drug product and other drug products that may have been associated with the failure or discrepancy.
  • Validated state: whether qualification, process validation, cleaning validation or a method is affected, and whether revalidation or a change control is required.
  • Regulatory commitments: whether the marketing authorisation, registration or any approved filing is affected.
  • Market actions: whether distributed product is involved, and if so whether a quality defect notification or recall assessment is needed under the complaints and recall procedure.

Support the conclusion with data or a documented rationale. “No impact” with no reasoning is not an assessment.

Step 5: Root cause investigation

EU GMP Chapter 1 §1.4 (item xiv) says an appropriate level of root cause analysis should be applied when investigating deviations, suspected product defects and other problems, and that the depth can be determined using quality risk management. Where the true root cause cannot be established, the most likely root cause or causes should be identified and addressed. Where human error is suspected or identified as the cause, this should be justified, with care taken that process, procedural or system-based errors or problems have not been overlooked.

That last point is important in practice. “Operator error” or “lack of attention” is rarely a root cause. It usually points to an unclear instruction, poor design of the task, inadequate training or workload. Ask why the error was possible, not only who made it.

Common tools, used briefly:

  • 5 Whys: keep asking “why” until you reach a cause you can act on. Quick and good for simple, single-path events. It can become shallow or biased if done alone, so involve people who do the work.
  • Fishbone (Ishikawa) diagram: group possible causes under headings such as man, machine, method, material, measurement and environment. Useful to widen thinking before testing the likely causes with data.
  • Fault tree analysis: work backwards from the event through logical AND/OR gates to the combinations of failures that could produce it. Good for complex, multi-factor failures.
  • Is / Is not comparison: compare where and when the problem occurred with where and when it did not (other batches, shifts, lines). Often finds the difference that matters.

Whatever tool is used, test the suspected cause against evidence (records, trend data, interviews, a repeat run where appropriate) and document why other causes were ruled out. A cause that is only assumed is a hypothesis.

For a laboratory failure, see also the failure investigation SOP.

Step 6: Corrective and preventive actions

CAPA turns the investigation into lasting improvement. ICH Q10 §3.2.2 describes a CAPA system for actions that result from investigating complaints, product rejections, non-conformances, recalls, deviations, audits, regulatory inspections and findings, and trends from process performance and product quality monitoring. It expects a structured investigation aimed at finding the root cause, with effort, formality and documentation in proportion to the risk, and for commercial manufacturing it says the effectiveness of the actions should be evaluated. Revised Schedule M (Part I §1.5(s)) sets the same expectation in India: deviations are reported, investigated and recorded, root cause analysis is applied, CAPA is taken and its effectiveness is monitored.

  • Correction: deals with the immediate problem, such as reprocessing or rejecting the batch, or repairing the equipment.
  • Corrective action: removes the root cause, so the event does not happen again.
  • Preventive action: removes the cause of a similar event elsewhere, in another line, product or site, before it occurs.

Each action needs an owner, a due date and a defined deliverable. Actions such as “retrain the operator” alone are weak because they do not change the system. Prefer actions that change the process, design, procedure or equipment, with training as support. Full detail is in the CAPA guide.

Step 7: Effectiveness check

An action that has been completed is not necessarily an action that has worked. Define at the start how effectiveness will be judged: what will be measured, over what period or number of batches, and what result counts as success (example in-house criterion, for example no recurrence over the next ten batches or six months). If the check fails, reopen the investigation, because the root cause was probably wrong.

Step 8: QA approval and batch disposition

The quality unit approves the investigation, the impact assessment and the actions. Under 21 CFR 211.192, all production and control records, including packaging and labelling records, must be reviewed and approved by the quality control unit, to confirm compliance with the approved written procedures, before a batch is released or distributed. Any unexplained discrepancy, or the failure of a batch or any of its components to meet a specification, must be thoroughly investigated, whether or not the batch has already been distributed, and a written record of the investigation must include its conclusions and follow-up.

Batch disposition then follows from the facts:

OutcomeWhen it is used
ReleaseImpact assessment shows no effect on quality, safety or compliance, and the batch otherwise meets its requirements
Release with conditionsFor example additional testing or enhanced stability monitoring, where justified by risk and permitted by the quality system and registration
Reprocessing or reworkingOnly where the procedure and registration allow it, and after a documented assessment
RejectQuality cannot be shown, or the event invalidates the batch

Do not close a deviation just to release a batch. Release of the batch may sometimes happen before every CAPA is complete, but only if the batch decision is supported by the data and the open actions are tracked to completion.

Single deviations teach little. Trends show where the system is weak. Review deviation data at a fixed frequency, for example monthly (example in-house criterion), and in the product quality review and management review. Typical cuts:

  • By class, area, product, equipment and process step.
  • By root cause category (for example procedure, training, equipment, material, human factors, documentation).
  • Repeat deviations and overdue investigations or CAPAs.
  • Time to report, time to close and percentage of investigations closed on time.

ICH Q10 treats management review and process and product monitoring as core elements of the pharmaceutical quality system. A rising trend in one category should trigger a systemic action, not a stack of identical closures.

Documentation and data integrity

The record is the evidence. A strong deviation file allows a reader who was not there to follow what happened and why the conclusion is justified. Include:

  • A clear description of the event, with dates, times, batch numbers and equipment IDs.
  • Attachments: printouts, audit trail reviews, chromatograms, logbook pages, photographs, interview notes.
  • The impact assessment and its rationale, including other batches checked.
  • The root cause method used and the evidence, including causes ruled out.
  • CAPA references, effectiveness criteria and closure evidence.
  • QA approval with date and signature.

Data integrity points specific to deviations:

  • Raise the deviation when the event is found, not after the data have been “tidied up”.
  • Never overwrite, back-date or replace original entries. Corrections follow good documentation practice and remain traceable.
  • For computerised systems, review the audit trail for the period concerned. Unexplained deletions, repeat injections or changed integration are triggers for a data integrity investigation.
  • Investigation conclusions must follow the evidence. Closing under pressure of a batch release date is a classic finding.

Record retention. Keep deviation reports, investigation records and the related batch records for at least 1 year after the expiry date of the respective product batch (EU GMP Chapter 4 §4.11, which sets 5 years after certification if longer; 21 CFR 211.180(a)), and longer if local law or the marketing authorisation requires.

Common inspection findings

Inspectors from the US FDA and other authorities repeat the same themes. The first four map directly to the wording of 21 CFR 211.192:

  • Investigation not thorough. A discrepancy or failure was closed with a short conclusion and no evidence for the cause.
  • Other batches not assessed. The investigation did not extend to other batches or products that may have been associated with the same cause, even though the rule asks for it.
  • Conclusions and follow-up not documented. The file does not show what was concluded and what was done about it.
  • Quality unit review missing or late. Records were not reviewed and approved by the quality unit before release, or approval was a formality.
  • Weak root cause. “Human error” accepted without asking why the error was possible.
  • Overdue investigations and repeat deviations. Old open items, extended due dates and the same event recurring show that CAPA is not effective.
  • Unreported deviations. Found by comparing logbooks, equipment records and audit trails with the deviation log.

Use these as a self-inspection checklist for your own system.

Worked example (fictional)

This example is invented to illustrate the steps. It does not describe a real event or company.

Event. During a tablet coating run, the operator notices that the inlet air temperature recorded on the coater printout was below the batch record range for about 20 minutes in the spraying stage. Spraying continued, and the operator did not report it until the end of the shift.

Immediate action. The supervisor stops further processing after the run ends, holds the batch on a quarantine status and secures the printout and the equipment alarm log.

Classification. QA classifies it as major (example in-house criterion): a critical process parameter was outside the batch record range, with no confirmed effect on the product yet.

Impact assessment.

  • The coating process is validated with a range wider than the batch record range, and the 20-minute excursion lies within the validated range. This is documented with reference to the validation report.
  • In-process checks (weight gain of the coated tablets) are within limit. Finished product testing for assay, dissolution and appearance is planned, with the results to be added.
  • Two other batches were run on the same coater that week. Their printouts are reviewed, and no excursions are found.
  • No distributed batch is involved.

Root cause. A 5 Whys analysis followed by a fishbone review finds that a preventive maintenance task had left the temperature control loop at the wrong tuning setting. The alarm for low inlet temperature was set with a delay, so no alert reached the operator. The operator report was late because the SOP did not state when to report. Human error was not accepted as the cause: the system allowed the excursion to pass unseen.

CAPA.

  • Corrective: restore the control loop tuning and verify it.
  • Preventive: review alarm delay settings on all coaters of the same model; add a post-maintenance verification step to the maintenance SOP.
  • Procedure: add a reporting timeline to the deviation SOP and train the area staff on it.
  • Effectiveness: no similar excursion over the next ten coating batches and no late reports in the next three monthly reviews (example in-house criterion).

Batch disposition. After the finished product results meet specification and QA confirms the impact assessment, the batch is released. The deviation remains open until the CAPA and the effectiveness check are complete, then it is closed and included in the monthly trend.

Frequently asked questions

Is every deviation reported to the regulator?

No. Most deviations are handled inside the quality system and reviewed during inspections. Notification duties apply for specific events, such as a quality defect that may lead to a recall or restriction on supply, or events affecting a registered commitment. Check your marketing authorisation, local law and your own complaints and recall procedure.

What is the difference between a deviation and an OOS result?

An OOS result is a test result outside specification and follows its own laboratory-first investigation. A deviation is a departure from any approved procedure or standard. An OOS may lead to a deviation, and a deviation may lead to testing, but they are handled by their own procedures and linked in the record.

How long should a deviation investigation take?

Regulations do not fix a number of days. Many sites set targets by class, for example critical in 15 working days and minor in 30 days (example in-house criterion). Set realistic targets, track them and document the reason when one is extended.

Can a batch be released while the deviation is still open?

Only if the quality unit has assessed the impact, the evidence supports release, and any open actions are tracked. The decision and the rationale must be documented. A batch must not be released on an unassessed or unexplained discrepancy.

Is “human error” an acceptable root cause?

Rarely. EU GMP Chapter 1 §1.4 (xiv) asks that where human error is suspected or identified as the cause, this be justified and that process, procedural or system-based problems are not overlooked. Look for what made the error possible and repeatable.

Should a repeat deviation be a new report or an update to the old one?

Raise a new report for each new event and link it to earlier ones. A repeat is evidence that the first CAPA was ineffective, so reopen the effectiveness review and revisit the root cause.

What if the root cause cannot be found?

Document everything that was done and tested, state the most likely cause or causes, and take action against them, as EU GMP Chapter 1 §1.4 (xiv) describes. Increase monitoring of the process for a defined period and review the outcome in trending.

References

  1. US FDA, 21 CFR 211.100, Written procedures; deviations, paragraph (b). ecfr.gov.
  2. US FDA, 21 CFR 211.192, Production record review. ecfr.gov.
  3. US FDA, 21 CFR 211.180(a), General requirements for records. ecfr.gov.
  4. European Commission, EudraLex Volume 4, EU GMP Part I Chapter 1: Pharmaceutical Quality System (in operation from 31 January 2013), §1.4 (xiv) and §1.8 (vii).
  5. European Commission, EudraLex Volume 4, EU GMP Part I Chapter 4: Documentation, §4.11.
  6. European Commission, EudraLex Volume 4, EU GMP Part I Chapter 8: Complaints, Quality Defects and Product Recalls (in operation from 1 March 2015).
  7. ICH Q10, Pharmaceutical Quality System (2008), §3.2.2 Corrective Action and Preventive Action (CAPA) System and Table II. ich.org.
  8. ICH Q9(R1), Quality Risk Management (adopted 18 January 2023), Section 3: Principles of Quality Risk Management. ich.org.
  9. Ministry of Health and Family Welfare, Government of India, Drugs Rules 1945, revised Schedule M (G.S.R. 922(E), 28 December 2023), Part I §1.5(s) and §18.2.2. cdsco.gov.in.

Related articles