P0504: Brake Switch "A"/"B" Correlation
The engine computer found that the two signals from the brake pedal switch, "A" and "B", do not agree with each other.
What does P0504 mean?
The brake light switch at the top of the brake pedal turns on the brake lights and also tells the engine computer when the brakes are applied. Many switches have two outputs, and the computer checks that they change together.
P0504 sets when the two signals do not correlate. Because the same switch runs the brake lights and feeds cruise control and the shift interlock, the code can come with brake light or shifting problems.
Common symptoms
- Brake lights stay on, or do not come on when the pedal is pressed
- Cruise control will not engage or will not cancel with the brake pedal
- Difficulty shifting out of Park (shift interlock)
- The engine may stall when braking at speed on some vehicles
- Check engine light on
Common causes
- A faulty or worn brake light switch, or one that is out of adjustment
- A blown brake light fuse
- A burnt out brake light bulb
- Open, shorted or loose wiring or connectors at the brake switch
- An engine computer fault (rare)
What to check with a scanner
- Have a helper watch the brake lights while you press and release the pedal. They should come on and go off every time.
- Check the brake light fuse and bulbs.
- If your car shows a brake switch status in Live data, watch it change as you press the pedal.
- Check that the switch is firmly in contact with the pedal arm and properly adjusted, following the service information.

How to read and clear P0504 with OBD Master Pro
- Connect. Plug a generic ELM327 or ELM329 adapter into the OBD2 port, switch the ignition on and connect from the app's Connection screen.
- Scan. Run Scan DTCs and confirm P0504 under Active, Pending or Permanent, along with any other codes.
- Check, repair, clear. Use the checks below, repair the cause, then clear the code and confirm it does not return.
Check that the brake lights work, then read the code again. If it returns, look at the brake switch adjustment and connector, because the switch has two circuits that must agree.
When to see a mechanic
Get professional help if any of these apply:
- The brake lights do not work or stay on
- A fuse keeps blowing
- The shift lever will not leave Park
- The code returns after the switch, fuse and bulbs have been checked
If you are unsure, a qualified technician can confirm the cause with tests such as smoke testing, pressure testing or scope readings. Clearing a code does not repair the fault.
P0504 FAQ
Is P0504 dangerous?
It can be. If the brake lights do not work, drivers behind cannot see that you are slowing down, and cruise control may not cancel with the brake pedal. Fix it promptly.
Is P0504 usually the brake light switch?
A faulty brake light switch is the most common cause. Check fuses and bulbs too, because they are quick to rule out.
Can a bad brake switch stop the car from shifting out of Park?
Yes. The shift interlock uses the brake switch signal, so a fault can make it hard to move the lever out of Park.
Check P0504 on your own car
OBD Master Pro turns your Android phone and a generic ELM327 adapter into a code reader: read and clear codes, view freeze frame and live data, and check emissions readiness.
Related guides
Check engine light on: what to do · How to read an OBD2 code (P, B, C, U) · Stored, pending and permanent codes and freeze frame · OBD2 readiness monitors explained · OBD2 glossary · OBD2 by car brand
Sources
- SAE J2012: Diagnostic Trouble Code Definitions (standard code titles)
- OBD-codes.com: P0504 technical description and causes
- RepairPal: OBD-II code P0504 definition, symptoms and common problems
- YourMechanic: P0504 OBD-II trouble code, causes, symptoms and diagnosis
Published . Updated . This guide is general information for generic SAE codes. Always follow the service information for your specific vehicle.
