Pending, Stored, and Permanent Codes: What Each Type Means

Mechanic reviewing pending, stored and permanent diagnostic trouble codes on an OBD2 scan tool.

OBD2 fault codes do not all behave the same way. A scanner that returns a code may be showing you a code from yesterday that has already resolved itself, a code that just appeared for the first time and has not yet confirmed, or a code that persists through code clears and cannot be erased by a scanner at all. Understanding the difference between pending, stored (confirmed), and permanent codes determines whether a code represents an active problem requiring immediate attention, a monitoring system flagging a possible issue, or evidence that a repair attempt did not actually fix the fault. Treating all three the same way leads to misdiagnosis.

Kamil Siegień, founder and writer of OBD2 Scout

About the author: Hello! I’m Kamil Siegień, founder of OBD2 Scout. My diagnostic experience started with an engine rebuild on a 2014 Skoda Superb 1.8 TSI, where tuning from 160 to 222 hp required mastering live data and ECU behavior that basic code readers cannot handle. I am a former BMW and MINI employee and regularly use diagnostic scanners on my own Audi A4 2.0 TFSI.

This guide covers how each code type is generated by the ECM, how each type appears on a scanner, what the OBD2 standard requires for code storage and clearing, how permanent codes differ from stored codes and why they cannot be erased by a scanner, and what each code type tells you about the current state of the fault.

Stored Codes (Confirmed DTCs)

A stored code (also called a confirmed DTC or a hard code) is the code most people think of when they think of OBD2 fault codes. It is stored in the ECM’s non-volatile memory after a fault condition has been detected and confirmed according to the ECM’s specific detection criteria for that code. The check engine light (MIL, Malfunction Indicator Lamp) illuminates when a stored code is present in most cases.

The storage criteria for each code define how many times and under what conditions the fault must be detected before the code stores. A continuous monitor checking conditions during every key cycle may store a code after detecting the fault once or twice in a single drive cycle. A non-continuous monitor checking conditions only during specific drive cycle events may require the fault to be detected across multiple drive cycles with specific conditions met each time. A fault severe enough to cause immediate driveability problems may store a code within minutes of occurrence, while a subtle fuel trim anomaly may require several drive cycles before confirming.

Stored codes remain in memory until: a scanner clears them using Mode 04, the battery is disconnected (clears non-volatile RAM in most ECMs but not permanent codes), or the ECM self-clears the code after a defined number of consecutive successful drive cycles with no recurrence of the fault condition (typically 40 to 80 warm-up cycles depending on the code and manufacturer).

I explain what a battery disconnect clears and what it leaves behind in my guide to battery disconnect and OBD2 codes.

Pending Codes

A pending code (also called a one-trip fault or preliminary code) stores when the ECM detects a fault condition for the first time but the detection criteria require confirmation across a second drive cycle before the code becomes stored. The check engine light does not illuminate for a pending code. The code is visible through OBD2 Mode 07 (request pending DTCs).

BlueDriver Pro lists pending codes separately, which I cover in my in-depth BlueDriver Pro review.

Pending codes are particularly valuable for diagnosing intermittent faults. A pending P0420 (catalyst efficiency) means the catalyst test ran and the catalyst performance was below the threshold once: the code is waiting to confirm across a second test before triggering the MIL. A pending code found during a pre-purchase inspection indicates a fault that is developing but has not yet been confirmed enough to illuminate the check engine light.

A Bluetooth adapter that logs data can catch the fault when it recurs, and my Bluetooth OBD2 scanner picks shows the best ones.

If the fault condition does not recur on the next drive cycle in which the relevant monitor runs, the pending code clears on its own. If the fault recurs and meets the storage criteria again, the pending code upgrades to a stored code and the MIL illuminates. Pending codes provide an early warning layer between first fault detection and MIL illumination.

My guide to pending vs confirmed OBD2 codes covers the confirmation rules in more depth.

Not all codes have a pending state. Some codes that meet storage criteria on a single detection go directly to stored without a pending phase. Continuous monitors with simple detection criteria may store on first occurrence. Non-continuous monitors with two-trip detection requirements always pass through the pending state first.

Permanent Codes

Handheld diagnostic scanner displaying a pending P0420 catalytic converter efficiency trouble code in a car workshop.

Permanent codes (also called permanent DTCs or PDTCs) are stored fault codes that cannot be cleared by a scanner using the Mode 04 clear command or by disconnecting the battery. They were introduced as a mandatory requirement for all US OBD2-compliant vehicles starting with model year 2010.

The purpose of permanent codes is to prevent clearing codes immediately before an emissions inspection to pass without actually repairing the fault. Before permanent codes, a vehicle with a stored P0420 could fail an emissions test, be cleared immediately, and driven to the inspection station where the cleared codes and incomplete monitors were not detected. The vehicle passed temporarily without repair. Permanent codes prevent this: the P0420 remains as a permanent DTC even after Mode 04 clearing, and it only clears when the ECM confirms the fault condition no longer exists across a specific number of successful monitor drive cycles.

The Innova 3100RS helps with this check because it shows readiness status, as I cover in my detailed Innova 3100RS review.

The only way to clear a permanent code is to repair the fault that caused it and drive the vehicle until the relevant monitor completes and passes. The ECM verifies the repair is genuine by running the monitor to completion and confirming the previously failing condition now passes. Once the monitor passes, the permanent code self-clears. This process cannot be accelerated by a scanner: it requires actual repair and successful monitor completion.

Permanent codes are visible to scanners through OBD2 Mode 0A (request permanent DTCs). Some basic code readers do not display Mode 0A results. Emissions test equipment queries Mode 0A to check for permanent codes. A vehicle with a permanent DTC fails the emissions test even if Mode 03 shows no stored codes.

