DOBD DashX ☰ Browse all codes Blog For business
C0040

Brake Pedal Switch A (Subfault)

Generic OBD-II

What it means

A module (typically ABS or the engine computer) is reporting a problem with the brake pedal switch A signal, the switch that tells the car the brake pedal is pressed. A failure type is stored with it as a "subfault".

Can I keep driving? Use caution: this switch commonly feeds the brake lights, and a fault can leave them stuck on or off, so check them before driving.

Seen in 2,603 scans on our apps in the past year, about 1 in 244 (0.4% of all scans, 0.7% of scans with any fault). In scans that have C0040, these also appear: C0031 (Left Front Wheel Speed Sensor (Subfault)) 62.0%; C0037 (Left Rear Wheel Speed Sensor (Subfault)) 61.7%; C0034 (Right Front Wheel Speed Sensor (Subfault)) 61.7%. Inference: this code appears with the wheel-speed cluster in a majority of scans. In those cases a shared module-level event (power, ground, module or network) is more likely than a failed pedal switch. When C0040 appears alone, the switch itself is the better suspect.

What this part does

The brake pedal switch is a simple switch at the top of the pedal that tells the car when the pedal is being pressed. It turns on the brake lights and tells the engine computer and cruise control to cancel. On some cars it also allows the key to leave park or the engine to start. A fault may cause brake lights to stay on or fail to light.

Real-world scan data

Seen in
2,603
scans in the past year
Found in
0.4%
of scans

Appears alongside · share of C0040 scans

C0031in 62.0% of scans
C0037in 61.7% of scans
C0034in 61.7% of scans

Codes often seen with C0040. Of the 2,603 scans on our apps that reported C0040 in the past year, 62.0% also showed C0031 (Left Front Wheel Speed Sensor (Subfault)), 61.7% showed C0037 (Left Rear Wheel Speed Sensor (Subfault)) and 61.7% showed C0034 (Right Front Wheel Speed Sensor (Subfault)). If your scan shows any of these too, read their pages as well, because one fault can trigger another.

Read & clear C0040 yourself

Scan your car, confirm the code, and clear it once it's fixed — with OBD DashX on your phone.

▶ Get it on Google Play
Point your phone camera here

Need a scanner that reads ABS, airbag and more? GaragePro OBD scan tools ship worldwide. Claim deal →

Common symptoms

What you'll notice

Common causes

Most likely first

  1. Misadjusted or worn brake pedal switch
  2. Faulty switch
  3. Wiring or connector fault at the pedal
  4. Blown brake-light fuse
  5. Module or power/ground fault

Repair

Likely repair

How to diagnose & fix

Work through it in order

  1. Have someone confirm the brake lights come on and go off with the pedal.
  2. Read all codes with an ABS-capable scanner, including the subfault type.
  3. Watch the brake switch status in live data while pressing the pedal.
  4. Check the switch adjustment, connector and fuse.
  5. Replace the switch only if it fails these checks.

Related codes

About this page

Scan figures come only from diagnostic scans recorded through our own apps and tools. Cars are usually scanned because a symptom or warning light prompted it, so these figures describe our scan records, not how often a fault occurs in any make or model.

Notes about specific manufacturers summarise public records (NHTSA owner complaints, recalls and manufacturer service bulletins), cited under each note. They report what those records say, not our measurements, and they do not suggest that any manufacturer or vehicle is better or worse than another.

Repair time and cost estimates come from a public repair dataset and are typical ranges, not quotes.

OBD DashX is not affiliated with, sponsored by or endorsed by any vehicle manufacturer. Manufacturer and model names and trademarks belong to their owners and are used only to identify vehicles.

This page is general information, not professional advice. Have safety-critical faults (brakes, steering, airbags, high-voltage systems) checked by a qualified technician. To the extent the law allows, we accept no liability for repairs or decisions made from this page.

Businesses: this content is available through our API. For business →