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.

Severity: High — limit driving
Can I drive with P0504? 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.

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.

  1. Faulty brake light switch with burnt or corroded contacts
  2. Misadjusted switch or worn retaining clip or pedal stop pad
  3. Blown brake light fuse
  4. Damaged wiring or connector at the switch
  5. 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

  1. Have someone press the brake while you check that all brake lights work
  2. Check the brake light fuse
  3. Watch both brake switch inputs in live data while pressing and releasing the pedal
  4. Inspect the switch for proper adjustment, a broken clip or a missing pedal stop pad
  5. Check the switch connector and wiring for corrosion or damage
  6. 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

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.