HomeTrouble CodesC0040

C0040 — Brake Pedal Switch

Generic OBD-II · all makesChassis

Code C0040 indicates a problem with the brake pedal switch circuit, typically meaning the powertrain control module (PCM) has detected an incorrect or missing signal from the brake pedal position sensor or switch. This code is common in vehicles with electronic brake light controls or stop-start systems.

Symptoms

What causes it — most likely first

1. Faulty brake pedal switch

The switch itself is the most common failure. It may stick, fail internally, or have worn contacts causing an open or shorted circuit.

2. Misadjusted brake pedal switch

If the switch is not properly positioned relative to the brake pedal arm, it may not actuate correctly, leading to a continuous or missing signal.

3. Damaged wiring or connector

Corrosion, broken wires, or loose pins in the switch harness can interrupt the signal. This is especially common in older vehicles or those exposed to moisture.

4. Blown fuse or relay

A blown fuse in the brake light circuit or a faulty relay can cause the switch to appear inoperative to the PCM.

5. PCM/ECM software or hardware failure

Rarely, the PCM itself may have an internal fault or corrupted software that misinterprets the switch signal. This is the least likely cause and should only be considered after all other possibilities are exhausted.

How it's diagnosed

  1. Verify the brake lights operate correctly with the pedal pressed and released.
  2. Inspect the brake pedal switch for physical damage, proper mounting, and correct adjustment.
  3. Test the switch with a multimeter for continuity and proper voltage supply (typically 12V on one terminal, ground on the other).
  4. Check the wiring and connector between the switch and PCM for opens, shorts, or corrosion.
  5. If all else is normal, use a scan tool to monitor the brake pedal switch signal while pressing the pedal; if the signal is erratic or missing, replace the switch.

Code facts & related codes

SystemChassis
StandardizationSAE generic — identical on every make

Frequently asked

Can a bad brake pedal switch cause the engine not to start?

Yes, many vehicles require the brake pedal to be depressed to start the engine. If the switch fails, the PCM may not receive the 'brake applied' signal, preventing the starter from engaging.

Do I need to replace the PCM for code C0040?

Almost never. The PCM is rarely the cause of a brake pedal switch code. The switch itself, its wiring, or its adjustment is the culprit in the vast majority of cases. Only consider PCM replacement after thorough diagnosis of all other components.

Can I drive with a C0040 code?

It depends. If the brake lights are stuck on, you may drain the battery or confuse other drivers. If they don't work at all, it is unsafe. Additionally, cruise control and shift interlock may not function. It is best to repair the issue promptly.

Is the brake pedal switch the same as the brake light switch?

In most vehicles, yes. The brake pedal switch (or stop lamp switch) serves both the brake lights and the signal to the PCM. Some vehicles have a separate sensor for the PCM, but the code C0040 typically refers to the main switch.