P0504 — Brake Switch “A”/”B” Correlation #
Note: The code description may vary depending on the vehicle manufacturer.
- Brake Switch “A”/”B” Correlation Malfunction (Toyota, Lexus, Subaru)
- Brake Switch Circuit Correlation (Hyundai, Kia)
- Brake Pedal Position/Brake Switch Correlation (Volkswagen, Audi)
Summary of DTC P0504 #
DTC P0504 indicates that the Engine Control Module (ECM) or Powertrain Control Module (PCM) has detected an inconsistency between the two brake pedal switch signals, commonly referred to as “Switch A” and “Switch B.” In modern vehicles, two independent brake switch circuits are used for safety and redundancy: one typically controls the brake lights, while the other reports pedal activity to the ECM for functions such as cruise control and automatic transmission logic. When these signals do not match as expected—such as one switch indicating the brake is pressed while the other does not—the system logs P0504. This is a critical check to ensure the vehicle’s braking and safety systems are functioning reliably.
Common Symptoms for DTC P0504 #
A P0504 code can present a range of symptoms, from subtle to immediately obvious. In many cases, drivers may notice changes in how the vehicle behaves during braking or in related systems. Be mindful of the following:
- Brake lights that do not illuminate or stay on constantly
- ABS (Anti-lock Braking System) or traction control warning lights illuminated
- Cruise control not engaging or disengaging unexpectedly
- Transmission shifting issues (on some models)
- Check Engine Light (CEL) illuminated
Probable Causes for DTC P0504 #
The most frequent causes of P0504 are related to electrical or mechanical faults in the brake switch circuits. Here are the most common culprits, ranked by likelihood:
- Faulty brake pedal switch (internal failure or misalignment)
- Wiring issues (such as damaged, corroded, or loose connectors)
- Incorrectly adjusted or installed brake pedal switch
- Faulty brake light bulbs that affect the circuit integrity (less common)
- ECM/PCM failure (rare, but possible if all else checks out)
Step-by-Step Diagnostic for DTC P0504 #
Diagnosing P0504 requires a logical, methodical approach. If you are an advanced DIYer or technician, follow these steps to isolate the fault:
- Scan for related codes and record freeze-frame data for P0504 and any ABS, traction, or body control DTCs.
- Visually inspect the brake pedal switch for secure mounting, proper adjustment, and visible damage.
- Check brake light operation: Do they turn on and off with pedal movement? Are they stuck on or off?
- Test both brake switch circuits using a digital multimeter or scan tool—verify each switch changes state with pedal action.
- Inspect wiring and connectors at the brake switch and along the harness for corrosion, breaks, or loose pins.
- Consult OEM wiring diagrams and test for continuity and correct voltage at the switch and ECM inputs.
- If all else checks out, consider ECM/PCM diagnostics or consult a dealership for advanced testing.
Possible Repairs for DTC P0504 #
Once the root cause is found, the corresponding repair should resolve the code. Common fixes include:
- Replace the brake pedal switch if faulty or worn
- Adjust or reinstall the brake pedal switch to manufacturer specifications
- Repair or replace damaged wiring or connectors (solder, splice, or connector replacement)
- Replace faulty brake light bulbs if they affect circuit integrity
- ECM/PCM replacement (rare—only after all other causes are ruled out, and with OEM confirmation)
Is It Safe to Drive with Code P0504? #
Limited: Driving with a P0504 code is not recommended except to reach a repair facility. While the vehicle may still operate, this fault can affect critical safety features such as brake lights, cruise control, and ABS. In some cases, the brake lights may not function properly, increasing the risk of rear-end collisions. Address this issue promptly for your safety and that of others on the road.
Vehicles Most Commonly Affected by DTC P0504 #
P0504 is a generic OBD-II code but is frequently reported on vehicles from certain manufacturers, particularly those employing dual brake switch designs. Vehicles where this code is most often observed include:
- Toyota (Camry, Corolla, RAV4, Prius, Tacoma)
- Hyundai (Elantra, Sonata, Tucson)
- Kia (Optima, Sorento, Forte)
- Volkswagen (Jetta, Passat, Golf)
- Subaru (Outback, Impreza, Legacy)
Common Mistakes & Best Practices for P0504 #
When tackling a P0504 code, several pitfalls can lead to wasted time or recurring issues. Avoid these mistakes and follow these best practices:
- Replacing the brake switch without checking alignment or wiring
- Overlooking simple causes like blown brake light bulbs or loose connectors
- Not using OEM parts when replacing the brake switch—aftermarket switches may not match signal characteristics
- Neglecting to clear the code and retest the system after repairs
- Failing to scan for related ABS or body control codes that could offer more clues
Express FAQ for DTC P0504 #
Curious about some common questions drivers and technicians have regarding P0504? Here are quick answers:
-
Q: Will my car fail inspection with a P0504 code?
A: Yes, most regions require all brake lights and emissions-related systems to function properly for inspection. P0504 will typically trigger a check engine light, resulting in a failed test until repaired. -
Q: Can I bypass the brake switch to clear the code?
A: No, bypassing or shorting the switch is unsafe and will not resolve the underlying issue. The ECM/PCM monitors both circuits for safety and redundancy; proper repair is essential.




