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 Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

C0040 on 2006-2011 Mercury Milan: Meaning, Causes, and Fixes

On a 2006-2011 Mercury Milan, code C0040 has conflicting meanings. It could be a 'Right Front Wheel Speed Sensor Circuit' fault or a 'Brake Pedal Switch Circuit' fault. Check your symptoms: if your ABS light is on and brake lights work, suspect the wheel speed sensor (~$150-$275 repair). If your brake lights don't work or you can't shift from Park, suspect the brake light switch (~$80-$120 repair). Diagnosis is key before buying parts.

21 minutes to read 2006-2011 Mercury Milan
Most Likely Cause
Faulty Right Front Wheel Speed Sensor
Difficulty
2/5
Est. Time
1 hrs
DIY Doable?
🔧 Shop
Shop Labor
$80 – $275
Parts Price
$20 – $112
⚠️ Drivable, but... — You can drive, but with caution. Your Anti-lock Braking System (ABS) and Traction Control are likely disabled, which increases stopping distances in emergencies and reduces stability on slippery roads. If the cause is a faulty brake light switch, your brake lights may not work, which is a major safety hazard.
Key Takeaways
  • Code C0040 on a 2006-2011 Milan is ambiguous. **Match your symptoms** before buying parts.
  • If your **ABS light is on**, the problem is likely the right front wheel speed sensor or its wiring.
  • If your **brake lights don't work** or you're **stuck in Park**, the problem is almost certainly the brake light switch.
  • Both potential fixes are relatively inexpensive and accessible for a DIYer with basic tools.
  • Driving with this code is risky as your ABS and traction control are disabled.
For the 2006-2011 Mercury Milan, the definition of code C0040 is uncertain as Ford has used this code for different problems on different vehicles. The most common generic definition is a fault in the 'Right Front Wheel Speed Circuit'. This means the anti-lock brake system (ABS) module has detected an abnormal or missing signal from the sensor on the front passenger-side wheel. However, on many Ford platforms, C0040 specifically points to a 'Brake Pedal Switch 'A' Circuit' fault, indicating the car's computer isn't getting a correct signal when you press the brake pedal. You must compare your vehicle's specific symptoms to determine which problem is more likely.
Heads up: The manufacturer-specific definition of this code could not be fully verified — treat the guidance below as general.

What's Unique About the 2006-2011 Mercury Milan

The uncertainty of this code is the key issue for the Milan and its sister platform, the Ford Fusion. While many sources cite the generic 'Wheel Speed Sensor' definition, Ford service information for similar vehicles often links C0040 to the 'Brake Pedal Switch'. Adding to the confusion, some Fusion owners report different code numbers for wheel speed sensor faults. Furthermore, a recall (09V-232) was issued for the 2009 Milan for an improperly installed brake light switch, indicating it's a known failure point on this platform. Therefore, owners should not automatically assume C0040 means one or the other without first matching their symptoms to the correct fault.

Professional service recommended: This code disables safety systems like ABS and traction control, which is risky. Professional diagnosis with a scan tool that can read live ABS data and Ford-specific codes is recommended to confirm the correct fault (wheel sensor vs. brake switch) before buying parts.

Symptoms You May Notice

  • If the problem is the Right Front Wheel Speed Sensor:
  • ABS warning light is on.
  • Traction Control or Stability Control light is on.
  • Cruise control may not work.
  • Brake pedal may pulse or feel strange during normal braking.
  • If the problem is the Brake Pedal Switch:
  • Brake lights do not work when the pedal is pressed.
  • Brake lights are stuck on, even when the car is off.
  • Cannot shift the transmission out of Park.
  • 🎬 See how a faulty switch can leave you stuck in Park.
  • Cruise control will not engage.
  • Engine may not start (if brake pedal input is required).
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the wrong part due to the code's ambiguous definition. For example, replacing the wheel speed sensor when the brake lights are out, or replacing the brake light switch when only the ABS light is on.

