GAMP 5 Software Testing and Validation Made Simple | Valkit.ai
GAMP 5 Software Testing and Validation Made Simple
Learn to classify any GAMP 5 software category by intended use and build a risk-based validation plan.
Steve Ferrell·
How to use GAMP 5 software categories to plan validation
Identify the gamp 5 software category of each component you use: Category 1 for infrastructure, Category 3 for standard software used as supplied, Category 4 for configured functions, and Category 5 for custom code. Then assess what could go wrong in its intended use. Test and document the functions that matter most to patient safety, product quality, and data integrity. The category helps you plan; it does not set validation depth on its own.
An MES or LIMS may contain several categories at once. Breaking it into components helps you reuse suitable supplier evidence while giving configured workflows and custom interfaces the attention they need.
I'm Stephen Ferrell, Chief Product Officer at Valkit.ai, with more than 20 years of experience in regulated software assurance and a contributing author to GAMP 5 Second Edition. My work with the ISPE GAMP community informs the practical approach to gamp 5 software category decisions in this guide.
Understand the GAMP 5 software category framework
ISPE's GAMP 5 Second Edition guidance was published in July 2022 and keeps the framework of the first edition. ISPE's GAMP overview describes GAMP as pragmatic guidance, not a regulation or a prescriptive standard. Its goal is systems that are fit for intended use. Categories are a classification tool, not a risk score. Think of them as a quick way to see how much configuration or custom work sits behind the functions you use.
What each gamp 5 software category means
Category What it covers Typical examples Typical assurance focus 1 Infrastructure software, tools, and IT services Layered software that supports applications Operating systems, databases, hypervisors, backup tools Qualified installation, versions, security, change control 3 Standard system components Commercial software used as supplied Fixed-function instrument software, PDF viewers, standard reports Intended-use checks, supplier evidence, procedures 4 Configured components Commercial software adapted with supplier tools LIMS, QMS, MES, ERP workflows Configuration specification and testing of your setup 5 Custom applications and components Code written or modified for you Bespoke interfaces, scripts, custom SCADA Requirements, design, code review, multi-level testing
Category 4 is the most common in pharma, covering platforms such as SAP S/4HANA, Veeva Vault QMS, and LabWare LIMS. For more background, see our guide to GAMP 5 software categories.
Why Category 2 is not used, and how to assess firmware today
GAMP 4 gave firmware its own category. Category 2 was already absent from the GAMP 5 model in 2008, so the 2022 Second Edition did not remove it. Firmware today ranges from simple embedded code to fully configurable software, so we assess what it actually does:
Fixed-function firmware used as supplied is usually Category 3.
Firmware with configurable parameters, such as a pH meter with configurable serial output, brings Category 4 elements.
Firmware that runs user-written logic or routines points toward Category 5.
If an internal SOP still uses Category 2, define how that legacy label maps to your current lifecycle approach rather than assuming a one-to-one swap. Include firmware upgrades in change control.
How the gamp 5 software category model differs from GAMP 4
Three shifts matter. Category 1 grew from operating systems to infrastructure software, tools, and IT services. Categories 3 to 5 are now seen as a continuum, not separate silos. And categorization applies to individual components, not whole systems. ISPE's article When component categorization matters explains that whole-system categorization is mainly useful early, to scale supplier assessment. A very complex configuration can carry more residual defect risk than a very simple custom script.
Classify software by intended use, configuration, and customization
Start with what the system does for your business process and which GxP records and decisions depend on it. The same product can be Category 3 in one use and Category 4 in another. One software application was Category 3 on a time-of-flight mass spectrometer used as installed, but Category 4 on a triple-quadrupole bioanalysis system with configured electronic signatures. Name alone never decides the category.
How to assign a gamp 5 software category to each component
Define the intended use and the GxP records and decisions involved.
Break the system into components: infrastructure, standard, configured, custom.
Assign a category to each component based on how you use it.
Document your rationale in the risk assessment or validation plan.
Revisit the category through change control, since a configuration change can shift a component's risk profile.
Business process owners, IT, and Quality should do this together, with supplier help to understand the functions you will use.
Distinguish Category 4 configuration from Category 5 customization
Aspect Configuration (Category 4) Customization (Category 5) Method Supplier-provided settings, workflows, roles, approval routes, report templates Bespoke code, scripts, macros, internal scripting languages Change to functionality Selects and tunes existing functions Creates or alters functions Verification focus Configuration specification, workflow and role testing Design review, code review, unit, integration, and system testing
A practical test: are you filling in blanks with the supplier's tools, or writing logic? Vendor marketing sometimes calls customization "configuration." If an internal scripting language changes how the software behaves, GAMP 5 Appendix M4 says to treat it as Category 5. A buyer-beware attitude is healthy here, because responsibility stays with you. Our GAMP 5 Category 4 article covers configured systems in more depth.
Classify user programs, spreadsheets, macros, and scripts
Spreadsheets sit across the continuum. Excel used as supplied for reference is Category 3. With formulas and linked cells it moves toward Category 4. Add VBA, Python, or R that processes GxP data and it is Category 5. Code length does not matter: a 20-line macro that calculates a specification limit and writes to a batch record is still Category 5. The same applies to user-defined routines on laboratory instruments.
Excel itself is infrastructure-like, but the templates and macros built with it are not Category 1. For these programs, keep requirements, version control, change control, access control, and test evidence. For instrument routines, qualify basic operation first, then specify and test each user-defined procedure. Where calculations affect results, check them for accuracy as part of qualification.
Avoid whole-system labels and category-based assumptions
Calling an MES "Category 4" hides the custom ERP interface where lot numbers and status changes cross systems, often the highest-risk spot. A vendor's category statement without your intended use is also meaningless, and no supplier can "prevalidate" your configuration. Record component-level rationale instead. Our GAMP 5 categorization guide walks through this in detail.
Build a risk-based testing and validation plan
Our overview of GAMP 5 validation covers the full approach. Here is the planning core.
How a gamp 5 software category informs, but does not set, testing depth
Category mostly informs the probability of residual defects. It does not set severity, which comes from the business process, and only sometimes affects detectability. So assess severity (impact on patient safety, product quality, data integrity), probability, and detectability separately. Then add complexity, novelty, and existing controls, and justify your test depth. A simple function with severe consequences can deserve more testing than a complex one that is harmless.
Typical assurance activities for Categories 1 and 3
Category 1: verify installation and versions, set an infrastructure baseline, apply security controls and configuration management, and assess the supplier. Qualify these tools instead of running full functional validation. Treat IT and lab infrastructure with the same standards.
Category 3: define requirements, test intended use in a single-phase approach, use relevant supplier evidence, and add procedures and training. Run-time settings such as users, units, and printers do not make it Category 4.
Typical assurance activities for Categories 4 and 5
Category 4: write a configuration specification, verify workflows, roles, configured reports, and interfaces, and trace requirements to tests. Test your configuration, not the base platform.
Category 5: add design documentation, code review, and unit, integration, and system testing. Keep source code under version control and backed up. Avoid Category 5 where a commercial Category 4 option fits.
Use supplier evidence without outsourcing your validation responsibility
Reusing supplier work is a core GAMP principle, but earn it through assessment. Check that the evidence matches your product version and configuration, covers the functions you use, and comes from a competent supplier. For cloud and service providers, review their controls and agreements. Regulators do not accept vendor validation data in isolation from your configuration and intended use, so always run customer-specific intended-use testing.
Validate mixed-category systems across the lifecycle
Category 3: standard label printing and built-in reports.
Category 4: workflows and batch record templates.
Category 5: ERP, LIMS, or SCADA interfaces and custom scripts.
Test data transfers and decisions most heavily, because errors there can reach the batch record.
Connect requirements, configuration, and verification
Follow a thread: user requirements, risk assessment, configuration or design specifications, installation and functional testing, performance testing, traceability, and a validation summary. The V-model is a traceability concept, not a mandatory linear process, and the Second Edition supports iterative and Agile delivery. Our GAMP 5 V-model and GAMP 5 checklist pages help here. Combine documents where sensible, and treat templates as memory aids, not forms to fill blindly.
Apply lifecycle controls after release
Validation does not end at go-live. Keep these running:
Change control with impact assessment, including supplier updates and version changes.
Incident management and CAPA.
Access management, backup and restore, and security.
Periodic review, with data retention rules confirmed for your jurisdiction.
Understand how GAMP 5 categories relate to FDA CSA
They are complementary but separate. FDA's CSA guidance does not define GAMP categories, and its formal scope covers medical-device production and quality-management-system software. Drug manufacturers fall outside that formal scope, yet the thinking still helps: reserve robust scripted testing for high-risk requirements and use unscripted or exploratory testing for lower risk. CSA does not shrink scope; the whole system still needs to be fit for intended use. Apply what is relevant in your regulatory context.
Correct common categorization and validation errors
Assigning one category to an entire system.
Treating category as a risk score.
Describing Category 2 as a 2022 removal.
Confusing configuration with custom code.
Overlooking scripts and macros.
Treating supplier claims as prevalidation.
Scripting every test without risk rationale.
Asking a vendor for a functional specification just because a category lists it does nothing for patient safety unless it addresses a real risk.
Frequently Asked Questions about GAMP 5 software categories
What GAMP 5 category is a LIMS, MES, or ERP?
Mostly Category 4, because platform functions are configured. But the workflows are Category 4, the database and OS are Category 1, built-in standard features may be Category 3, and custom interfaces or code are Category 5.
Does every GxP spreadsheet macro or script require validation?
If it processes GxP data, yes, proportionately. Custom code that handles regulated data is Category 5, so document requirements, test the intended function, and control changes. Scale the effort to risk.
Does Category 5 always require more testing than Category 4?
Not automatically. Category 5 typically carries higher residual-defect likelihood, but functional risk, complexity, novelty, and supplier evidence matter too. A trivial custom component may need less than a complex configuration, so justify assurance component by component.
Conclusion
Use categories as a thinking tool: assess components, not labels, tie everything to intended use, and match testing to real risk. That keeps validation proportionate and defensible. To speed this up, you can plan digital validation with Valkit.ai. Our AI-powered platform uses automation, cloning, and compliance tools, with the potential to cut validation costs by up to 80% and compress work from weeks to hours.