P0504 Hyundai Code: Brake Switch A/B Correlation Explained
6 min read · by Nicole Bennett · Last updated: November 25, 2026
A p0504 hyundai code means the two brake pedal switch signals disagree with each other, so the engine computer cannot tell whether the brake pedal is pressed.
Because the brake signal controls cruise control and shifting, treat this code as a safety item and check the brake lights before you drive.
Brake work is a safety task. The checks below are for diagnosis, and any brake switch repair should be done by a qualified technician.
What the p0504 hyundai code means
P0504 is the standard code for Brake Switch A/B Correlation. The brake pedal switch has two contacts that should always show opposite states, and the code sets when they agree when they should not. The fault logic is shared, but the test points change, so check P0504 Mazda too.
The engine computer uses that brake signal for several jobs. A P0504 reference on CarWhere lists cruise control cancel, throttle brake override, the shift interlock and stop-start as functions that rely on the brake input.

Symptoms of a p0504 hyundai code
Some symptoms are easy to notice in daily driving, and others only appear when you use a specific function. The most important one is a brake light that stays on or does not come on at all.
- The brake lights stay on or do not come on when you press the pedal.
- Cruise control will not engage.
- The shift lever will not leave Park.
- A warning light is on, which may be the check engine light or another warning depending on the vehicle.
The shift lever symptom is a practical warning. If the car will not leave Park, do not try to force the lever, and have the brake signal checked before you attempt to move the vehicle.
The CarWhere page rates the severity as high. That means driving should be limited until the brake signal is confirmed, not just when the warning light is on.
What causes P0504 on a Hyundai
The reference lists the causes roughly from most likely to least likely. The switch itself is at the top of the list, followed by its adjustment and the fuse.
- A faulty brake light switch with burnt or corroded contacts.
- A misadjusted switch, or a worn retaining clip or pedal stop pad.
- A blown brake light fuse.
- Damaged wiring or a connector at the switch.
- Moisture in a fuse or junction box.
A pedal stop pad or retaining clip that has worn can change the travel of the switch. That shift can make the two contacts disagree even when the switch itself is healthy, so inspect the pedal assembly before you order a new switch.
The same reference says Hyundai brake light switch problems on some models have been reviewed by safety regulators. It does not name the models or the regulator action, so check NHTSA for open recalls on your exact vehicle before paying for a repair. Seeing the code on another make? Start with P0504 Nissan Code.

How to check P0504 step by step
Start with the simplest checks, because a blown fuse or a dead brake light can explain the code in minutes. Keep the brake pedal test safe by working with the car parked and the parking brake set.
- Have a helper press the brake while you check every brake light.
- Check the brake light fuse and replace it only with one of the same rating.
- Watch both brake switch inputs in live data while you press and release the pedal.
- Inspect the switch for proper adjustment, a broken clip and the presence of the pedal stop pad.
- Check the switch connector and wiring for corrosion or damage.
- Replace or adjust the switch, then confirm that both inputs change correctly when the pedal moves.
The two inputs should move in opposite directions. If they both show the same state for a moment, the switch or its wiring is the likely fault, and the code will return until that is fixed.
The CarWhere page reminds readers that a code names a failed circuit or condition, not necessarily the part to replace. Test first, then replace only the part the test points to. If the light returns with a different code, P0505 Hyundai is a good next read.
Other brands and what they do differently
The same reference notes that Ford sets this code only after many mismatched brake applications. It may also show the wrench light rather than the check engine light. That means a Ford owner may see a different warning from a Hyundai owner with the same fault.
Those differences are a reason to use the service information for your exact make, model and year. The page gives no numeric specifications for switch voltage or resistance, so the factory data is the only reliable reference for the values.
When to stop driving
If a brake light stays on or does not come on, or if the car will not leave Park, stop using the car until a technician confirms the brake signal. This is a safety question, not only a warning light problem.
Repair cost depends on whether the fault is a fuse, a switch, a clip or wiring. Ask for a diagnosis first, so the repair is based on the live data and the brake light test rather than a guess. A related problem on the same vehicle is explained in P0500 Hyundai Code.
Frequently Asked Questions
Is it safe to drive a Hyundai with P0504?
Not for long. The CarWhere page rates the severity as high, so limit driving and confirm that the brake lights work before you go anywhere. If a brake light is out or the pedal feels wrong, do not drive the car.
Why won’t my cruise control turn on?
Cruise control uses the brake input to cancel and to stay safe. When the two brake switch signals disagree, the computer cannot confirm the pedal state, so the system is blocked until the fault is cleared.
Can a blown brake light fuse cause this code?
Yes. A blown brake light fuse is one of the listed causes, and it is also the cheapest check. Confirm that every brake light works after any fuse replacement before you rely on the car.
Should I check for a recall first?
Yes. The CarWhere page advises checking NHTSA for open recalls before paying for repairs, and it notes that brake light switch problems on some Hyundai models have been reviewed by safety regulators.
A P0504 on a Hyundai is a brake safety issue first. Confirm the brake lights and both switch signals before you drive the car again.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0506 Hyundai: Diagnose Low Idle and Find the Right Fix
LearnP0505 Hyundai: Diagnose Idle Control Problems and Find the Right Fix
LearnP0500 Hyundai Code: Causes, Symptoms, and Diagnostic Steps
LearnP0507 Hyundai Sonata: Find the Cause of High Idle RPM
LearnP0562 Hyundai: Find the Cause of Low System Voltage
LearnP0339 Code: Crankshaft Position Sensor A Circuit Intermittent