Most Likely Causes

  1. Faulty Right Front Wheel Speed Sensor 🔴 High Probability → Shop ABS Wheel Speed Sensor Wheel speed sensors are exposed to road debris, moisture, and extreme temperatures, leading to failure over time. It is a common wear item.
    How to confirm: Use a scan tool capable of reading live ABS data to monitor the right front wheel speed while driving. If the reading is erratic, zero, or doesn't match the other wheels, the sensor is likely bad. You can also test the sensor's internal resistance with a multimeter (check service manual for spec, but often 800-2,700Ω). 🎬 Watch: Professional methods for testing your wheel speed sensor.
    Typical fix: Replace the right front ABS wheel speed sensor. The sensor is located on the wheel hub assembly and is typically held in by a single bolt. 🎬 Watch: Step-by-step guide to replacing the front ABS sensor.
    Est. part cost: $25-$60
  2. Faulty Brake Light Switch 🔴 High Probability → Shop Brake Light Switch The switch is a small mechanical part that is used every time the brakes are applied, leading to eventual wear. A recall for the 2009 Milan for improper switch installation suggests it's a sensitive component on this platform.
    How to confirm: Have a helper observe the brake lights while you press the pedal. If they don't work, but the fuse and bulbs are good, the switch is the primary suspect. Test for power at the switch connector with a multimeter.
    Typical fix: Replace the brake light switch. It is located on the brake pedal support bracket under the dashboard. Per Ford instructions, the brake pedal should not be pressed during installation.
    Est. part cost: $20-$50
  3. Damaged Wiring or Connectors 🟡 Medium Probability The wheel speed sensor harness is vulnerable to damage from road debris or rubbing against suspension components. The brake light switch wiring can be kicked or stressed in the driver's footwell.
    How to confirm: Visually inspect the wiring harness for the affected component (either the wheel speed sensor or brake light switch) for any signs of chafing, breaks, or corrosion. Perform a continuity test on the wires from the sensor/switch back to the control module.
    Typical fix: Repair or replace the damaged section of the wiring harness.
    Est. part cost: $10-$40 for repair materials

Rare But Worth Checking

  • Damaged Tone Ring / Failing Wheel Bearing: The ABS sensor reads a toothed or magnetic ring (tone ring) on the axle or wheel hub. If this ring is cracked, covered in rust, or if the wheel bearing it's part of has excessive play, it can cause erratic sensor readings. A visual inspection and checking for wheel wobble is necessary.
  • Faulty ABS Hydraulic Control Unit (HCU) or Module: → Shop ABS Control Module In rare cases, the ABS module itself can fail. This is often accompanied by other ABS-related codes. A recall (19S54) was issued for 2006-2010 models for sticking valves in the HCU causing a soft pedal, which is a separate but related ABS system fault that does not typically trigger a DTC.

Diagnosis Steps

  1. Confirm Symptoms: First, determine which set of symptoms your vehicle is exhibiting. Are the brake lights malfunctioning and you can't shift from park, or is the issue limited to an ABS warning light on the dash?
  2. Scan for Codes: Use an advanced OBD-II scanner that can read manufacturer-specific Chassis (C-codes) to confirm C0040 is the primary code. Note any other codes or sub-codes (e.g., C0040:64, C0040:72, C0040:73) which can point more directly to the brake switch.
  3. If Symptoms Point to Brake Switch: Visually inspect the brake lights with a helper. Check the fuse for the brake light circuit. If the fuse is good, inspect the brake light switch above the pedal for damage. Test the switch for power and proper operation with a multimeter.
  4. If Symptoms Point to Wheel Speed Sensor: Use the scanner's live data function to view the wheel speed from all four sensors while driving. Compare the right front sensor's reading to the others. An erratic or zero reading indicates a problem.
  5. Inspect the Suspected Component: Based on the steps above, perform a close visual inspection of the suspect part (either the brake light switch or the right front wheel speed sensor) and its wiring harness. Look for damage, corrosion, or loose connections.
  6. Test the Circuit: If the component itself seems okay, test the wiring circuit for continuity and shorts between the component and its control module (ABS or BCM).
  7. Check Mechanicals (for Wheel Speed Sensor issue): If the sensor and wiring are good, jack up the front right wheel and check for any play or wobble in the wheel bearing. Spin the wheel and listen for noise. Inspect the tone ring for damage or debris if it's visible.

