Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All →
🎬 Helpful Videos 🛍️ Shop This Part

C0040 on 2011-2019 Ford Fiesta: Brake Pedal Switch 'A' Circuit Fault Causes and Fixes

On a 2011-2019 Ford Fiesta, code C0040 almost always indicates a faulty brake light switch. This is an inexpensive part (around $25-$50) located on the brake pedal arm, and replacing it is a common DIY fix that can be done in under 30 minutes. The issue often appears with code P0504.

20 minutes to read 2011-2019 Ford Fiesta
Most Likely Cause
Faulty Brake Pedal Switch (Brake Light Switch)
Difficulty
2/5
Est. Time
1 hrs
DIY Doable?
🔧 Shop
Shop Labor
$163 – $235
Parts Price
$29 – $60
🚫 Do not drive — It is not recommended to drive. Your brake lights may not be working, which is illegal and creates a significant risk of a rear-end collision. Additionally, the fault can disable your ABS and stability control systems, and in some cases, prevent the transmission from shifting out of Park, potentially leaving you stranded.
Key Takeaways
  • C0040 on a Ford Fiesta means there is a problem with the brake pedal switch circuit, NOT the wheel speed sensor.
  • The most common fix is to replace the brake light switch, an inexpensive part located on the brake pedal arm.
  • Symptoms are serious and include malfunctioning brake lights, ABS/Traction Control lights, and potentially being unable to shift out of Park.
  • Do not drive the vehicle until repaired, as the lack of brake lights is a major safety hazard.
The trouble code C0040 on a Ford Fiesta signifies that the Anti-lock Brake System (ABS) module has detected a fault in the 'Brake Pedal Switch A' circuit. This switch, located on the brake pedal assembly, sends a signal to the vehicle's computers when you press the brake. This signal is critical for operating the brake lights, deactivating cruise control, enabling the transmission to shift out of Park, and informing the ABS and stability control systems that braking is in progress. When the ABS module receives an implausible, erratic, or nonexistent signal from this switch, it logs the C0040 code and illuminates warning lights on the dashboard.

What's Unique About the 2011-2019 Ford Fiesta

For the Fiesta, the C0040 code typically points to a simple component failure—the brake pedal switch itself. However, it's important to be aware that on other Ford models, this same code has been linked to more complex issues like water intrusion in the main fuse box (TSB 22-2044 on Super Duty trucks) and chafed wiring harnesses (SSM 50245 on Escapes and Bronco Sports). While less common on the Fiesta, this pattern means that if a new switch doesn't solve the problem, a closer look at the wiring is warranted, especially since the switch is a known high-failure item that owners sometimes replace multiple times.

Generation note: The 2011-2019 year range covers the sixth generation (Mk6/B2E Platform) of the Ford Fiesta sold in North America. A mid-cycle facelift occurred around the 2014 model year, but the underlying platform and the function of the brake pedal switch circuit remained consistent. The part number for the switch is the same across these years.

Professional service recommended: This fault affects critical safety systems including the brake lights, ABS, and stability control. While the part replacement can be simple, proper diagnosis is key to ensure safety. A professional can confirm the switch is the issue and not a more complex wiring or module fault.

Symptoms You May Notice

  • ABS warning light is on
  • Traction control or stability control (ESC) light is on
  • Brake lights do not turn on, stay on constantly, or work intermittently
  • Cannot shift automatic transmission out of Park
  • Cruise control cannot be engaged or turns off by itself
  • Engine start may be inhibited (requires brake press to start)
⚠️ Don't Waste Money on the Wrong Fix
  • Right Front Wheel Speed Sensor. Many generic OBD-II code databases incorrectly list C0040 as a fault for the 'Right Front Wheel Speed Sensor Circuit'. For Ford vehicles, including the Fiesta, C0040 specifically refers to the Brake Pedal Switch 'A' Circuit. Replacing the wheel speed sensor will not fix this code on a Fiesta.

