P0504: Brake switch A/B correlation

Powertrain (engine and transmission) · vehicle speed, idle control and auxiliary inputs · Generic OBD-II code

9owner reports
10service bulletins
2makes affected
Short answer

P0504 means "Brake switch A/B correlation". It is a generic (SAE standard) code, so it means the same on every make. It belongs to the powertrain (engine and transmission) system (vehicle speed, idle control and auxiliary inputs). Owners mention P0504 in 9 NHTSA complaints, most often for the 2007 Hyundai Santa FE, 2006 Hyundai Sonata and 2015 Ford Mustang. Manufacturers reference it in 10 service bulletins.

Cars that report P0504 most

Service bulletins that mention P0504

Manufacturers tell dealers how to fix known problems in technical service bulletins. These mention P0504:

Mazda CX-90 · bulletin 01-001-24a

Jan 31, 2024

Some vehicles may exhibit check engine light turns on with DTC P0504:00 [PCM] (Brake switch circuit problem) stored in memory.

Mazda CX-90 · bulletin 01-001-24

Jan 2, 2024

Some vehicles may exhibit check engine light turns on with DTC P0504:00 [PCM] (Brake switch circuit problem) stored in memory.

Mazda CX-90 · bulletin SA-062-23

Oct 16, 2023

Some customers may experience a "Push Button Start Malfunction.

Ford F-350 SD, F-550 SD, F-450 SD, F-250 SD · bulletin SSM 51432

Mar 13, 2023

Some 2020-2022 F-Super Duty vehicles may exhibit a condition where the vehicle will not shift out of park (P).

Ford F-250 SD, F-450 SD, F-550 SD, F-350 SD · bulletin SSM 50864

Jun 16, 2022

Some 2020-2022 F-Super Duty vehicles may exhibit a condition where the vehicle will not shift out of park (P).

Ford F-250 SD, F-350 SD, F-450 SD, F-550 SD · bulletin SSM 50848

Jun 14, 2022

Some 2020-2022 F-Super Duty vehicles may exhibit a condition where the vehicle will not shift out of park (P).

Ford Ecosport · bulletin TSB 22-2011

Jan 24, 2022

Some 2021 EcoSport vehicles may exhibit a condition where the cruise control system is inoperative with an illuminated powertrain malfunction (wrench) indicator and illuminated brake warning indicator with diagnostic…

Ford Ecosport · bulletin TSB 21-2422

Nov 30, 2021

Some 2021 EcoSport vehicles equipped with a 1.0L EcoBoost engine may exhibit a condition where the auto start/stop system is inoperative or cruise control disabled with an illuminated powertrain malfunction (wrench)…

Land Rover Range Rover Sport, LR3, LR4 · bulletin SSM52757

Jan 5, 2015

Brake Switch Adjustment and Setting Procedure - Excessfive brake pedal pressure required to get the auto transmission out of park, warning lights on the instrument pack with associated DTCs for brake light switch…

Land Rover Range Rover Sport, LR3, LR4 · bulletin SSM527572

May 23, 2013

Brake Switch Adjustment and Setting Procedure - Excessfive brake pedal pressure required to get the auto transmission out of park, warning lights on the instrument pack with associated DTCs for brake light switch…

What owners report with P0504

I drive a 2012 Hyundai Sonata Limited. After a recent fill-up, I began experiencing delayed acceleration, engine hesitation, and what appears to be misfiring—especially at low throttle. Most notably, the brake lights stay illuminated even when the car is turned off, which drains the battery and poses a major safety hazard. I scanned the vehicle with an OBD-II scanner and received code P0504, which points to a brake light switch malfunction. I also noticed that pressing the start button with my foot off the brake still starts the engine instead of going into accessory mode—confirming abnormal brake signal behavior. I replaced the brake light switch, which temporarily fixed the issue, but the symptoms returned within a day.

2012 Hyundai Sonata owner · filed Jul 8, 2025 · NHTSA complaint

This is a known issue on the 2015 mustangs. The recall only invlolves vehicles from certain states with high temps and or humidity but does not include the state of missouri which sees both high temps and high humidity. DTC code p0504. Brake lamp switch has already been replaced and no issue with wiring. Positive the plastic stop bumper is the issue.

2015 Ford Mustang owner · filed May 19, 2024 · NHTSA complaint

My brake lights no longer function. My "ESC off" light and check engine light appeared. I had a mechanic scan my car regarding the aforementioned issues and the code that displayed was "p0504". After researching this code I have discovered: the engine control module (ECM) has detected a fault in correlation between the two brake switch circuits. This very problem has resulted a massive recall for Hyundai & kia vehicles. Unfortunately, my vehicle is not eligible for the recall according to the VIN look up for this recall campaign (110). I should not have to pay out of pocket for this manufacturer defect!!!

2007 Hyundai Sonata owner · 82,771 miles · filed Apr 23, 2015 · NHTSA complaint

ESC off light on dash then check engine. Code is p0504 for brake switch. This condition is covered under other Hyundai campaigns and recalls but not for our VIN / build date. Please consider working with Hyundai to provide resolution to this issue. We are also being told there is a two week wait to have this repair performed. Vehicle safety during this delay is a concern should the ESC system malfunction while driving. Thank you.

2007 Hyundai Santa FE owner · 85,000 miles · filed Jun 21, 2013 · NHTSA complaint

Have had occurrences of 'check engine' light come on and the code that came up was p0504 indicating a brake switch malfunction. After several trips with the car, the 'check engine' light goes off, but reoccurs at a later date.

2009 Hyundai Azera owner · 85,122 miles · filed Jun 20, 2013 · NHTSA complaint

Faulty brake switch a/b. OBD codes p0571 & p0504 recorded. Symptoms: brake lights would not light with brake pedal depressed. Cruise control would turn on but not allow a speed to be set. Also ESC off light remained on dash solid. Seems to be exact symptoms associated with NHTSA campaign ID number 09v122000. We never received any notice of that recall from Hyundai. When I brought it to the attention of my local Hyundai dealership, I was told that recall did not apply to my vehicle. When I contacted Hyundai support I was told the same thing. I see numerous other Hyundai owners who have had this problem were also told the recall did not apply to their vehicle (via internet reports). I believe the recall should have applied to my vehicle.

2007 Hyundai Santa FE owner · 56,000 miles · filed Sep 13, 2012 · NHTSA complaint

Frequently asked questions

What does code P0504 mean?

P0504 means "Brake switch A/B correlation". It is a generic (SAE standard) code, so it means the same on every make.

Can I drive with a P0504 code?

It depends on the symptoms. If the check engine light is flashing, the car runs rough, or warning lights for brakes, steering or airbags are on, stop driving and have it checked. A steady check engine light usually means you can drive carefully to a shop, but don't ignore it for long.

Which cars have the P0504 code most often?

In NHTSA owner complaints, P0504 is mentioned most for the 2007 Hyundai Santa FE, 2006 Hyundai Sonata, 2015 Ford Mustang, 2009 Hyundai Azera and 2007 Hyundai Sonata.

Is there a service bulletin for P0504?

Yes. Manufacturers have sent NHTSA 10 bulletins that mention P0504, for example Mazda bulletin 01-001-24a: Some vehicles may exhibit check engine light turns on with DTC P0504:00 [PCM] (Brake switch circuit problem) stored in memory.

Definitions from the OBD-II code database; owner reports and bulletins from NHTSA. Updated Nov 30, 2026.