Parts You'll Likely Need

  • Right Front ABS Wheel Speed Sensor (OEM #ALS1723) — This is the most likely part to fail if your symptoms are an ABS light and no brake light issues. It is a common failure point across many vehicles.
    Trusted brands: Motorcraft, Standard Motor Products (SMP), Delphi, SKP, Dorman
    OEM price range: $70-$100
    Aftermarket price range: $25-$60
  • Brake Light Switch (Stoplight Switch) (OEM #6E5Z-13480-A) — This is the most likely part to fail if your symptoms include brake light failure or being stuck in Park. It's a known issue on this platform.
    Trusted brands: Motorcraft, Dorman, Standard Motor Products (SMP)
    OEM price range: $40-$60
    Aftermarket price range: $20-$40

Technical Service Bulletins (TSBs) & Recalls

  • Ford Recall 09V-232 / 09C09: Addresses improperly installed brake light switches on some 2009 Mercury Milan vehicles.
  • Ford Recall 19S54 / 19V-904: Addresses sticking valves within the ABS Hydraulic Control Unit (HCU) on 2006-2010 models, leading to increased brake pedal travel.
  • Ford Customer Satisfaction Program 13N03: Extended warranty coverage for faulty electronic throttle bodies on Ford Fusions, a problem also known to affect the Milan.

Platform-Specific Known Issues

  • A recall (NHTSA ID 09V-232, Ford ID 09C09) was issued for some 2009 Mercury Milan vehicles due to improperly installed brake light switches, which could cause the brake lights to fail. This lends credibility to the 'Brake Pedal Switch' interpretation of the C0040 code.
  • A recall (FSA 19S54, NHTSA ID 19V-904) was issued for 2006-2010 models for sticking valves in the ABS Hydraulic Control Unit (HCU). A chemical reaction with old brake fluid can cause a gel to form, leading to extended brake pedal travel. While this recall doesn't directly cause code C0040, it highlights a significant known issue with the braking system on this platform.

Documented NHTSA Reports

While C0040 is often linked to the wheel speed sensor, cross-manufacturer records highlight the code's ambiguity. For instance, NHTSA ODI #11645269 describes a "Brake lamp switch failure stuck" associated with sub-code C0040-62, while NHTSA ODI #11191073 reports a "Brake switch stuck on" resulting in extremely heated brakes and smoke. Conversely, other reports reinforce the wheel speed sensor definition; NHTSA ODI #10629708 notes a case where a "right front hub was dropping signal" under code C0040, and NHTSA ODI #10440851 explicitly identifies C0040 as a "left front wheel speed sensor circuit malfunction." Additionally, NHTSA ODI #11228687 shows C0040 appearing alongside numerous other chassis codes during a suspension-related failure.

Mechanic-Grade Diagnostic Values

  • Passive ABS Wheel Speed Sensor Resistance — expected: 1200 - 2700 Ohms (Ω). Failure: A reading below 1200 Ω or above 2700 Ω indicates a faulty sensor.
  • Passive ABS Wheel Speed Sensor AC Voltage Output — expected: Minimum of 0.25 Volts AC. Failure: A voltage reading below 0.25V AC while spinning the wheel by hand (at ~0.5 revolutions per second) points to a weak or failed sensor or an issue with the tone ring.
  • Active ABS Wheel Speed Sensor Signal (on later models, if applicable) — expected: A square wave signal switching between two voltage levels, for example, between ~10.1V and ~10.7V.. Failure: A flat line or missing signal. Note: On many Fords, the ABS module will shut down the power to a sensor circuit once a fault is detected, so a reading of 0V may be normal after a code is set. Clearing the codes may be necessary to see the signal briefly.

Hidden / Shadow Codes Worth Checking

  • C0040:64: Brake Pedal Switch 'A': Signal Plausibility Failure. This sub-code sets when the ABS module detects that the brake pedal input signal doesn't match other data, like vehicle speed or brake pressure signals. (see via A professional scan tool capable of reading Ford-specific fault type bytes, such as the Ford IDS.)
  • C0040:72: Brake Pedal Switch 'A': Actuator Stuck Open. This indicates the ABS module is not receiving a signal that the brake pedal is being pressed when it should be (e.g., the vehicle is decelerating). (see via A professional scan tool capable of reading Ford-specific fault type bytes, such as the Ford IDS.)
  • C0040:73: Brake Pedal Switch 'A': Actuator Stuck Closed. This indicates the ABS module is receiving a constant signal that the brake pedal is pressed, even when the vehicle is accelerating. (see via A professional scan tool capable of reading Ford-specific fault type bytes, such as the Ford IDS.)

Scan Tool Commands That Help

  • Ford IDS (Integrated Diagnostic System): ABS Module Self-Test — To command the ABS module to check its internal circuits and the circuits for all connected sensors and actuators. This can help confirm if the module itself is faulty.
  • Ford IDS (Integrated Diagnostic System): Datalogger for Brake Pedal Position (BPP) PID — To monitor the live data status of the brake pedal switch as seen by the control module. This allows you to confirm if the switch's signal is being received and interpreted correctly when you press and release the pedal.
  • Ford IDS (Integrated Diagnostic System): ABS Service Bleed — This is required after replacing the ABS Hydraulic Control Unit (HCU) or if air has entered the ABS system. It cycles the internal valves and pump to purge all trapped air.
  • Ford IDS (Integrated Diagnostic System): PMI (Programmable Module Installation) — When replacing the ABS module, this function is used to download the as-built data from the old module (if possible) and upload it to the new one, ensuring correct configuration for the vehicle's specific options.

Wiring & Ground Locations

  • B21C2 — This is the connector designator for the Front ABS Wheel Speed Sensor on a 2010 Ford Fusion.. This is the primary connector to inspect, test, and potentially replace for a C0040 code related to the wheel speed sensor. It's a 2-pin connector.
  • Brake Pedal Switch Connector — Located directly on the brake light switch, attached to the brake pedal support bracket under the driver's side dashboard.. This 4-pin connector is where voltage and continuity tests are performed for a C0040 code related to the brake switch. Wires can be stressed or damaged in this area from driver foot activity.

Real Owner Repair Stories

  • YouTube channel 'Steven's DIY Auto Repair' (Ford Fusion (platform mate)) — No start, no power, and a code for 'Brake Pedal Switch A'.
    ❌ Tried (didn't work) Initial diagnosis focused on battery and power issues.
    ✅ What actually fixed it Replacing the brake light switch resolved the no-start condition and cleared the code. The repair involved a simple quarter-turn of the old switch to remove it and installing the new one in its place.
  • Reddit user on r/MechanicAdvice (2007 Mercury Milan) — ABS failure, 'check brake system' light on, intermittent functionality.
    ❌ Tried (didn't work) Replaced the driver side rear wheel sensor based on a mechanic's diagnosis.
    ✅ What actually fixed it The user was still in the diagnostic process, but noted the mechanic found heavily corroded connections to the ABS system, suggesting a wiring or module issue rather than just the sensor. This highlights the importance of checking the entire circuit.

OEM Part Supersession History

  • 6E5Z-13480-A7E5Z-13480-A — Standard part revision and update by Ford.
    Heads up: These parts are generally interchangeable for the specified models. However, some 2010-2011 models may use a different switch (p/n 8T4Z-13480-A). Always verify the correct part number with the vehicle's VIN.

Model Year Variations Within This Range

  • 2006-2009 vs 2010-2011: The 2010 model year marked a significant facelift for the Fusion/Milan platform. While many core components remained, there were changes to wiring and potentially the brake light switch part number. For example, some 2010-2011 models may require brake light switch p/n 8T4Z-13480-A instead of the earlier 6E5Z/7E5Z-13480-A. Always confirm by VIN.
  • 2008+: ABS became a standard feature on all Fusion models starting in the 2008 model year. Earlier 2006-2007 base models may not have been equipped with ABS, in which case this code would not be possible.

Diagnostic Flowchart

Other Known Issues on This Vehicle

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

  • Electronic Throttle Body (ETB) Failure 🔴 High — Common, especially on 2010-2011 models. Can cause sudden loss of power ('limp home mode') while driving. (Ref: Ford Customer Satisfaction Program 13N03 (for Fusion, but Milan is affected); TSB 09-23-5 mentions DTC P2135 related to ETB.)
  • 6F35 Automatic Transmission Problems 🔴 High — Widespread reports of harsh shifting, delayed engagement, shuddering, and premature failure. Problems can start at any mileage. (Ref: Numerous TSBs exist. A class-action lawsuit was filed concerning this transmission in Fusion and Escape models.)
  • ABS Hydraulic Control Unit (HCU) Internal Failure 🟠 Medium → Shop ABS Control Module — Affects 2006-2010 models. Internal valves can stick due to a reaction with old brake fluid, causing a soft/long brake pedal travel. (Ref: Safety Recall 19S54 (NHTSA 19V-904).)
  • Power Steering Failure 🔴 High — Common complaint, particularly in 2010 models, involving intermittent or total loss of power steering assist, making the vehicle difficult to steer. (Ref: NHTSA complaints are numerous, but no single recall covers all instances.)
  • Interior Door Handle Breakage 🟡 Low — The plastic interior door handles are known to be brittle and can break, a common complaint for 2006 models in particular.
  • Takata Airbag Inflator Rupture 🔴 High — Part of the massive global Takata airbag recall. Affects all model years (2006-2011). Propellant can degrade and cause the inflator to explode in a crash. (Ref: Multiple NHTSA recalls, including 19E-004 and 18V-020.)

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: A used part is a reasonable choice for a wiring harness pigtail if the original connector is damaged. For the main components like the sensor or switch, new is strongly recommended due to their low cost and high failure rate from wear.

Donor-vehicle mileage cap: roughly under 80000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a wiring pigtail, ensure the connector is not cracked or brittle.
  • Check for any signs of corrosion on the pins.
  • Ensure there is at least 4-6 inches of wire attached to the connector for easier splicing.

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

  • ABS Module / HCU: While expensive, a new or professionally remanufactured OEM unit is critical. Used units may have the same internal valve sticking issue (recall 19S54) and will require dealer-level programming (PMI with as-built data) to function, which can be costly and complex.

Aftermarket brands forum-validated for this vehicle:

  • Standard Motor Products (SMP)
  • Delphi
  • Motorcraft (OEM)
  • Dorman

Brands owners have reported issues with on this vehicle:

  • No-name, unbranded parts from online marketplaces should be avoided for critical safety components like ABS sensors and brake switches, as their quality and longevity are unverified.

Real Owner Stories

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

2009 Mercury Milan

Symptoms: Brake lights failed to operate when the pedal was pressed.

What fixed it: The improperly installed brake light switch was addressed as part of a manufacturer recall.

Source hint: Ford Recall 09V-232 / 09C09

2008 Mercury Milan

Symptoms: Experienced extended brake pedal travel, feeling like the pedal was soft or going too far to the floor.

What fixed it: The issue was with sticking valves inside the ABS Hydraulic Control Unit (HCU), a known problem addressed by a recall.

Source hint: Ford Recall 19S54 / 19V-904

2010 Mercury Milan

Symptoms: Sudden loss of power while driving, vehicle entered 'limp home mode'.

What fixed it: The electronic throttle body (ETB) was found to be faulty and was replaced. This was a common issue covered by Ford's Customer Satisfaction Program 13N03.

Source hint: Ford Customer Satisfaction Program 13N03

2011 Mercury Milan

Symptoms: Transmission exhibited harsh shifting, shuddering, and delayed engagement into gear.

What fixed it: This is a widespread issue with the 6F35 transmission. A definitive fix isn't listed, but numerous Technical Service Bulletins (TSBs) were issued to address the various symptoms.

Source hint: Class-action lawsuit concerning 6F35 transmission in Fusion/Escape models

Frequently Asked Questions

My 2009 Mercury Milan has a C0040 code. Is this related to the brake light switch recall?
Yes, it's very likely. Recall 09V-232 (Ford ID 09C09) was issued for some 2009 Milan models due to improperly installed brake light switches, a primary cause for code C0040. Check if your vehicle was part of this recall, as it lends high credibility to the switch being the culprit.
How can I tell if the C0040 code on my Milan is from the wheel speed sensor or the brake light switch?
Observe the symptoms. If your brake lights are malfunctioning or you can't shift out of Park, the brake light switch is the likely cause. If the ABS and Traction Control lights are on but the brake lights work fine, the right front wheel speed sensor is the primary suspect.
Can I use repair information for a Ford Fusion to fix the C0040 code on my Mercury Milan?
Absolutely. The 2006-2012 Ford Fusion is a direct platform mate that is mechanically identical. It shares the same braking system, ABS module, and experiences the same ambiguity with code C0040. It was also included in the same recalls, like 19S54 for the ABS HCU.
My scanner shows a sub-code like C0040:64. What does that mean for my Milan?
A sub-code like C0040:64, C0040:72, or C0040:73 is very helpful. The context indicates these codes can point more directly to the brake pedal switch as the cause, helping you avoid unnecessarily diagnosing the wheel speed sensor.
What's the best way to test the right front wheel speed sensor on my 2007 Milan?
Use a scan tool with live data capability to watch the right front wheel speed as you drive. If its reading is zero, erratic, or doesn't match the other three wheels, the sensor is faulty. You can also test its internal resistance with a multimeter; it should typically be between 800-2,700Ω.
I have a soft brake pedal on my 2008 Milan. Is this related to the C0040 code?
It's likely a separate, known issue. Recall 19S54 (NHTSA ID 19V-904) was issued for 2006-2010 models for sticking valves in the ABS Hydraulic Control Unit (HCU) that cause extended pedal travel. While it's a serious brake system problem, it does not directly cause the C0040 code.
How to replace the Front ABS Sensor 2006 - 2012 Ford Fusion 🚗
How to replace the Front ABS Sensor 2006 - 2012 Ford Fusion 🚗
2010 Ford Fusion Stuck in Park Won't Go in Gear - Possible Simple / Quick Fix
2010 Ford Fusion Stuck in Park Won't Go in Gear - Possible Simple / Quick Fix
How to Test a Wheel Speed Sensor | Wheel Speed Sensor Testing Methods | Abs Sensor Problem Symptoms
How to Test a Wheel Speed Sensor | Wheel Speed Sensor Testing Methods | Abs Sensor Problem Symptoms
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 May 30, 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:
  • Mercury Milan: 200620072008200920102011
In this article
🧭 Diagnostic Flowchart
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