Diagnostics

What Is a Diagnostic Trouble Code?

A diagnostic trouble code, or DTC, is a code stored by a vehicle control module when it detects a fault, failed test or out-of-range condition.

Simple definition

A DTC is a standardized or manufacturer-specific fault code that helps technicians identify which system needs diagnosis.

How DTC formats work

Many generic OBD-II codes start with a letter and four digits. P-codes relate to powertrain, C-codes to chassis, B-codes to body and U-codes to network communication.

A code such as P0301 points to a system and condition. It does not automatically name the failed part.

Pending, stored and permanent codes

A pending code means a fault has been detected but may need confirmation. A stored code has been recorded by the module. Some vehicles also keep permanent codes that remain until the system verifies the issue is fixed.

Different scan tools display these states differently, so the wording matters.

DTCs and warning lights

The check-engine light is the most familiar example, but DTCs can also relate to ABS, airbags, TPMS, ADAS, battery systems, body electronics or communication networks.

Some codes turn on a warning immediately. Others wait for repeated faults or specific operating conditions.

A code is not a diagnosis

A DTC narrows the investigation. It does not prove that a specific sensor or part should be replaced. Wiring faults, low voltage, software updates, mechanical problems and related system failures can trigger similar codes.

Practical owner notes

  • Record codes before clearing them.
  • Check freeze-frame data if the scan tool supports it.
  • Do not ignore flashing warning lights.
  • Use service information for the exact vehicle, not only generic code descriptions.

Sources

CarGlossary note:

Feature names, connector support, diagnostic behavior and EV specifications can vary by model year, trim, software version and market. Always verify the exact vehicle documentation before buying, repairing or relying on a feature.