P0504 Code: Brake Switch A/B Correlation
The P0504 code indicates that the two signals from the brake pedal switch do not agree. It is usually caused by the switch itself, its adjustment or the rubber pedal stop. Cruise control stops working while the code is active.
- Severity
- Medium
- Can I keep driving?
- Yes, but with caution
- Estimated cost
- $15 to $150
- Difficulty
- Easy
- System
- Idle and Speed Control
- Applies to
- All OBD2 vehicles
On this page
What the P0504 code means
Many brake switches have two contacts. One closes when you press the pedal (brake lights), and the other opens when you press it (cruise control and the computer). The computer expects them to always be in opposite states. If they match for a period of time, it stores the P0504 code.
It is a very common and inexpensive fault. The switch wears out or goes out of adjustment, or the rubber stop on the pedal falls off and leaves the switch halfway through its travel. A blown brake light fuse can also cause it.
While the code is active, cruise control does not work and, on some vehicles, the automatic shift lever will not leave Park or the engine will not start with the push button.
P0504 code symptoms
- Cruise control that does not work.
- Brake lights that do not come on or stay on.
- The shift lever will not leave Park (some vehicles).
- Check engine light on.
Likely causes of the P0504 code
- Brake switch worn or out of adjustment. The most frequent cause.
- Rubber pedal stop fallen off, so the switch sits halfway through its travel.
- Blown brake light fuse, which leaves one of the two contacts without a signal.
- Switch connector damaged by the movement of the pedal.
How to diagnose the P0504 code step by step
- Watch the state of both signals on the scan tool as you press and release the pedal. They should change at the same time and in opposite directions.
- Check the rubber stop on the pedal.
- Check the brake lights.
- Measure continuity of both contacts in both positions.
How to fix the P0504 code
- Replace or adjust the switch.
- Replace the rubber stop.
- Replace the fuse if it is blown.
- Clear the code and check the cruise control.
Technical reference data
- One normally open contact (lights) and one normally closed contact (cruise control and computer).
- Approximate values only: check the manufacturer data for your vehicle.
Brand-specific notes
This fault is very frequent on several makes, and some models had service campaigns for it.
P0504 on Hyundai
Very frequent on Hyundai vehicles.
P0504 on Kia
Very frequent on Kia vehicles.
P0504 on Ford
Very frequent on Ford vehicles.
P0504 on GM
Very frequent on GM vehicles.
Questions about the P0504 code
There are no questions about this code yet. Tell us about your case: vehicle, symptoms and what you have already checked.