# OBD-II C0040: Brake Pedal Switch A

> **Quick Answer:** OBD-II fault code C0040 indicates Brake Pedal Switch A. Avoid prolonged operation until inspected to prevent secondary component damage. Typical professional repair costs $43–$194.

- **URL:** https://faultcodes.org/automotive/obd2-c0040
- **Category:** Automotive & OBD-II
- **Brand / Standard:** OBD-II
- **System Area:** Chassis, ABS & Stability Control
- **Severity:** High — Service Soon
- **Safe to Operate?:** No — Risk of Damage
- **DIY Difficulty:** Easy (Basic Tools)
- **Updated:** 2026-11-22T05:56:37+00:00

## What This Fault Code Means
C0040 reports a fault on brake pedal switch A, the first of two switch signals that tell the brake, engine and transmission modules the pedal is pressed. Mazda defines C0040:24 as a circuit malfunction of brake switch signal no. 1; on the 2024 CX-90 it appears with P0504 and a push button start warning, and service alert SA-062-23 cures it by moving the switch one adjustment notch. Ford sees C0040 with P0504 on 2020-2022 F-Super Duty trucks that cannot be moved out of park, pointing to corrosion inside the battery junction box or a damaged shift-interlock circuit. Typical effects are stop lamps that stay lit (Ford TSB 22-2044), a start system warning and a shift interlock that will not release. Older GM vehicles use C0040 for a wheel speed sensor circuit in their own scheme.

## Common Symptoms
- Stop lamps stay on or do not light
- Vehicle will not shift out of park
- Push button start malfunction warning (Mazda)

## Most Likely Root Causes
- Brake switch out of adjustment (Mazda SA-062-23)
- Water or corrosion in the battery junction box (Ford TSB 22-2044)
- Damaged switch or shift-interlock wiring
- Brake switch failed internally

## Step-by-Step Troubleshooting & Fix
1. Scan for companion fault codes and address upstream circuit issues first.
2. Visually inspect wiring harnesses, plugs, and hoses around Brake Pedal Switch A.
3. Test component voltage, resistance, or mechanical actuation with diagnostic tools.
4. Repair damaged wiring or install an OEM-grade replacement Brake Pedal Switch A.
5. Clear fault memory and run a verification cycle to confirm C0040 does not return.

## Estimated Repair Cost Benchmark
| Currency | DIY Parts Only | Professional Repair (Parts + Labor) |
| --- | --- | --- |
| USD | $16–$82 | $43–$194 |
| GBP | £13–£65 | £34–£155 |
| CAD | CA$22–CA$110 | CA$58–CA$261 |
| EUR | €15–€76 | €40–€180 |
| CHF | CHF 17–CHF 87 | CHF 53–CHF 238 |

## Frequently Asked Questions
### Is it safe to keep operating with fault code C0040?
Avoid prolonged operation until inspected to prevent secondary component damage.

### How much does it cost to repair C0040?
DIY replacement parts average $16–$82, while professional service averages $43–$194.

### Will resetting C0040 fix the problem permanently?
No. Clearing the fault code only removes the stored alert temporarily; the code returns if the underlying fault persists.

