Skip to content

C0040 – Brake Pedal Switch A (OBD2)

C0040 means "Brake Pedal Switch A". The brake pedal switch tells the control units when you brake – for the brake lights, cruise control, start-stop, automatic gearbox lock-up and drive-by-wire safety; these codes mean its signals are faulty or do not agree.

Last updated

C0040 quick summary

Fault codeC0040
MeaningBrake Pedal Switch A
SystemChassis
VehiclesGeneric OBD2
SeverityMedium
Can I drive?Yes, but check your brake lights immediately – driving without working brake lights is dangerous and illegal.
Repair cost€10 – €150

How the brake pedal switch is monitored

Most modern cars have a brake switch with two contacts (A and B) or a Hall-type brake pedal sensor. One contact switches the brake lights, the other tells the engine and gearbox control units that the brake is pressed. The control unit checks that both always change together.

Codes report that the two signals disagree (P0504), that the switch circuit is low or high, or that the torque converter/brake switch B circuit is faulty (P0703, P0719, P0724). A faulty brake switch can disable cruise control, stop the gear selector from leaving Park, prevent the engine from starting (push-button start) and cause brake lights that stay on or do not work.

The switch is a cheap wear part; incorrect adjustment after replacement is a common reason for codes returning.

C0040 is a chassis code in the standard (SAE) numbering. Some manufacturers – for example GM, Opel and Ford on certain models – use their own meanings for some C codes, so always check the text your scan tool shows for your vehicle.

Symptoms of C0040

  • Brake lights stay on or do not work
  • Cruise control does not work or switches off
  • Gear selector stuck in Park
  • Engine does not start with push-button start
  • Check Engine or ESP light on

Most common causes of C0040 (most likely first)

Mechanic's Pro Tip

When fitting a new brake switch, follow the exact adjustment procedure – many switches self-adjust only if the pedal is held in the right position while clicking the switch in. A wrongly set switch brings the code straight back.

  1. 1.Worn or failed brake pedal switch

    Most likely
  2. 2.Incorrectly adjusted switch

    Common after replacement or pedal work.

  3. 3.Broken pedal stop rubber

    The switch plunger is not pressed correctly.

  4. 4.Blown brake light fuse or bulb fault

  5. 5.Wiring or connector fault

Step-by-step diagnostic guide

  1. 1

    Check the brake lights

    Have someone check the brake lights while you press the pedal.

  2. 2

    Read codes and switch status

    Read the codes and watch both brake switch signals in live data while pressing and releasing the pedal – they must change together.

  3. 3

    Check switch position

    Check the switch adjustment and the rubber pedal stop.

  4. 4

    Measure the contacts

    Check the two contacts with a multimeter.

    Multimeter: One contact is normally open and the other normally closed; they must change state within the first few millimetres of pedal travel.

  5. 5

    Replace and adjust

    Replace the switch and adjust it according to the manufacturer's instructions, then clear codes.

How do I read fault codes? →Where the OBD2 port is, which scanner to use and how to read and clear codes step by step.

Frequently asked questions

Can I keep driving with C0040?

Yes, but check your brake lights immediately – driving without working brake lights is dangerous and illegal.

How much does it cost to fix C0040?

Typical repair costs are 10 € – 150 €, depending on the cause and the vehicle. The most common fixes are: worn or failed brake pedal switch; incorrectly adjusted switch; broken pedal stop rubber. Always confirm the cause with the tests above before buying parts.

Why does cruise control stop working with a brake switch fault?

Cruise control must switch off when you brake. If the control unit cannot trust the brake signal, it disables cruise control for safety.

Is a brake switch expensive?

No, it is one of the cheapest parts – usually a few dozen euros including fitting.

What is the difference between C0040 and similar codes?

C0040 belongs to a group of codes for the same component that differ in the type or location of the fault: C0023 – Stop Lamp Control; C0041 – Brake Pedal Switch B; P0504 – Brake Switch A / B Correlation; P0571 – Cruise Control/Brake Switch A Circuit Malfunction; P0572 – Cruise Control/Brake Switch A Circuit Low; P0573 – Cruise Control/Brake Switch A Circuit High. The tests on this page apply to the whole group; the type of fault tells you where to start.

Related fault codes

This guide is for information only. Working on vehicles can be dangerous — if you are unsure, have the car checked by a qualified mechanic. Values can differ between model years; always check the manufacturer's repair information.