P0504: Brake Switch A/B Correlation

Updated November 24, 2026

Most brake light switches have two separate circuits, A and B, that change state together when you press the brake pedal. One usually runs the brake lights and the other tells the computers the brake is applied, for cruise control, the shift interlock and push-button starting. P0504 means the two signals don't agree, which usually points to the switch, its adjustment or its wiring.

COMPZA may earn a commission when you buy through links on this page, at no extra cost to you. How we make money.

🔧 Want to check this yourself? An OBD2 scanner reads the code; models with live data also show the sensor readings used in the checks below. See code readers and scanners from $24.99 ↓ · Which scanner do I need?

Common causes

Code meanings can vary slightly by manufacturer. Use these as a starting point and confirm with your vehicle's service information or a mechanic before replacing parts.

Symptoms

Is it safe to drive?

Before driving, have someone check that the brake lights come on when you press the pedal and go off when you release it. If they don't work, or stay on, don't drive until it's fixed; drivers behind you can't tell when you're braking. If the red brake warning light is on or the pedal feels soft or different, that's not this switch; stop driving and have the brakes checked. If the brake lights work normally, get it fixed soon.

How to check it with a scanner

  1. Plug an OBD2 scanner into the port under the dashboard and read all stored codes and the freeze-frame data (the conditions when the code set).
  2. Have a helper watch the brake lights while you press and release the pedal.
  3. Check the brake light fuse; if it's blown, look for a shorted wire or bulb socket before replacing it.
  4. With the ignition off, look up at the top of the brake pedal for the switch and the small plastic or rubber stop pad it presses against. A missing or broken pad is a common cause.
  5. With the key on and engine off, watch both brake switch signals in live data while pressing and releasing the pedal; both should change together every time.
  6. After a repair, clear the code and drive normally for a few days to confirm it doesn't come back.

A basic code reader shows the code; scanners with live data let you watch sensor readings, which is what you need for most of the checks above. See OBD2 scanners under $100.

Code readers and scanners in stock

From partner stores' live product feeds. Check that the tool covers your vehicle's make, model and year on the retailer's page before you buy.

Affiliate links. AUTELOnline prices updated Dec 4, 5:23 PM EST · LAUNCH X431 Online prices updated Dec 4, 5:35 PM EST.

Many brake light switches must be set to a specific position or gap when installed; follow your service information so the switch fully releases with the pedal up.

Search eBay for your vehicle

Affiliate links: COMPZA may earn a commission from qualifying eBay purchases at no extra cost to you. Add your vehicle in eBay's parts finder to see parts that fit.

Questions

What does P0504 mean?

P0504 is the generic OBD2 code for "Brake Switch A/B Correlation." Most brake light switches have two separate circuits, A and B, that change state together when you press the brake pedal. One usually runs the brake lights and the other tells the computers the brake is applied, for cruise control, the shift interlock and push-button starting. P0504 means the two signals don't agree, which usually points to the switch, its adjustment or its wiring.

Is it safe to drive with P0504?

Before driving, have someone check that the brake lights come on when you press the pedal and go off when you release it. If they don't work, or stay on, don't drive until it's fixed; drivers behind you can't tell when you're braking. If the red brake warning light is on or the pedal feels soft or different, that's not this switch; stop driving and have the brakes checked. If the brake lights work normally, get it fixed soon.

How do I check P0504 myself?

Read the code and freeze-frame data with an OBD2 scanner, then: Have a helper watch the brake lights while you press and release the pedal. Check the brake light fuse; if it's blown, look for a shorted wire or bulb socket before replacing it. With the ignition off, look up at the top of the brake pedal for the switch and the small plastic or rubber stop pad it presses against. A missing or broken pad is a common cause. With the key on and engine off, watch both brake switch signals in live data while pressing and releasing the pedal; both should change together every time.

Related codes

📬 Get the weekly deals email

One email a week with the best current deals from our partner stores: home, kitchen, tech, car and gifts. No spam, unsubscribe anytime.

Emails include affiliate links; COMPZA may earn a commission at no extra cost to you. See our privacy policy.