Speed, idle & inputs · Powertrain · generic (SAE-defined)
P0504: Brake Switch A/B Correlation
P0504 means the two contacts in the brake pedal switch disagree, so the engine computer cannot trust whether the brake pedal is pressed.
Standard title per SAE J2012 / ISO 15031-6 · Updated 2026-11-11 · By CarWhere Research
How P0504 sets
Most brake pedal switches have two contacts, one usually for the brake lights and one for cruise control and brake information. They are wired so that one opens as the other closes. The engine computer (PCM/ECM) checks that they always show opposite states, and if they agree when they should not, it sets P0504. The brake signal is used for cruise control cancel, throttle brake override, the shift interlock and stop-start. Ford only sets the code after many mismatched brake applications and may show the wrench light instead of the check engine light.
Common causes of P0504
Roughly most likely first; the actual cause depends on the vehicle and needs testing to confirm.
- Faulty brake light switch with burnt or corroded contacts
- Misadjusted switch or worn retaining clip or pedal stop pad
- Blown brake light fuse
- Damaged wiring or connector at the switch
- Moisture in a fuse or junction box
P0504 symptoms
- Cruise control will not engage
- Brake lights stay on or do not come on
- Shift lever will not move out of Park
- Wrench, stability control or check engine light on
How P0504 is diagnosed
- Have someone press the brake while you check that all brake lights work
- Check the brake light fuse
- Watch both brake switch inputs in live data while pressing and releasing the pedal
- Inspect the switch for proper adjustment, a broken clip or a missing pedal stop pad
- Check the switch connector and wiring for corrosion or damage
- Replace or adjust the switch and confirm both inputs change correctly
Typical fixes for P0504
- Replace the brake light switch
- Adjust the switch or replace the worn clip or pedal stop pad
- Replace the blown fuse after finding the cause
- Repair the wiring, connector or wet junction box
Replace parts only after testing confirms the cause — a code names the circuit or condition that failed a check, not necessarily the faulty part. We don’t publish per-repair prices; for what households actually spend on upkeep, see car repair costs.
Related symptoms & repair costs
Manufacturer notes
Documented on Ford vehicles, which use a counter before setting the code; brake light switch problems on some Hyundai models have also been reviewed by safety regulators.
Related codes & warning lights
P0504 FAQ
What does code P0504 mean?
P0504 means the two contacts in the brake pedal switch disagree, so the engine computer cannot trust whether the brake pedal is pressed. The standard definition is "Brake Switch A/B Correlation."
Can I drive with a P0504 code?
Check that your brake lights work before driving. If they stay off or stay on, have it fixed promptly. Expect cruise control to be disabled and, on some cars, trouble shifting out of Park.
Why does P0504 stop my cruise control from working?
Cruise control relies on the brake switch to cancel when you press the pedal. If the computer cannot trust the switch, it disables cruise for safety.
Is P0504 usually an expensive repair?
It is often a straightforward fix. The most common cause is a worn or misadjusted brake light switch, which is usually easy to reach under the dash above the brake pedal.
Keep researching
More speed, idle & inputs codes
Sources
- SAE J2012 — Diagnostic Trouble Code Definitions (standard code titles)
- ISO 15031-6 — Road vehicles: communication between vehicle and external equipment for emissions-related diagnostics, Part 6: Diagnostic trouble code definitions
- U.S. EPA — Vehicle Emissions Inspection and Maintenance (I/M) programs
- U.S. EPA, 40 CFR 86.1806-17 — Federal onboard diagnostics requirements for light-duty vehicles
- Ford — published OBD system documentation
- Manufacturer service bulletin (NHTSA public archive)
General information written by CarWhere Research, not a diagnosis of your vehicle. Manufacturers can add their own sub-definitions and test conditions; confirm with the factory service information for your year, make and model. Before paying for a repair, check NHTSA for open recalls and your warranty booklet: federal law requires an emissions warranty on major emission-control parts such as the catalytic converter and engine computer.