Most Likely Causes

  1. Faulty Brake Pedal Switch (Brake Light Switch) 🔴 High Probability This is a high-use electromechanical part with internal contacts that wear out over time from normal use, leading to failure. It is the most common point of failure for this code.
    How to confirm: Use a scan tool to monitor the brake pedal switch's status in the live data stream while pressing and releasing the brake pedal. The status should change from 'Off' to 'On'. Alternatively, use a multimeter to test for continuity and voltage changes at the switch connector as the pedal is operated. A visual inspection may reveal a stuck or broken plunger.
    Typical fix: Replace the brake pedal switch. It is located on the brake pedal support bracket and is typically a blue sensor that is removed with a simple counter-clockwise twist. 🎬 Watch: How to replace a Ford brake light switch It is recommended to use an OEM Motorcraft part for longevity.
    Est. part cost: $29-$38
  2. Damaged Wiring or Connector 🟡 Medium Probability The wiring harness near the brake pedal and steering column can be subject to stress or chafing from foot movement or adjustments to the steering wheel. Ford TSB SSM 50245 for the Escape and Bronco Sport notes a similar issue where the harness rubs on the steering shaft u-joint.
    How to confirm: Visually inspect the wiring harness leading to the brake pedal switch for any signs of chafing, pinching, or breaks. Check the connector for corrosion, backed-out pins, or loose connections.
    Typical fix: Repair the damaged section of wire and secure the harness away from any moving parts. Replace the connector pigtail if it is damaged.
    Est. part cost: $5-$50
  3. Blown Fuse ⚪ Low Probability
    How to confirm: Locate the fuse for the stop lamp circuit in the vehicle's fuse box (consult the owner's manual for location, often in the Body Control Module panel) and check if it is blown.
    Typical fix: Replace the blown fuse. If the new fuse blows immediately, it indicates a short circuit in the system that must be diagnosed.
    Est. part cost: $1-$5

Rare But Worth Checking

  • Faulty ABS Control Module: This is rare and should only be considered after the switch, wiring, and fuses have been confirmed to be good. This is an expensive part and often requires programming.
  • Water Intrusion in Battery Junction Box (BJB): While documented for Ford trucks (TSB 22-2044) and not a common Fiesta issue, water leaks into the under-hood fuse box can cause a wide range of electrical issues. It's worth a quick inspection for any signs of moisture or corrosion if other causes are ruled out.

Diagnosis Steps

  1. Scan the ABS module for codes. Confirm C0040 is present and note any other codes, especially P0504.
  2. Check the fuse for the stop lamp circuit. Replace if blown.
  3. With the help of an assistant or by backing up to a reflective surface, check the operation of the brake lights when the pedal is pressed. Note if they are inoperative, always on, or intermittent.
  4. Visually inspect the brake pedal switch (typically a blue sensor on the pedal bracket), its connector, and the surrounding wiring harness for any obvious damage, chafing, or loose connections.
  5. Using a scan tool with live data capability, monitor the PID (Parameter ID) for the brake pedal switch. The status should change from 'Off' to 'On' (or similar) the moment the pedal is pressed.
  6. If a scan tool is unavailable, use a multimeter to test the switch. Check for the presence of voltage at the switch connector. Then, test the switch's internal contacts for continuity, confirming that it opens and closes correctly as the plunger is depressed and released.
  7. If the switch and fuse are good, but the problem persists, carefully trace the wiring from the switch to the Body Control Module (BCM) and/or ABS module to check for opens or shorts. Pay close attention to areas where the harness might rub against the steering column.
  8. If all wiring and components test good, the fault may be internal to the ABS module, though this is the least likely cause.

