C0040 — Brake Pedal Switch A (Subfault)
vehicle
Is it safe to drive?
Repair C0040 promptly C0040 can affect brake-light control and the brake-pedal signal used by ABS-related systems. If the brake lamps work normally and C0040 is only a history code, drive cautiously to a repair shop; stop driving if the lamps do not operate, the ABS warning remains on, or the service brake behaves abnormally.
Typical symptoms
- C0040 appears as a stored or pending code in the ABS control module.
- The ABS warning light may illuminate when C0040 is active.
- The brake lamps may fail to illuminate or may behave erratically, depending on how switch A is used.
- Cruise control may refuse to engage or may disengage unexpectedly when the brake-pedal signal changes.
- An automatic transmission may remain in Park or refuse to leave Park on vehicles that use the brake switch for shift authorization.
- C0040 may return when the pedal is pressed slowly, held down, or lightly bounced.
Common causes
- A worn or misadjusted brake pedal switch A may stop confirming full pedal travel and cause C0040 to be stored.
- An internally failed or intermittently opening brake pedal switch can create an erratic signal that triggers the C0040 subfault.
- Corrosion, water intrusion, or a loose terminal at the brake pedal switch connector can interrupt switch A.
- Chafed or damaged wiring near the pedal, hinge, or pedal bracket can create an open circuit or short to power or ground.
- Pedal pad, boot, or trim interference can prevent the switch plunger from moving completely.
- A faulty ABS control-module input can report C0040 even when the brake pedal switch and wiring test normally.
How to diagnose with an OBD scanner
- Read C0040 and live switch data Connect an OBD2 scanner such as ELM327 or AIScanAuto, then review stored and pending codes, freeze-frame data, and live brake-pedal switch status if supported. Confirm whether C0040 is currently active or only historical.
- Check brake-light operation With the parking brake securely set, operate the pedal and verify that all brake lamps illuminate. Watch for lamps that remain on after release or flicker while the pedal is held, and compare that behavior with the scanner's switch status.
- Inspect the pedal and switch Examine the pedal pad, boot, retaining hardware, and switch plunger for excess travel, binding, looseness, or obstruction. Confirm that the switch is mounted and adjusted correctly according to the vehicle's service information.
- Test the switch and its wiring Use the applicable wiring diagram to back-probe the brake pedal switch connector and test the signal for continuity, short-to-ground, and short-to-power conditions. Check both contacts if the switch has multiple circuits, and do not bypass the brake switch with a permanent jumper.
- Repair, clear, and verify C0040 Replace a defective switch, repair damaged terminals or wiring, and restore proper switch adjustment. Clear the code with the scanner, operate the pedal through its full range, and road-test the vehicle before confirming that C0040 does not return. If it does, continue with ABS module input testing.
Approximate repair cost
A typical independent-shop estimate is about $100–$600 for diagnosis and brake pedal switch, connector, or wiring repair. If the ABS control module proves faulty, repair or replacement may cost roughly $700–$1,200. Figures are estimates and vary by region, vehicle, labor rates, and parts availability.
Common questions
What exactly does C0040 identify?
C0040 identifies a fault involving brake pedal switch A or the circuit used to verify its signal. It is more specific than a general ABS trouble code and requires circuit and switch testing.
Can I drive with C0040 stored?
If C0040 is only in history and the brake lamps operate normally, cautious driving to a repair facility is generally reasonable. Do not continue driving if the lamps fail, the ABS warning stays on, or the pedal signal behaves erratically.
Does C0040 mean the brake pads are worn?
No. C0040 points to the brake pedal switch A signal and its subfault monitoring; worn brake pads normally create a different condition. A sticking pedal mechanism can affect the switch, but pad wear itself is not the code's main meaning.
Why does C0040 return after the code is cleared?
C0040 commonly returns when the underlying switch, connector, wiring, or adjustment remains defective. Clearing the code only removes the stored information and does not correct the brake-pedal signal fault.
C0040 — C0040 — Brake Pedal Switch A (Subfault): Causes, Symptoms & Fix
When your scan tool pulls code C0040, the vehicle's anti-lock brake control unit has detected a problem with the brake pedal switch circuit — specifically the primary (A) channel and an associated subfault condition. This isn't a standalone sensor failure; it's a signal integrity issue that the ABS module uses to confirm proper brake pedal position before enabling certain safety functions. The control unit constantly validates this input against other brake system data, and when the signal doesn't match expected parameters across multiple drive cycles, C0040 gets stored and the warning lamp activates.
The brake pedal switch feeds information to multiple systems simultaneously — ABS, electronic stability control, cruise control, and sometimes the brake lights themselves. When C0040 sets, the module essentially loses confidence in one of the brake application signals it relies on. This forces the system to disable ABS and stability interventions, because those features depend on knowing exactly when and how hard you're pressing the brake. The freeze frame captured alongside C0040 records engine RPM, vehicle speed, and brake application status at the moment of failure — valuable data that points you toward the actual root cause rather than just the symptom.
Common Symptoms of C0040
- ABS warning lamp stays illuminated on the instrument cluster
- Electronic stability control unavailable or disabled, often accompanied by a dashboard message
- Loss of anti-lock braking capability during emergency stops
- Cruise control fails to engage or disengages unexpectedly
- Speedometer behaves erratically or shows incorrect readings
- Noticeable change in brake pedal feel or pulsation pattern
What Causes C0040?
- Damaged wiring harness or corroded electrical connector in the brake switch circuit
- Failed brake pedal position switch itself
- Blown fuse or insufficient voltage supply to the ABS module
- Faulty wheel speed sensor affecting upstream validation data
- Damaged or worn tone ring (reluctor) at a wheel hub assembly
- Failed ABS hydraulic unit or internal pump motor fault
How to Diagnose C0040
- Connect a quality OBD2 scanner, retrieve C0040, and record all freeze frame data. Note the specific conditions — speed, RPM, brake status — present when the fault occurred, then scan for any other stored codes that may point to the primary failure.
- Research technical service bulletins for your vehicle make, model, and model year. Many manufacturers have published updates addressing C0040-related issues, including software recalibrations that resolve signal processing glitches.
- Perform a thorough visual inspection of the brake pedal switch and its wiring. Look for frayed insulation, bent pins, moisture intrusion, or loose connections that could interrupt the signal.
- Monitor live data from all wheel speed sensors while gently rolling the vehicle. A failing sensor drops out intermittently or produces implausible speed readings that conflict with the brake switch data.
- Inspect each tone ring for missing teeth, excessive rust buildup, or physical damage that could corrupt the wheel speed signal feeding the ABS logic.
- Clear the code, complete a test drive replicating the freeze frame conditions, and verify C0040 does not reappear — intermittent faults often hide until the specific operating scenario recurs.
Repair Options with Pricing
Address the most accessible and affordable possibilities before committing to major component replacement:
- Brake pedal switch replacement: $80–$200 for parts and labor
- Wheel speed sensor replacement: $120–$350 depending on location and vehicle
- Wiring harness repair or connector replacement: $80–$250
- ABS module repair via specialist or full replacement: $400–$1,200
Total Repair Cost for C0040
The final invoice hinges entirely on which component triggered the fault. Labor rates at independent shops typically run $75–$110 per hour. Most C0040 diagnoses resolve around the $150–$400 range when the issue stems from the brake switch, a single sensor, or accessible wiring damage. The upper end applies only when the ABS hydraulic assembly itself requires replacement — a scenario that should be confirmed through proper diagnosis before spending that much money.
Can You Drive with C0040?
Your conventional brakes remain functional, so the vehicle isn't undriveable in an absolute sense. However, anti-lock and stability control systems will not intervene if you need to stop quickly on wet or icy pavement, which significantly increases stopping distance and reduces your ability to maintain directional control during a skid. This code warrants caution rather than panic — drive conservatively, avoid aggressive braking maneuvers, and schedule repair promptly.