OBD-II Generic Error Code P0504: How to Fix It

Medium 30-60 minutes Medium Severity Verified June 2026
Error Code
P0504
Brand
OBD-II Generic
Product Type
automotive
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
30-60 minutes
Error code P0504 means your car's computer detected a mismatch between the two brake pedal position switches. This usually points to a faulty brake light switch, misadjusted pedal, or wiring issue. The problem needs fixing to ensure brake lights work properly and cruise control disengages.
Ad

Tools You'll Need

How to Fix Error Code P0504

  1. Safety First: Park and Disconnect Battery

    Always disconnect the battery before working near brake pedal switches to prevent short circuits.
  2. Locate the Brake Light Switch

  3. Inspect the Brake Switch Connector and Wiring

  4. Test the Brake Light Switch Functionality

    Be cautious not to short the test light probe against metal parts.
  5. Adjust or Replace the Brake Light Switch

    Ensure the switch is adjusted so the brake lights are off when pedal is released, but turn on with slight pedal movement.
  6. Clear the Error Code and Test Drive

Parts You May Need

Brake light switch
Check Price on Amazon
Brake light switch
Check Price on Amazon
Brake light switch
Check Price on Amazon
Brake light switch
Check Price on Amazon
Ad

When to Call a Professional

If the code returns after replacing the switch, or if you find damaged wiring that requires soldering or harness replacement, consult a professional mechanic. Also seek help if you are uncomfortable working under the dashboard near the airbag system.

Frequently Asked Questions

What does error code P0504 mean?
P0504 means the brake switch A and B signals do not match. The computer expects both switches to change state together. A mismatch indicates a faulty switch, adjustment, or wiring issue.
Can I drive with a P0504 code?
You can drive short distances, but problems with brake lights (safety hazard) and cruise control disengagement may occur. It's best to fix it promptly.
How much does it cost to fix P0504?
A brake light switch costs $10-$40, and an OBD2 scanner can be $20-$100. DIY repair is cheap; professional repair may be $100-$200 including labor.
Will P0504 cause my car to fail inspection?
Yes, because it affects brake light operation. Fixing the issue is necessary to pass emissions or safety inspection.
Can I fix P0504 without an OBD2 scanner?
You can replace the switch without a scanner, but you won't be able to clear the code. The code will eventually clear after several drive cycles if fixed, but a scanner is recommended.