Parts You'll Likely Need

  • Brake Light Switch / Stop Lamp Switch (OEM #AA6Z-9C888-A) — This is the most common failure point for the C0040 code on this vehicle. It is a high-wear item.
    Trusted brands: Motorcraft (SW-6545 or SW-7020), Standard Motor Products, Duralast
    OEM price range: $29-$45
    Aftermarket price range: $15-$30

Related Codes That Often Appear With This One

  • P0504 — This is a generic powertrain code for 'Brake Switch A/B Correlation'. It often appears with C0040 because the Powertrain Control Module (PCM) also monitors the brake switch and detects the same implausible signal as the ABS module. This is mentioned in Ford TSBs SSM 51432 and TSB 22-2044.

Technical Service Bulletins (TSBs) & Recalls

  • SSM 51432: Mentions C0040 on 2020-2022 F-Super Duty vehicles related to a no-shift-from-park condition, establishing a symptom pattern.
  • TSB 22-2044: Links C0040 on 2021 F-550 SD to water intrusion in the Battery Junction Box (BJB), showing a potential, though less common, cause on Ford platforms.
  • SSM 50245: Notes C0040 on 2020 Escapes can be caused by a wiring harness chafing near the brake pedal, a relevant potential cause for the Fiesta.

Mechanic-Grade Diagnostic Values

  • Brake Pressure Sensor (BPS) PID vs. Switch PIDs — expected: Using a Ford IDS scan tool, the BRAKE_LAMP and CRUISE_CANCL PIDs should change from OFF to ON before the BPS PID value exceeds 44 psi.. Failure: If the switch PIDs change to ON after the BPS PID is greater than 44 psi, the brake pedal position switch is faulty or misadjusted and should be replaced.
  • Brake Pedal Switch Continuity — expected: When the switch's plunger is out (pedal pressed), continuity between the signal pins should be near 0 Ω. When the plunger is in (pedal released), resistance should be infinite (Open Line).. Failure: If there is no continuity when the plunger is out, or if there is continuity when the plunger is in, the switch has failed internally.
  • Brake Pedal Switch Signal Voltage — expected: The signal wire should switch between ~0V and battery voltage (~12V) or a 5V reference when the pedal is pressed and released. The exact logic (0V when pressed vs. 12V when pressed) depends on the specific circuit design.. Failure: No voltage change when the pedal is operated indicates a faulty switch or a wiring issue (open or short).

Hidden / Shadow Codes Worth Checking

  • C0040:64: Signal Plausibility Failure. This indicates the ABS module received a brake switch signal that conflicts with other vehicle data, such as the vehicle decelerating without a brake signal being detected. (see via Professional scan tools like Ford IDS or high-end aftermarket scanners capable of reading manufacturer-specific sub-codes.)
  • C0040:72: Actuator Stuck Open. The ABS module does not detect a brake pedal input when other sensors (like the brake pressure sensor or wheel speed sensors) indicate the vehicle is braking. (see via Professional scan tools like Ford IDS or high-end aftermarket scanners capable of reading manufacturer-specific sub-codes.)
  • C0040:73: Actuator Stuck Closed. The ABS module detects that the brake switch is 'On' while the vehicle is accelerating or traveling at a steady speed, indicating the switch is stuck in the activated position. (see via Professional scan tools like Ford IDS or high-end aftermarket scanners capable of reading manufacturer-specific sub-codes.)

Scan Tool Commands That Help

  • Ford IDS (or FORScan/Pro-level Scanner): Datalogger > Chassis > Braking > Brake Switch Parameters — This is the primary diagnostic function to confirm the fault. It allows you to simultaneously monitor the status of the Brake Pressure Sensor (BPS), BRAKE_LAMP, and CRUISE_CANCL PIDs to verify if the switch is sending a plausible signal at the correct time.
  • Ford IDS (or FORScan/Pro-level Scanner): Datalogger > PID: BOO_ABS (Brake On/Off) — This is a simpler live data check to quickly see if the ABS module is receiving the on/off signal from the switch at all. The status should toggle immediately when the brake pedal is pressed and released.

Wiring & Ground Locations

  • Brake Light Switch Connector — Directly on the brake light switch, which is mounted on the brake pedal support bracket in the driver's side footwell.. This is the most common location for a wiring issue to occur. A loose connection, corroded pins, or wires damaged from foot traffic can directly cause code C0040.

OEM Part Supersession History

  • AA6Z-9C888-AAA6Z-9C888-A (current) — This part number appears to be stable for the 2014-2019 model years.
    Heads up: The associated Motorcraft part number is often SW-7020. A general web search for 'SW-7020' may return results for a Sherwin-Williams paint color called 'Black Fox', which is an unrelated data collision. Another valid Motorcraft number is SW-6545. Always verify fitment using the vehicle's VIN.

Model Year Variations Within This Range

  • 2011-2019: Some Fiesta models may have two separate switches on the brake pedal assembly. One is for the brake lights (typically black or blue), and the other is for cruise control deactivation (often blue). While C0040 points to the primary brake light switch ('A' circuit), a fault in the secondary switch can sometimes cause related codes like P0504.

Diagnostic Flowchart

The C0040 code indicates a fault in the Brake Pedal Switch circuit. Because this circuit affects the ABS, ESC, and the PowerShift transmission's ability to shift out of Park, start by verifying the physical switch operation.
Check the stop lamp circuit fuse in the Body Control Module (BCM) panel. Is the fuse blown?
→ Replace the fuse ($1-$5). If it blows again immediately, inspect the brake light harness for a short to ground, particularly near the trunk hinges or rear lamp assemblies.
Using a scan tool, monitor the Brake Pedal Switch PID (Live Data). Does the status change from 'Off' to 'On' when the pedal is pressed?
Locate the blue sensor on the brake pedal bracket. Is the plunger stuck, or is the connector loose/corroded?
→ Replace the Brake Pedal Switch. Use a counter-clockwise twist to remove. It is highly recommended to use an OEM Motorcraft part ($29-$38) to ensure compatibility with the Fiesta's sensitive BCM.
Unplug the switch and test for 12V at the connector and continuity across the switch pins when pressed. Are values correct?
→ The switch is internally failed. Replace the unit. If voltage is missing from the harness side, check for an open circuit between the BCM and the pedal.
Inspect the wiring harness near the steering column. Is there evidence of chafing or contact with moving parts?
→ Repair the wiring harness. Similar to Ford SSM 50245, the Fiesta harness can rub against the steering components. Secure the repaired harness away from the steering shaft u-joint to prevent recurrence.
If the switch, fuse, and wiring harness pass all tests, the fault may be logic-based. Are there any other codes like P0504 present?
→ This confirms a correlation error between Brake Switch A and B. Replace the brake switch as the primary suspect, as internal contact timing is likely off.
→ Perform a hard reset by disconnecting the battery for 15 minutes. If C0040 returns, the ABS Module or BCM may have an internal failure, though this is rare on the B2E platform compared to switch failure.
Inspect the wiring harness near the steering column. Is there evidence of chafing or contact with moving parts?
→ Repair the wiring harness. Similar to Ford SSM 50245, the Fiesta harness can rub against the steering components. Secure the repaired harness away from the steering shaft u-joint to prevent recurrence.
If the switch, fuse, and wiring harness pass all tests, the fault may be logic-based. Are there any other codes like P0504 present?
→ This confirms a correlation error between Brake Switch A and B. Replace the brake switch as the primary suspect, as internal contact timing is likely off.
→ Perform a hard reset by disconnecting the battery for 15 minutes. If C0040 returns, the ABS Module or BCM may have an internal failure, though this is rare on the B2E platform compared to switch failure.
Inspect the wiring harness near the steering column. Is there evidence of chafing or contact with moving parts?
→ Repair the wiring harness. Similar to Ford SSM 50245, the Fiesta harness can rub against the steering components. Secure the repaired harness away from the steering shaft u-joint to prevent recurrence.
If the switch, fuse, and wiring harness pass all tests, the fault may be logic-based. Are there any other codes like P0504 present?
→ This confirms a correlation error between Brake Switch A and B. Replace the brake switch as the primary suspect, as internal contact timing is likely off.
→ Perform a hard reset by disconnecting the battery for 15 minutes. If C0040 returns, the ABS Module or BCM may have an internal failure, though this is rare on the B2E platform compared to switch failure.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • PowerShift (DPS6) Dual-Clutch Transmission Failure 🔴 High — Extremely common on 2011-2016 models with automatic transmission. Symptoms include shuddering, hesitation, slipping, and complete failure to engage gears. (Ref: Multiple class-action lawsuits and extended warranty programs (e.g., 14M01, 14M02) were issued.)
  • Faulty Door Latches 🔴 High — Common on 2011-2014 models. A broken pawl spring tab can prevent doors from latching or cause them to open while driving. (Ref: Multiple recalls were issued, including NHTSA #20V331 (Ford recall 20S30), which superseded earlier attempts (15S16, 16S30).)
  • HVAC Blend Door Actuator Failure 🟡 Low — Common across all years. A repetitive clicking or ticking sound from the dashboard upon startup or when changing climate settings indicates stripped plastic gears inside the actuator.
  • Throttle Body Failure 🟠 Medium — Reported in 6th generation models, causing high idle, poor acceleration, and potential stalling due to carbon buildup.
  • Coolant System / Water Pump Leaks 🟠 Medium — Owners report coolant leaks, particularly from the water pump on the passenger side of the engine, which can lead to overheating. (Ref: Recalls were issued for some 1.0L EcoBoost models due to coolant hose failure.)

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: It is strongly recommended to NOT use a used part for this repair. The brake light switch is an inexpensive, high-wear electromechanical component. The cost savings of a used part are negligible compared to the risk of premature failure and the labor to replace it again.

What to inspect on the donor part:

  • Not applicable, as a new part is the only recommended fix.

OEM-only on this vehicle (don't cheap out):

  • Brake Light Switch: While some aftermarket brands are acceptable, OEM Motorcraft is highly recommended for this specific part due to its critical safety function and to ensure proper communication with the vehicle's modules.

Aftermarket brands forum-validated for this vehicle:

  • Standard Motor Products
  • Duralast

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

Ford Fiesta ST

Symptoms: No brake pressure after track sessions; ABS module threw code C0040:64-68.

What fixed it: Replaced the 'Brake Pedal Switch A (the blue/cruise control switch)'.

Source hint: Fiesta ST Forum - 'No brake pressure after track sessions.' (2019-03-25)

2012 Ford Fiesta 1.6L

Symptoms: Engine warning light (Drivetrain) illuminated with codes C0040 and P0504 appearing together.

What fixed it: Replacement of the brake switch, which is a common failure point for this code pairing.

Source hint: Ford Owners Club - 'Fiesta 1.6L 2012 model - Engine warning light (Drivetrain)' (2023-11-27)

Frequently Asked Questions

I have a 2012 Ford Fiesta and my brake lights are staying on constantly. Is this related to code C0040?
Yes. A faulty brake pedal switch is the most common cause for C0040 in this vehicle. Symptoms include brake lights that stay on constantly, do not turn on at all, or work intermittently.
My Fiesta won't shift out of Park and the ABS light is on. What part do I likely need?
This is a common symptom of a failed brake pedal switch (often a blue sensor on the pedal bracket). When this switch fails, the vehicle may not detect the brake press required to release the transmission shift lock.
Does Ford TSB SSM 50245 apply to my Fiesta's C0040 code?
While SSM 50245 specifically identifies a wiring harness chafing issue near the steering shaft for the Escape and Bronco Sport, it is noted as a relevant potential cause for the Fiesta due to similar harness routing near the steering column.
Can I use any aftermarket part to fix the C0040 code on my Fiesta?
It is recommended to use an OEM Motorcraft brake pedal switch for longevity, as this is a high-use electromechanical part prone to internal contact wear.
I'm seeing C0040 and P0504 at the same time on my 2012 1.6L Fiesta. Is this normal?
Yes, these two codes are frequently paired together when the brake switch fails, as reported by owners in the Ford Owners Club.
How do I remove the brake pedal switch on a 2011-2019 Fiesta?
The switch is located on the brake pedal support bracket and can typically be removed with a simple counter-clockwise twist.
HOW TO REPLACE BRAKE LIGHT SWITCH ON FORD
HOW TO REPLACE BRAKE LIGHT SWITCH ON FORD
ABS WARNING LIGHT ON? FIX IT IN 3 EASY STEPS
ABS WARNING LIGHT ON? FIX IT IN 3 EASY STEPS
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jul 21, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code C0040 for:
  • Ford Fiesta: 201120122013201420152016201720182019
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part