An OBD-II trouble code is five characters: a letter for the system (P powertrain, C chassis, B body, U network), a digit 0 to 3 that says whether SAE or the vehicle maker defined it, and three hexadecimal characters for the area and the fault. P0171, for example, is SAE’s generic code for System Too Lean Bank 1. Every gasoline car and light truck sold in the US from model year 1996 (diesels from 1997) carries the system, and it turns on the check-engine light when it confirms a fault on a second driving cycle.
Look up any code with the OBD-II Code Lookup, which uses the same list of 3,502 generic definitions as the tables below, and identify the exact vehicle with the VIN Decoder.
What OBD-II is
OBD II (On-Board Diagnostics, second generation) is software and hardware in the vehicle’s computers that checks nearly every part that can affect emissions. The California Air Resources Board (CARB) introduced it after its first rule, OBD I, required from the 1988 model year, proved limited: it checked few components and its monitors were not tied to emission levels. OBD II is required on all 1996 and newer gasoline and alternative-fuel passenger cars and trucks and on 1997 and newer diesels; a few 1994 and 1995 gasoline models already had it. The US EPA requires OBD on all 1996 and newer cars and trucks in every state and accepts systems built to California’s rule, so in practice nearly every US vehicle is built to it. Europe followed with EOBD for petrol cars from 1 January 2001 and diesel cars from 1 January 2004.
When a test fails, the system stores a diagnostic trouble code (DTC) and, for emission-related faults, lights the malfunction indicator lamp, usually labelled “Check Engine” or “Service Engine Soon” with an engine symbol. Every vehicle uses the same 16-pin SAE J1962 connector, so one scan tool reads them all.
Reading a trouble code
Take P0301, Cylinder 1 Misfire Detected:
| Character | In P0301 | Meaning |
|---|---|---|
| 1st: system | P | P powertrain, C chassis, B body, U network |
| 2nd: who defines it | 0 | SAE-defined generic code (P1 would be the maker’s own) |
| 3rd: area | 3 | Ignition system or misfire |
| 4th and 5th: fault | 01 | Cylinder 1 |
The second character matters most when you search for a meaning. Generic codes mean the same on every make; manufacturer codes do not, and only the maker’s service information defines them. The ELM327 adapter datasheet gives the full split, and the right-hand column counts the generic codes in this site’s list:
| Code starts | System | First hex digit sent | Defined by | Generic codes in this list |
|---|---|---|---|---|
P0xxx | Powertrain | 0 | SAE-defined (generic) | 1,461 |
P1xxx | Powertrain | 1 | Manufacturer-defined | — |
P2xxx | Powertrain | 2 | SAE-defined (generic) | 867 |
P3xxx | Powertrain | 3 | Jointly defined: the published generic list starts at P3400 | 98 |
C0xxx | Chassis | 4 | SAE-defined (generic) | 261 |
C1xxx | Chassis | 5 | Manufacturer-defined | — |
C2xxx | Chassis | 6 | Manufacturer-defined | — |
C3xxx | Chassis | 7 | Reserved for future use | — |
B0xxx | Body | 8 | SAE-defined (generic) | 359 |
B1xxx | Body | 9 | Manufacturer-defined | — |
B2xxx | Body | A | Manufacturer-defined | — |
B3xxx | Body | B | Reserved for future use | — |
U0xxx | Network | C | SAE-defined (generic) | 438 |
U1xxx | Network | D | Manufacturer-defined | — |
U2xxx | Network | E | Manufacturer-defined | — |
U3xxx | Network | F | Reserved in the ELM327 table; later J2012 lists define U3000 up | 18 |
For P0 codes the third character names the system area, following the SAE J2012 grouping:
| Codes | Third character | Area (SAE J2012 grouping) | Generic codes listed | Example |
|---|---|---|---|---|
P0000–P00FF | 0 | Fuel and air metering and auxiliary emission controls | 114 | P0001 Fuel Volume Regulator Control Circuit/Open |
P0100–P01FF | 1 | Fuel and air metering | 117 | P0100 Mass or Volume Air Flow A Circuit |
P0200–P02FF | 2 | Fuel and air metering (injector circuit) | 133 | P0200 Injector Circuit/Open |
P0300–P03FF | 3 | Ignition system or misfire | 94 | P0300 Random/Multiple Cylinder Misfire Detected |
P0400–P04FF | 4 | Auxiliary emission controls | 128 | P0400 Exhaust Gas Recirculation Flow |
P0500–P05FF | 5 | Vehicle speed control, idle control and auxiliary inputs | 109 | P0500 Vehicle Speed Sensor A |
P0600–P06FF | 6 | Computer and output circuits | 148 | P0600 Serial Communication Link |
P0700–P07FF | 7 | Transmission | 123 | P0700 Transmission Control System (MIL Request) |
P0800–P08FF | 8 | Transmission | 123 | P0800 Transfer Case Control System (MIL Request) |
P0900–P09FF | 9 | Transmission | 106 | P0900 Clutch Actuator Circuit/Open |
P0A00–P0AFF | A | Hybrid propulsion | 252 | P0A00 Motor Electronics Coolant Temperature Sensor Circuit |
P0B00–P0BFF | B | Hybrid propulsion | 14 | P0B00 Auxiliary Transmission Fluid Pump Motor Phase U Current |
One sensor usually owns a run of codes that differ only in their last words, which describe the kind of fault seen on that circuit: P0110 Intake Air Temperature Sensor 1 Circuit, P0111 Intake Air Temperature Sensor 1 Circuit Range/Performance, P0112 Intake Air Temperature Sensor 1 Circuit Low, P0113 Intake Air Temperature Sensor 1 Circuit High and P0114 Intake Air Temperature Sensor 1 Circuit Intermittent.
How the code travels: two bytes
The car does not send the letters. A scan tool receives each code as two bytes: the top two bits of the first byte are the system (00 P, 01 C, 10 B, 11 U), the next two bits the second character, the low four bits the third character, and the second byte the last two characters. P0171 is sent as 01 71, U0100 as C1 00. In the ELM327 datasheet’s example a Mode 03 request returns 43 01 33 00 00 00 00: 43 marks the reply, 01 33 is P0133 (O2 Sensor Circuit Slow Response Bank 1 Sensor 1), and the 00 00 pairs are padding. A raw D0 16 is not “D016”: D is binary 1101, so it is U1016, a manufacturer-defined network code. Vehicles using the newer SAE J1979-2 protocol report 3-byte codes, the two bytes plus a failure-type byte.
Pending, confirmed and permanent codes
California’s OBD II regulation (13 CCR 1968.2), which the federal rule 40 CFR 86.1806-17 adopts, sets out how a code matures:
| Code type | When it is stored | How it goes away |
|---|---|---|
| Pending | Within 10 seconds of the first detection of a fault | Erased at the end of the next driving cycle in which the test runs without seeing the fault |
| Confirmed | Within 10 seconds when the fault is detected again before the end of the next driving cycle in which the test runs; the light comes on | The light goes off after 3 consecutive driving cycles without the fault; the code may be erased after 40 warm-up cycles without it (2019 and later: no sooner than 40, no later than 41) |
| Permanent | By the end of the ignition cycle in which a confirmed code turned the light on (phased in 50 % 2010, 75 % 2011, 100 % 2012 model year) | Only when the system itself finds the fault gone and stops commanding the light on. No scan-tool command and no battery disconnect erases it |
The system must hold at least 4 permanent codes. Pending codes have been readable with Mode 07 since the 2005 model year, and permanent codes with Mode 0A.
Freeze frame: the snapshot
When a code is stored, the computer also stores a freeze frame: the conditions at that moment. The regulation lists what it must include, among them calculated load, engine coolant temperature, engine speed, vehicle speed and, where fitted, fuel system status, short- and long-term fuel trim, fuel pressure, ignition timing advance, intake air temperature, manifold absolute pressure and mass air flow. A lean code that sets only at idle, or only at full load, points to different causes, so read the freeze frame before you clear anything.
Readiness monitors and inspections
The system also reports whether each self-test has run since the codes were last cleared. CARB’s fact sheet explains that an inspection fails a car when too many of these readiness indicators are “incomplete”, which happens after codes are cleared or the battery is disconnected or replaced, and suggests driving normally for about a week to set them. In California, Smog Check for 2000 and newer vehicles is based mainly on the OBD II inspection, and a fault currently lighting the lamp must be repaired before the car passes.
Why clearing a code isn’t fixing it
The ELM327 datasheet lists what a Mode 04 clear does: it resets the number of codes, erases the codes, the freeze frame and the code that caused it, the oxygen-sensor test data and the Mode 06 and 07 results, and it does not erase permanent codes. So clearing throws away the evidence and resets readiness, while a fault that is still there comes back. The order that works: read the code and the freeze frame, find and repair the cause, then clear and confirm the light stays off.
What a code does not tell you
The regulation asks for a code “indicating the likely area of the malfunction”, and since 2005 for a separate code wherever the diagnosis or likely cause differs. A code therefore names a circuit or a condition, not a failed part. P0301 says cylinder 1 is misfiring, not whether the plug, coil, injector, wiring or the engine itself is at fault; P0171 says bank 1 runs lean, not where the extra air or missing fuel comes from; Catalyst System Efficiency Below Threshold Bank 1 (P0420) says the computer’s test of the catalyst fell short, which a failing converter or a faulty sensor reading can both cause. Test the named circuit before replacing anything.
Selected generic codes by system
A sample of the generic list, by system; the OBD-II Code Lookup searches all 3,502.
| Code | SAE J2012 definition |
|---|---|
P0101 | Mass or Volume Air Flow A Circuit Range/Performance |
P0113 | Intake Air Temperature Sensor 1 Circuit High |
P0128 | Coolant Thermostat (Coolant Temperature Below Thermostat Regulating Temperature) |
P0133 | O2 Sensor Circuit Slow Response Bank 1 Sensor 1 |
P0171 | System Too Lean Bank 1 |
P0172 | System Too Rich Bank 1 |
P0174 | System Too Lean Bank 2 |
P0300 | Random/Multiple Cylinder Misfire Detected |
P0301 | Cylinder 1 Misfire Detected |
P0335 | Crankshaft Position Sensor A Circuit |
P0340 | Camshaft Position Sensor A Circuit Bank 1 or Single Sensor |
P0401 | Exhaust Gas Recirculation Flow Insufficient Detected |
P0420 | Catalyst System Efficiency Below Threshold Bank 1 |
P0430 | Catalyst System Efficiency Below Threshold Bank 2 |
P0442 | Evaporative Emission System Leak Detected (small leak) |
P0455 | Evaporative Emission System Leak Detected (large leak) |
P0456 | Evaporative Emission System Leak Detected (very small leak) |
P0457 | Evaporative Emission System Leak Detected (fuel cap loose/off) |
P0500 | Vehicle Speed Sensor A |
P0505 | Idle Air Control System |
P0562 | System Voltage Low |
P0700 | Transmission Control System (MIL Request) |
P2096 | Post Catalyst Fuel Trim System Too Lean Bank 1 |
P2187 | System Too Lean at Idle Bank 1 |
P0A80 | Replace Hybrid Battery Pack |
U0100 | Lost Communication With ECM/PCM A |
U0121 | Lost Communication With Anti-Lock Brake System (ABS) Control Module |
B0001 | Driver Frontal Stage 1 Deployment Control |
C0031 | Left Front Wheel Speed Sensor |
P0456 is also named in 40 CFR 86.1806-17 as a code for the very small EVAP leak that 2017 and later vehicles must detect: an opening of 0.020 inch (0.51 mm).
In practice
Read the code and the freeze frame, look the code up to see which circuit or condition it names, test that circuit, repair, and only then clear the code and watch for it over the next few drives. Decode any code with the OBD-II Code Lookup, confirm the exact vehicle with the VIN Decoder, and see how the engine behind the codes works in How a Car Engine Makes Power.
Sources
- SAE J2012 Diagnostic Trouble Code Definitions — SAE International, 2002–2019 revisions. The standard that defines the codes. It is sold by SAE; the wording here is as reproduced in the two open code tables below. www.sae.org/standards/content/j2012_201912/
- AndrOBD code table (codes.properties) — AndrOBD open-source project, GitHub, 2026. Source of 3,500 of the definitions, after removing reserved entries and fixing spacing typos. Licensed GPL-3.0 — the definitions (and this site's data file built from them, /assets/data/obd-codes.json) are redistributed under the same licence. github.com/fr3ts0n/AndrOBD
- python-OBD code table (obd/codes.py) — python-OBD open-source project, GitHub, 2026. Cross-check: it carries 2,025 of the same codes with the same meaning; the other differences are later J2012 revisions adding bank and sensor numbers or filling codes that were reserved. github.com/brendan-w/python-OBD
- ELM327 OBD to RS232 Interpreter datasheet, “Interpreting Trouble Codes” — Elm Electronics, 2014. How the five characters are packed into two bytes, which first digits are SAE- or manufacturer-defined, and what a Mode 04 clear erases. www.elmelectronics.com/wp-content/uploads/2016/07/ELM327DS.pdf
- California Code of Regulations, Title 13, §1968.2, Malfunction and Diagnostic System Requirements (OBD II) — California Air Resources Board, current text. Pending, confirmed and permanent fault codes; when the light comes on, blinks and goes off; codes that point to the likely area of the malfunction. www.law.cornell.edu/regulations/california/13-CCR-1968.2
- 40 CFR 86.1806-17, Onboard diagnostics — US EPA, Electronic Code of Federal Regulations, 2026. Adopts the California rule federally; names P0456, P04EE and P04EF as very-small (0.020 inch) EVAP leak codes; P04EE and P04EF are listed from it because the open tables predate them. www.ecfr.gov/current/title-40/part-86/section-86.1806-17
- On-Board Diagnostic II (OBD II) Systems Fact Sheet — California Air Resources Board, current page. OBD I from 1988; OBD II on all 1996 and newer gasoline cars and trucks (1997 diesel); the blinking light; readiness. ww2.arb.ca.gov/resources/fact-sheets/board-diagnostic-ii-obd-ii-systems-fact-sheet
- On-board diagnostics: OBD-II diagnostic trouble codes — Wikipedia, 2026. Third-character system groups for P0 codes (citing SAE J2012) and the EOBD start dates (citing Directive 98/69/EC). en.wikipedia.org/wiki/On-board_diagnostics
Frequently asked questions
What does the check-engine light actually mean?
The OBD II system has confirmed a fault that affects emissions or its own ability to monitor them. Under California’s OBD II rule, which the US EPA adopts, the computer stores a pending code the first time it detects a fault and turns the light on, with a confirmed code, if it detects it again before the end of the next driving cycle in which the test runs.
What does a code like P0301 mean?
P is powertrain, 0 means an SAE-defined generic code, and 3 is the ignition and misfire group. SAE J2012 defines P0301 as Cylinder 1 Misfire Detected; P0302 to P0312 are cylinders 2 to 12 and P0300 is Random/Multiple Cylinder Misfire Detected. The code says where the misfire is, not which part caused it.
Does clearing a code fix the problem?
No. Clearing (Mode 04) erases the stored codes, freeze-frame data and test results and turns the light off, but not permanent codes, and it resets the readiness monitors. If the fault is still there the computer detects it again and the light comes back. Clear codes only after a repair, to confirm it held.
Why is my code pending and the light still off?
A pending code is stored on the first detection. If the fault is seen again before the end of the next driving cycle in which that test runs, it becomes a confirmed code and the light comes on; if not, the pending code is erased at the end of that cycle.
Why is the check-engine light flashing?
A blinking light means misfire bad enough to damage the catalytic converter is happening now; the regulation requires the light to blink once per second while it occurs. The California Air Resources Board notes many makers recommend having the car serviced as soon as possible when the light blinks.