I note Mode 0A support in my budget OBD2 scanner picks wherever a manufacturer lists it.

How Codes Transition Between States

The transition between code states follows a specific logic. On first detection of a fault condition, the ECM stores a pending code. If the fault recurs on a subsequent qualifying drive cycle, the pending code becomes a stored code, the MIL illuminates, and a permanent code is written simultaneously (on 2010+ vehicles for emission-related faults). If a scanner clears codes using Mode 04, the stored and pending codes are erased and the MIL extinguishes, but the permanent code remains. If the vehicle is repaired and the monitor passes, the permanent code self-clears. If the vehicle is not repaired and the fault recurs, the stored code returns and the MIL re-illuminates.

On vehicles where the fault is intermittent and disappears between drive cycles, the ECM self-monitors after 40 to 80 consecutive warm-up cycles with no fault recurrence: the stored code becomes a history code (visible in history but flagged as non-current), and eventually the history code is purged. The permanent code self-clears on a different schedule: it remains until the monitor specifically passes, not just until a fixed number of clean drive cycles.

I explain how to track a code that keeps returning in my guide to diagnosing an intermittent check engine light.

Practical Implications

Professional scan tool showing a confirmed P0420 stored fault code with associated freeze frame data beside a truck.

For emissions testing: check Mode 0A (permanent codes) in addition to Mode 03 (stored codes) before presenting a vehicle for testing. A clean Mode 03 result after clearing codes does not guarantee a clean permanent code status. If permanent codes are present, the vehicle needs the underlying fault repaired and the monitor completed before passing inspection.

If you are shopping for a reader with Mode 0A support, my OBD2 scanner roundup compares every category.

For pre-purchase inspections: read Mode 07 (pending codes) in addition to Mode 03. A clean Mode 03 with pending codes in Mode 07 indicates a fault in early development that has not yet triggered the MIL. This is evidence of a developing issue that the seller may not have disclosed.

If you inspect cars with a phone, my top iPhone OBD2 scanner picks lists the adapters that read pending codes.

For post-repair verification: after repairing a fault, confirm the permanent code has cleared using Mode 0A in addition to verifying no stored codes return. A permanent code that persists after repair indicates the monitor has not yet run and passed. Continue the drive cycle verification before declaring the repair complete.

I cover the full verification routine in my guide to how to verify an OBD2 repair.

Emissions-Only vs Non-Emissions Code Behavior

Mechanic reviewing a permanent P0420 diagnostic trouble code using a connected scan tool in a repair bay.

The pending, stored, and permanent code framework described above applies specifically to emission-related OBD2 codes: the P0xxx codes that the OBD2 standard mandates for emission system monitoring. The permanent code requirement (Mode 0A) applies exclusively to emission-related DTCs. B codes, C codes, U codes, and manufacturer-specific P1xxx codes do not have mandatory permanent code status under the OBD2 standard: they can be cleared with a standard code clear and do not persist through clears in the same way P0xxx permanent codes do.

Non-emission codes in body and chassis modules also have their own stored and history states within those modules, but the definition of detection threshold, self-clearing criteria, and whether a code is active versus historical is determined by the module manufacturer’s design rather than by an OBD2 standard. A BCM might store a B-code after a single detection event and keep it indefinitely until explicitly cleared. An ABS module might auto-clear a C-code for a sensor fault that only occurred once after 10 successful consecutive drive cycles. These behaviors vary by make and model and are documented in the manufacturer’s service manuals rather than in a universal standard.

My ABS and SRS scanner picks lists tools that read the non-emission modules.

This distinction matters when planning a diagnostic session. For emission codes, treat any P0xxx code that returns after clearing as an active fault requiring repair, because the ECM will restore the code and the permanent code within the same drive cycle that the fault recurs. For non-emission codes in body and chassis modules, a code that does not return after clearing may indicate a genuinely resolved condition (a sensor that reconnected, a voltage spike that passed, a one-time event) rather than an unresolved fault that should be investigated further. Clearing non-emission codes and monitoring for return is a valid diagnostic step in a way that it is not for emission codes with permanent code requirements.

Tools that read every module’s history are in my professional OBD2 scanner guide.

FAQs

Can disconnecting the battery clear a permanent code?

No. Permanent codes are stored in non-volatile memory that retains data regardless of power loss. Disconnecting the battery clears the ECM’s RAM (volatile data like long-term fuel trim adaptations and short-term drive cycle data), but permanent codes survive battery disconnection. This is specifically by design: permanent codes exist to prevent battery disconnection as a method of clearing emission-related faults before inspection.

My scanner shows a code as “history.” What does that mean?

A history code (also called a historical code, past code, or inactive code on different scanners) is a stored code that was present at some point but whose fault condition was not detected on the most recent drive cycle. It has not self-cleared yet but it is not actively detecting a fault. An intermittent fault that occurs occasionally will appear as history between occurrences and as active when it occurs. A code that appears as history and never recurs across many drive cycles is likely from a one-time event that resolved itself.

How many stored codes can the ECM hold at one time?

The OBD2 standard requires the ECM to hold at least one current stored DTC with freeze frame data. In practice, modern ECMs typically store between 10 and 40 stored codes simultaneously, each with its own freeze frame data. When the storage capacity is exceeded, older codes are overwritten by newer ones, though some ECMs prioritize keeping the most severe codes and overwrite lower-priority historical codes first. High-mileage vehicles with multiple unresolved faults over time may have some older codes overwritten before they are investigated.

Scroll to Top