Skip to content
MotorFiable

BrakesGeneric OBD-II codeUrgency: Garage soon

Code P0504: brake switch A and B signals do not match

P0504 means: brake switch "A"/"B" correlation.[1][2][3] The ECU has detected that the signals from brake switches "A" and "B" do not agree with each other as they should. Autodoc Club describes it as a correlation between the two brake light switches outside the expected parameters, and CarParts.com as an incorrect signal or an electrical fault in the brake switch, which normally closes when the pedal is pressed.[1][4]

System
Brakes
Urgency
Garage soon
You can drive carefully, but book a garage appointment as soon as possible
Possible causes
6
sorted from most to least likely
Type
Generic
The same on all makes

7 sourcesHow we work

What code P0504 means

The ECU has detected that the signals from brake switches "A" and "B" do not agree with each other as they should. Autodoc Club describes it as a correlation between the two brake light switches outside the expected parameters, and CarParts.com as an incorrect signal or an electrical fault in the brake switch, which normally closes when the pedal is pressed.[1][4]

That switch does more than turn on the brake lights. Autodoc Club points out that the fault also affects cruise control, and Rick's Free Auto Repair explains that modern brake switches use potentiometers that send a variable signal when the pedal is pressed and released, and that this signal is also used by automatic stop-start systems and by the solenoid that locks the gear lever.[1][2]

It is a generic OBD-II code (it starts with P0), so it means the same on any make. AutoDTCs classes it as moderate severity: it should be fixed soon, although it does not normally leave you stranded.[3][4][5]

Original definition (SAE J2012): Brake Switch "A"/"B" Correlation[1][2][3]

Causes of P0504

From most to least likely, according to the sources.

  1. 1Faulty brake light switch. Rick's Free Auto Repair states that in most cases it is the switch that fails.[1][2][4][6]
  2. 2Switch incorrectly adjusted, or a damaged or misaligned brake pedal.[1][2][4]
  3. 3Damaged switch wiring, or corroded or loose connectors.[1][4]
  4. 4Blown brake light bulbs, or a faulty brake light circuit fuse.[1][6]
  5. 5Electrical supply problems in the brake circuit.[1]
  6. 6ECU (PCM/ECU) fault or a fault in its programming.[1][4]

Symptoms

How to diagnose P0504

In order: from the most likely and cheapest to check to the most expensive.

  1. 1Check whether the brake lights come on when you press the pedal and go off when you release it. According to CarWiki.de, if both lights stay on all the time, the switch is definitely faulty.[2][6]
  2. 2Check the brake light bulbs and the fuse for their circuit, and check the power supply.[1][6]
  3. 3Inspect the switch wiring and connectors: look for damage and clean off any corrosion.[1]
  4. 4Check the position of the brake pedal and the switch adjustment (the distance at which it operates).[1][2]
  5. 5Test the switch with a multimeter, comparing against the values in your car's workshop manual.[2][4]
  6. 6If the switch fails, replace it and adjust it according to the manufacturer's instructions. Then clear the code and do a road test.[1][2]
  7. 7If the procedure is unfamiliar to you, leave it to a garage: CarParts.com recommends consulting the car's manual and going to a professional if you are not used to this type of repair.[4]

Can I keep driving with P0504?

Garage soon

The sources agree on the essentials, with nuances. Autodoc Club says you can keep driving but that it is not advisable, because brake lights that do not work are a significant safety risk. AutoDTCs classes it as moderate: fix it soon, normally without being left stranded. CarParts.com recommends avoiding driving if the brake light switch is confirmed to be faulty, until it is replaced. The sensible course is to check the brake lights straight away and repair the switch as soon as possible.[1][3][4]

Documented faults related to P0504

Known faults of specific engines and cars, with their repair cost, the affected years and their sources.

Brake pedal, hoses and brake fluid: the most serious faults by engine and car

All faults with the brake system (97)

Headlights and lights: the most serious faults by engine and car

All faults with headlights and lights (84)

Wiring, connectors and short circuits: the most serious faults by engine and car

All faults with the electrical wiring (155)

Frequently asked questions

Can I drive with code P0504?

You can, but it is not advisable. Autodoc Club warns of the safety risk if the brake lights do not work, AutoDTCs recommends repairing it soon, and CarParts.com advises against driving with a faulty brake light switch until it is replaced. Before setting off, check that the brake lights come on and go off normally.[1][3][4]

What does "A/B correlation" mean in P0504?

That the ECU has compared the signals from brake switches "A" and "B" and they do not agree as they should. Rick's Free Auto Repair explains that modern brake switches use potentiometers that send a variable signal when the pedal is pressed and released.[1][2]

Why does P0504 affect cruise control and the automatic gearbox?

Because the brake switch signal does more than turn on the lights: cruise control also uses it and, according to Rick's Free Auto Repair, so do the solenoid that locks the gear lever and the automatic stop-start systems. That is why the sources list failing cruise control and difficulty moving the lever out of P among the symptoms.[1][2][4]

Can I repair P0504 myself?

Checking the brake light bulbs and fuse is simple. Testing the switch requires a multimeter and the values from the workshop manual, and replacing it requires adjusting it properly on the pedal. CarParts.com recommends going to a professional if you are not familiar with this type of repair.[1][2][4]

Does P0504 mean the same on all makes?

Yes. Codes that start with P0 are generic OBD-II codes and have the same definition across all manufacturers, although the repair procedure changes by model.[4][5]

Will I pass the MOT with code P0504?

If the code has switched on the engine warning light, no: with that light on, the inspection records a serious defect, and on Euro 5 and Euro 6 cars the ITV (Spain's roadworthiness inspection, similar to the MOT) also reads the OBD diagnostic system. Repair the fault before you go; clearing the code just before the inspection does not help either, because it counts as a serious defect.[7]

Not sure what is wrong with your car? Describe what you notice in the symptom diagnosis or see all fault codes.

Sources

Every fact on this page links to its source. If you find an error, let us know.

  1. Código de avería P0504Autodoc Club · Technical documentation · consulted 4 October 2026 · in Spanish
  2. Generic OBDII P Codes P0500-P0599Rick's Free Auto Repair Advice · Other source · consulted 4 October 2026
  3. P0504 - Brake Switch A/B CorrelationAutoDTCs · Technical documentation · consulted 4 October 2026
  4. P0504 Code: Brake Switch A/B CorrelationCarParts.com · Technical documentation · consulted 4 October 2026
  5. On-board diagnosticsWikipedia · Other source · consulted 4 October 2026
  6. OBD Fehlercode P0504CarWiki.de · Technical documentation · consulted 4 October 2026 · in German
  7. Desmontando mitos: ¿puede pasar mi coche la ITV con el testigo de «avería motor» encendido?Diariomotor · Motoring press · published 8 March 2021 · consulted 2 October 2026 · in Spanish