THE MOTOR ATLAS GUIDE

How to Read a Diagnostic Trouble Code

A trouble code names a system and a fault condition, not a failed part, so read all five characters and the code status before you buy anything.

A decoder card split into four coloured code blocks, each marked with a simple symbol and a bracket, with a magnifying glass examining the last block.

Learn how an OBD-II trouble code is built, what the letter and digits mean, how generic and maker-specific codes differ, and what a code cannot tell you.

Quick answer: A trouble code names a system and a fault condition, not a failed part, so read all five characters and the code status before you buy anything.

How a five-character trouble code is built

A diagnostic trouble code (DTC) is a five-character code: one letter for the vehicle area, then four characters that narrow down the system and the fault. The Maryland Department of the Environment explains this layout in its Decoding DTCs guide. Reading a code means reading each position in order.

The first letter names the area. P is powertrain, C is chassis, B is body and U is network. The Maryland guide also notes that early OBD II codes were a letter plus four numbers. Newer codes can mix letters into the digits, and it gives P042A as an example of that format.

Which cars use these codes? CARB says 1996 and newer gasoline and alternate-fuel cars and trucks must have OBD II. Diesels need it from the 1997 model year. You can look for the words “OBD II” on the emission control label under the hood.

Generic or manufacturer-specific: the second character

The second character tells you who defined the code. In the Maryland guide, 0 and 2 mean an SAE generic code. A 1 means manufacturer specific. A 3 can be either, depending on the code.

Generic codes have standard definitions from SAE, and manufacturers agreed to use them. Maryland still warns that some manufacturers vary from those definitions, so verify the code for your vehicle.

California’s OBD rules follow the same split. Title 13 section 1968.2 says manufacturers must use SAE-defined codes, such as P0xxx and P2xxx, whenever possible. Manufacturer-defined codes, such as P1xxx, need approval from California regulators.

Delaware’s DMV adds a caution. Its generic list may not apply to every vehicle, and foreign vehicles may use different codes. It tells motorists not to depend on the list for repairs until they confirm the codes apply.

What each position tells you

The table below summarizes the Maryland guide. It covers the structure only, not any single code.

Position What it identifies Values the guide lists
1st (letter) Vehicle area P powertrain, C chassis, B body, U network
2nd Code type 0 and 2 SAE generic, 1 manufacturer specific, 3 either
3rd System 1 and 2 fuel and air metering, 3 ignition or misfire, 4 auxiliary emission controls, 5 speed and idle control, 6 computer, 7 to 9 transmission, A hybrid propulsion
4th and 5th The specific fault in that system Look up in service information

Read the third character as a pointer to a system, not a diagnosis. A code in the ignition or misfire group says where the computer saw a problem. It does not say which coil, plug, wire or injector is at fault.

The U group covers vehicle networks. Maryland lists U00XX as network electrical, U01XX and U02XX as network communication, U03XX as network software and U04XX as network data.

Pending, confirmed and permanent: the status behind the code

A code also has a status, and a good scan shows it. California’s rules define three.

  • Pending: stored when a malfunction is first detected, typically in one driving cycle, before the light comes on.
  • Confirmed: stored when the system confirms the malfunction, typically on the second driving cycle where it is detected. The light comes on.
  • Permanent: a confirmed code kept in non-volatile memory that a scan tool cannot simply erase.

The same regulation requires “freeze frame” data. It records conditions at the moment the malfunction was detected, including the fault code. The technician reads it through the standard connector.

A pending code with the light off means the car has noticed something once. For the difference between a steady and a flashing lamp, see Flashing vs Steady Check Engine Light.

What a code does not tell you

California’s rule says the stored code should, “to the fullest extent possible, pinpoint the likely cause.” Note the words “likely cause.” A code narrows the search. It does not replace testing.

Use this order instead:

  1. Write down every code, its status and whether the light is steady or flashing.
  2. Note the freeze frame data if the scan tool shows it.
  3. Find the code in the manufacturer’s service information for your exact model year.
  4. Test the circuit or system before replacing a part.

If you are not comfortable with those tests, hand the car and your notes to a shop. Ask what evidence supports the repair, as described in What to Ask a Mechanic Before Approving Repairs. More step-by-step guides are in the DIY Car Repair hub.

Frequently asked questions

Does a P code always mean an engine problem?

P stands for powertrain, and the Maryland guide’s system list includes fuel, air, ignition, emission controls and transmission. So a P code can involve the engine or the transmission. The letter alone does not say which one.

Is a generic code the same on every car?

The definition is standardized by SAE, and manufacturers agreed to use it. Maryland still warns that some vary, and Delaware says its generic list may not apply to every vehicle. Confirm the meaning in your vehicle’s service information.

Do all cars have these codes?

Not all of them. CARB says 1996 and newer gasoline and alternate-fuel vehicles must have OBD II, and diesels need it from 1997. EPA’s inspection overview also says OBD computer systems began with the 1996 model year.

Can I just search the code online and replace the part?

That is risky. A code points to a system or condition, and Delaware warns against relying on generic lists for repairs. Confirm the diagnosis with manufacturer service information or a qualified technician before you spend money.

How this guide was prepared: Researched explanatory guidance using the sources linked on this page. We have not road-tested a vehicle or completed a hands-on inspection for this article. The displayed byline is a fictional editorial persona, not a real individual author or certified technician reviewer. Motor Atlas is responsible for this content. Confirm vehicle-specific procedures with the manufacturer, and ask an appropriate professional before safety-critical repairs, legal filings or financial decisions.

Related reading