The Quick Answer above is the generic definition. What follows is the model-specific detail for the Mercedes-Benz models that log P0504.
P0504 on Mercedes-Benz: Causes, Symptoms and Fix Cost
P0504 on a Mercedes-Benz means the two internal circuits of the brake light switch do not agree. Modern brake switches send two signals to the ECU for safety: one that closes when the pedal is pressed and one that opens. If the ECU sees both circuits in the same state at the same time, it sets P0504. The fix is almost always a new brake switch, sometimes combined with a pedal position adjustment.
Connect any standard Bluetooth OBD2 adapter to your Mercedes-Benz and Skanyx tells you what P0504 means on that engine, whether it is safe to keep driving, and what the fix should cost. Free on iPhone and Android.
Get Skanyx freeWhat does P0504 mean on a Mercedes-Benz?
Mercedes C-Class
2008-2024W204 and W205 C-Class have well-documented brake switch failures, often setting P0504 together with a fault for stop-start system disabled. Mercedes uses a more complex switch with multiple internal contacts, so a single broken contact triggers the code. Cruise control and stop-start return to normal after replacement.
What causes P0504 on a Mercedes-Benz?
Beyond the generic causes listed on the main P0504 page, these are the patterns noted for Mercedes-Benz models:
How to diagnose P0504 on a Mercedes-Benz with OBD2
Follow these steps to pinpoint the root cause of P0504:
- Use a scan tool to view live brake switch data. Most ECUs show two signals (BLS and BTS or similar). Press the pedal and verify both change state cleanly together
- Inspect the pedal at rest. The switch plunger should be fully extended and resting against the pedal stop with no preload. A loose stop pad lets the pedal sit too low and pre-presses the switch
- Remove the connector and inspect for bent pins or corrosion. Reseat firmly and recheck
- If both signals stay correlated only when the connector is wiggled, repair the wiring. Otherwise, replace the brake switch as a unit
- Clear codes, perform any required relearn for cruise control, and confirm the brake lights work both at rest and when the pedal is pressed
How much does P0504 cost to fix on a Mercedes-Benz? (EUR)
Estimated repair costs for P0504 in EUR, compiled across makes. Expect Mercedes-Benz parts and labour towards the upper end of each range.
Prices estimated as of March 2026. Costs vary by region, vehicle, and shop.
Codes related to P0504
These codes are often seen alongside P0504 or point to related issues, on any make:
Looking for the full P0504 reference (all makes, full diagnosis flow, complete repair cost matrix)?
See the main P0504 guideDiagnose P0504 on your Mercedes-Benz
Your car logged P0504. Skanyx reads it on any standard Bluetooth OBD2 adapter, tells you whether it is safe to keep driving, and shows the €20-€150 repair range so you know the number before a shop quotes you. Free on iPhone and Android, and you do not need to be a mechanic to read it.
Get Skanyx free