P0504

Brake Switch A / B Correlation

Powertrain Chassis/Safety Brake System Electronics 🟡 Moderate — Fix within a week ⚠️ Drive with Care
💬

What This Actually Means

In plain language — no jargon

Your car's brake switches aren't agreeing with each other about whether the brakes are being pressed. Think of it like two security guards at a door who keep giving different answers about whether someone entered.

Symptoms You May Notice

3 known symptoms for this code
Check engine light illuminated
Brake lights not functioning properly
Cruise control disabled or malfunctioning
🔬

How Your ECU Detects This

Technical sensor logic and voltage thresholds

The ECM monitors dual brake switch inputs (typically a primary and redundant switch) to verify brake pedal status for safety systems like cruise control and emission controls. The switches should activate and deactivate in correlation; if their signals diverge beyond acceptable timing, the fault triggers.

Voltage & Parameter Thresholds

ParameterNormal RangeFault Condition
Brake Switch A to B Activation Delay < 100 milliseconds correlation > 100 ms or no correlation detected
Switch Signal State Agreement Both switches match (on/off simultaneously) Switches in disagreement for > 1 second
🔧

Diagnostic & DIY Fix Guide

Check these in order — from cheapest to most complex
1
Brake pedal switch connector
Inspect and reseat the brake switch electrical connectors at the pedal assembly.
2
Brake switch assembly
Replace the primary or secondary brake switch if contacts are corroded or switch is mechanically stuck.
3
Brake switch wiring harness
Check for damaged, frayed, or corroded wiring between switches and ECM; repair or replace as needed.
⚠️

When to See a Professional Mechanic

Not all fault codes are safe to DIY

Code P0504 is a moderate fault. You can generally drive to a workshop, but avoid long trips or high-load driving (motorway, uphill towing) until it is diagnosed. If the code keeps returning after clearing, or if you notice the symptoms listed above worsening, do not delay professional diagnosis. Many moderate codes have multiple possible root causes — a mechanic with live OBD data can identify the exact fault more efficiently than part-by-part trial and error.

Safety note: OBD-II codes identify the system or circuit where a fault was detected — they do not always identify the exact failed component. A professional mechanic using live sensor data will diagnose the root cause more accurately than replacing parts based on the code alone.
🔄

How to Clear Code P0504

What happens after you fix the fault

Once the fault is repaired, P0504 can be cleared using any OBD-II scanner. Connect the scanner, navigate to "Clear Codes" or "Erase DTCs," and confirm. The check engine light turns off immediately.

The code will return if the root cause was not actually fixed. The ECM re-detects the fault within 1–3 drive cycles and sets the code again.

✅ Safe to Clear When
  • Fault has been diagnosed and repaired
  • You want to confirm the repair worked
  • Code appeared after a sensor was cleaned
⚠️ Do Not Clear When
  • Preparing for an emissions/PUC test
  • Root cause is still undiagnosed
  • Check engine light is flashing
Emissions test note: Clearing codes resets OBD readiness monitors. Most vehicles need 50–100 km of mixed driving before monitors complete. Do not clear codes immediately before an emissions or PUC inspection.