Skip to content

P0504 – Brake Switch A / B Correlation (OBD2)

P0504 means "Brake Switch A / B Correlation". Two signals that should agree with each other no longer match. The control unit cannot tell which one is wrong, so it stores a correlation fault for the brake pedal switch.

Last updated

P0504 quick summary

Fault codeP0504
MeaningBrake Switch A / B Correlation
SystemPowertrain (Engine & Transmission)
VehiclesGeneric OBD2
SeverityMedium
Can I drive?Yes, but check your brake lights immediately – driving without working brake lights is dangerous and illegal.
Repair cost€10 – €150

How the brake pedal switch is monitored

The brake pedal switch tells the control units when you brake – for the brake lights, cruise control, start-stop, automatic gearbox lock-up and drive-by-wire safety; these codes mean its signals are faulty or do not agree.

Most modern cars have a brake switch with two contacts (A and B) or a Hall-type brake pedal sensor. One contact switches the brake lights, the other tells the engine and gearbox control units that the brake is pressed. The control unit checks that both always change together.

Codes report that the two signals disagree (P0504), that the switch circuit is low or high, or that the torque converter/brake switch B circuit is faulty (P0703, P0719, P0724). A faulty brake switch can disable cruise control, stop the gear selector from leaving Park, prevent the engine from starting (push-button start) and cause brake lights that stay on or do not work.

The switch is a cheap wear part; incorrect adjustment after replacement is a common reason for codes returning.

On VAG vehicles (VW, Audi, Škoda, Seat, Cupra), VCDS and older VAG testers can show this code as the five-digit VAG code 16888 (P0504). Both numbers mean the same fault.

Symptoms of P0504

  • Brake lights stay on or do not work
  • Cruise control does not work or switches off
  • Gear selector stuck in Park
  • Engine does not start with push-button start
  • Check Engine or ESP light on

Most common causes of P0504 (most likely first)

Mechanic's Pro Tip

When fitting a new brake switch, follow the exact adjustment procedure – many switches self-adjust only if the pedal is held in the right position while clicking the switch in. A wrongly set switch brings the code straight back.

  1. 1.One of the two sensors is faulty or drifting

    Most likely
  2. 2.Mechanical cause

    For example a stretched timing chain, a wrong installation or a leak that really makes the two values differ.

  3. 3.Wiring fault on one of the two signals

  4. 4.Worn or failed brake pedal switch

  5. 5.Incorrectly adjusted switch

    Common after replacement or pedal work.

  6. 6.Broken pedal stop rubber

    The switch plunger is not pressed correctly.

  7. 7.Blown brake light fuse or bulb fault

Step-by-step diagnostic guide

  1. 1

    Check the brake lights

    Have someone check the brake lights while you press the pedal.

  2. 2

    Compare both signals side by side

    Display both values together in live data (or on a two-channel oscilloscope) and see which one is out of line with the actual conditions. Fix that signal or the mechanical cause first.

  3. 3

    Read codes and switch status

    Read the codes and watch both brake switch signals in live data while pressing and releasing the pedal – they must change together.

  4. 4

    Check switch position

    Check the switch adjustment and the rubber pedal stop.

  5. 5

    Measure the contacts

    Check the two contacts with a multimeter.

    Multimeter: One contact is normally open and the other normally closed; they must change state within the first few millimetres of pedal travel.

  6. 6

    Replace and adjust

    Replace the switch and adjust it according to the manufacturer's instructions, then clear codes.

How do I read fault codes? →Where the OBD2 port is, which scanner to use and how to read and clear codes step by step.

Frequently asked questions

Can I keep driving with P0504?

Yes, but check your brake lights immediately – driving without working brake lights is dangerous and illegal.

How much does it cost to fix P0504?

Typical repair costs are 10 € – 150 €, depending on the cause and the vehicle. The most common fixes are: one of the two sensors is faulty or drifting; mechanical cause; wiring fault on one of the two signals. Always confirm the cause with the tests above before buying parts.

Why does cruise control stop working with a brake switch fault?

Cruise control must switch off when you brake. If the control unit cannot trust the brake signal, it disables cruise control for safety.

Is a brake switch expensive?

No, it is one of the cheapest parts – usually a few dozen euros including fitting.

What is the difference between P0504 and similar codes?

P0504 belongs to a group of codes for the same component that differ in the type or location of the fault: C0023 – Stop Lamp Control; C0040 – Brake Pedal Switch A; C0041 – Brake Pedal Switch B; P0571 – Cruise Control/Brake Switch A Circuit Malfunction; P0572 – Cruise Control/Brake Switch A Circuit Low; P0573 – Cruise Control/Brake Switch A Circuit High. The tests on this page apply to the whole group; the type of fault tells you where to start.

Related fault codes

This guide is for information only. Working on vehicles can be dangerous — if you are unsure, have the car checked by a qualified mechanic. Values can differ between model years; always check the manufacturer's repair information.