Diagnostic trouble code (DTC)

DTCfault codetrouble codecheck engine codeOBD code

A diagnostic trouble code is a standardized five-character fault identifier that a vehicle's control modules store when on-board diagnostics detect a problem. The format, defined by SAE J2012, gives the system, whether the code is generic or manufacturer-specific, the subsystem and the specific fault, such as P0301 for a cylinder 1 misfire.123

How it works

The first character names the system

P for powertrain, C for chassis, B for body and U for network communication. The second digit separates codes defined by SAE, which mostly start with 0, from manufacturer-specific codes, which commonly start with 1. The remaining characters identify the subsystem and fault.Medium12

In generic powertrain codes, the third character groups faults by area: fuel and air metering, ignition and misfire, auxiliary emissions controls, speed and idle control, computer and output circuits, and transmission. P0300 means random misfire, while P0301 to P0312 name the misfiring cylinder.Medium21

Codes have states. A pending code records a fault seen once that has not yet been confirmed; a confirmed code typically lights the malfunction indicator lamp. Permanent codes, required by US OBD rules, cannot be erased with a scan tool and clear only after the monitor passes on its own.Medium453

In tuning

A code tells you which test failed, not what part failed.

A lean code can come from a vacuum leak, weak fuel pump, wrong injector data or a sensor calibration error. Check freeze frame data and logged values before replacing parts.Medium23

Clearing codes also resets readiness monitors, and many inspection programs reject a vehicle with incomplete monitors. On emissions-controlled road vehicles, disabling diagnostics to hide codes can be illegal tampering under US rules.Medium46

Myths vs facts

Myth The code tells you which part to replace.

Fact It identifies the failed diagnostic test or circuit condition. Several different faults can set the same code, so diagnosis still needs measurements and logged data.Medium21

Myth Clearing a code fixes the problem.

Fact Clearing only erases the stored record and turns off the lamp. If the fault remains, the code returns once the diagnostic runs again, and permanent codes stay until the monitor passes.Medium43

Frequently asked

What is the difference between P0 and P1 codes?

P0 codes are generic powertrain codes defined by SAE J2012, so they mean the same thing on every compliant vehicle. P1 codes are manufacturer-specific, so the same number can mean different faults on different makes. Look up P1 codes in the manufacturer's service information.Medium12

What is a pending DTC?

A pending code means a monitor detected a fault on one drive cycle but has not yet confirmed it. If the fault repeats, it typically becomes a confirmed code and lights the malfunction lamp. Pending codes are useful early warnings and can be read with a scan tool before the lamp comes on.Medium34

Why won't my car pass inspection after clearing codes?

Clearing codes resets the readiness monitors, the self-tests that confirm emissions systems were checked. Until the car completes enough driving for each monitor to run again, it reports them as not ready, and many inspection programs reject vehicles with incomplete monitors. Permanent codes also remain until the fault is repaired and verified.Medium45

What does the P in P0300 mean?

P stands for powertrain, covering the engine, transmission and related emissions systems. The other system letters are B for body, C for chassis and U for network. In P0300, the 0 marks a generic SAE code, the 3 the ignition and misfire group, and 00 random or multiple-cylinder misfire.Medium12

Used in these guides

Sources

Numbered as cited above. Hover or tap a citation chip to preview it.

  1. SAE J2012: Diagnostic Trouble Code Definitions · SAE International · standard · retrieved 2026-10-27
  2. On-board diagnostics · Wikipedia · reference · retrieved 2026-10-27
  3. SAE J1979: E/E Diagnostic Test Modes · SAE International · standard · retrieved 2026-10-27
  4. 40 CFR 86.1806-05: On-board diagnostics · US Electronic Code of Federal Regulations · standard · retrieved 2026-10-27
  5. On-Board Diagnostic (OBD) program · California Air Resources Board · reference · retrieved 2026-10-27
  6. Tampering and Aftermarket Defeat Devices enforcement alert (December 2020) · U.S. Environmental Protection Agency · reference · retrieved 2026-10-27