P0504 — Brake Switch "A"/"B" Correlation

OBD2 code P0504 flags a problem with the ABS / stability control (brake switch "A"/"B" correlation). Short, gentle driving to a shop is usually possible. Common culprits: damaged sensor wiring or corroded connector, blown fuse or low voltage to the ABS module, faulty ABS module or pump motor.

powertrain (engine/transmission)

Is it safe to drive?

Caution: brake-switch signals disagree P0504 does not by itself prove that hydraulic braking has failed, but the disagreement can affect brake lamps, cruise control, and ABS-related functions. If the pedal feels abnormal, brake lamps behave inconsistently, or an ABS or brake warning remains on, stop safely and arrange inspection. If braking is normal and no warning is present, drive cautiously to a qualified repair facility.

Typical symptoms

  • The ABS or stability-control warning light may illuminate with P0504 stored in the control module.
  • Brake lights may remain on after the pedal is released or fail to illuminate consistently when the brake pedal is pressed.
  • Cruise control may refuse to engage or may cancel unexpectedly because the brake-switch inputs disagree.
  • P0504 may appear as an active, pending, or intermittently stored code without an obvious brake-system symptom.
  • The ABS control module may record P0504 together with a brake-position input or circuit-related fault.

Common causes

  • A brake pedal position switch that is worn, loose, or adjusted incorrectly can prevent the A and B contacts from correlating properly.
  • An internal failure in the dual-contact brake switch may make one circuit indicate pedal release while the other indicates pedal application.
  • Corrosion, water intrusion, or a loose terminal in the brake switch connector can create an intermittent P0504 condition.
  • Damaged wiring, a chafed harness, or an open circuit in one brake-switch signal path to the ABS control module can cause a correlation mismatch.
  • A poor ground or unstable power reference at the brake switch or ABS module can make both correlation signals unreliable.
  • An incorrectly oriented, incompatible, or improperly adjusted replacement brake switch may create P0504 after repair.
  • Less commonly, an internal input-circuit failure in the ABS control module can be responsible for the conflicting signals.

How to diagnose with an OBD scanner

  1. Confirm the P0504 fault and related codes Connect an OBD scanner, such as an ELM327 interface used with AIScanAuto, and read stored, pending, and active faults. Confirm P0504 and check for related brake-switch, ABS, or electrical faults. Save the freeze-frame data before clearing anything.
  2. Watch both brake-switch channels Using live data, operate the pedal slowly through its full travel while monitoring brake switch A and B. The channels should follow the manufacturer-defined correlation pattern. Determine the expected normally open or normally closed states from service information rather than assuming both electrical inputs are identical.
  3. Inspect the switch and connector Examine the brake pedal switch for looseness, a cracked actuator, or a pedal that does not return fully. Disconnect the connector and inspect terminals for corrosion, bent pins, water, and heat damage. Check that any replacement switch is the correct part and is installed in the specified orientation.
  4. Verify adjustment and circuit integrity With the pedal released, verify brake-switch adjustment against the service procedure. Test the continuity and reference voltage of both A/B circuits, including their grounds and wiring to the ABS module. Look for an open, short, high-resistance connection, or damaged harness section.
  5. Repair, clear, and validate P0504 Repair the confirmed wiring, connector, ground, or switch defect and verify pedal operation. Clear P0504 with the scanner, then test pedal release and application while watching both live inputs. Road-test if required and confirm that P0504 does not return and the ABS warning remains off.

Approximate repair cost

A typical independent-shop estimate for diagnosing and repairing P0504 is approximately USD $120-$350. A switch replacement may fall near the lower end, while tracing and repairing corroded connectors, damaged wiring, or ABS-module input faults can cost more. Figures are estimates and vary by region.

Common questions

What does P0504 mean specifically?

P0504 means the ABS control module detected that brake switch A and brake switch B did not show the expected relationship for the pedal position.

Is it safe to drive with P0504?

Driving may be possible if the pedal feels normal, brake lights work, and no ABS or brake warning is active, but the fault should be diagnosed promptly.

What most commonly causes P0504?

A misadjusted or internally faulty brake pedal switch is common, while corroded connectors and damaged wiring in one of the two signal circuits are also frequent causes.

How is P0504 diagnosed without replacing parts blindly?

A scanner is used to monitor both brake-switch inputs during pedal operation, allowing a mismatched channel, bad adjustment, or wiring fault to be isolated before replacement.

Your brake pedal feels normal. The car stops. So why did the check engine light just flash on with code P0504? This trouble code points specifically to a mismatch inside the brake safety system — the ECU has detected that two brake switch signals are not agreeing with each other. In plain terms, the powertrain control module compares the state of your brake lights circuit against the ABS module's input. When those two signals fall out of sync for too long, P0504 gets stored.

The system at play here involves two separate brake switches wired in parallel. Switch "A" tells the PCM you pressed the pedal; switch "B" feeds that same information to the stability control module. Both should report the same thing. If one flips state while the other does not, the control unit sees an impossible situation — someone is telling the car the brakes are on while another signal says they are not. That contradiction triggers P0504. The code lives under the powertrain category because it affects engine/transmission behavior, specifically the cruise control inhibit circuit that relies on brake pedal position.

P0504 does not set on the first hiccup. Most manufacturers require the discrepancy to appear across multiple drive cycles before the PCM permanently logs the fault and lights the dash. This two-step logic exists to prevent false triggers from momentary electrical noise. When P0504 finally sticks, the ABS module typically disables stability assist functions until the issue clears. That snapshot of conditions saved at the moment of failure — the freeze frame — becomes invaluable during diagnosis.

Common Symptoms of P0504

The most obvious clue is a dashboard warning. The ABS or electronic stability control indicator often turns solid or flashes, depending on your vehicle. Here is what owners typically report:

  • ABS fails to activate during hard braking — the pedal locks instead of pulsing
  • The brake pedal feel changes, sometimes feeling harder or softer than usual
  • Cruise control refuses to engage or suddenly cancels
  • The speedometer shows incorrect speed or fluctuates unexpectedly
  • The stability control system displays a disabled message on the information center
  • In some cases, traction control stops working and the corresponding warning lamp illuminates

What Triggers Code P0504?

The root causes almost always trace back to the wheel speed sensing circuit or the module that reads it. When diagnosing, prioritize the most frequent culprits first:

  • A failed or intermittent wheel speed sensor, particularly at one wheel
  • Wiring damage — broken insulation, corroded connectors, or loose pins in the ABS harness
  • Metal contamination or physical damage to the tone ring mounted on the hub bearing assembly
  • A faulty ABS control module unable to process sensor signals correctly
  • Moisture intrusion into sensor connectors causing intermittent opens or shorts
  • Aftermarket wheels or brake work that displaced a sensor or damaged its mounting

Diagnosing P0504 Step by Step

A systematic approach keeps you from replacing good parts. Follow these steps in order:

  1. Connect an OBD2 scanner and confirm P0504 is stored. Record the freeze frame data before clearing anything — that snapshot reveals RPM, load, coolant temperature, and vehicle speed at the moment of failure.
  2. Pull all stored codes from every module. Related DTCs such as wheel speed sensor faults often point directly to the failing component. Check manufacturer TSBs for your exact make, model, and year — many P0xxx codes have documented factory fixes or software calibrations available through the dealer.
  3. Perform a thorough visual inspection of the wiring harness feeding the ABS and wheel speed sensors. Look for chafed wires, bent pins, corrosion buildup, and any signs of connectors that got pulled loose during prior service.
  4. Use the scanner to display live wheel speed PID data for all four corners. Drive slowly while watching the numbers. A faulty sensor drops out, spikes erratically, or shows a speed that does not match the others.
  5. Physically examine each sensor tip and the corresponding tone ring. Metal shavings, chips, or debris clinging to the ring surface can generate false signals.
  6. Clear the code and complete a drive cycle that recreates the freeze frame conditions. If P0504 returns, you have confirmed the fault and narrowed the circuit.

Repair Options and Costs for P0504

Always chase the cheap fix before assuming the worst. The most common repairs and their typical price ranges at independent shops:

  • Replace a single wheel speed sensor — parts and labor run $120–$350 depending on location and vehicle
  • Repair damaged sensor wiring or corroded connector — $80–$250 for harness repair or connector replacement
  • Repair or replace the ABS control module — $400–$1,200 depending on whether the unit is rebuilt or new

The total cost to resolve P0504 typically falls somewhere between $80 and $1,200. Wiring issues and sensors represent the lower end of that spectrum. A failed ABS module pushes the bill toward the upper limit. Getting a precise diagnosis before purchasing parts will almost always keep you on the cheaper side of that range.

Can You Drive with P0504 Set?

Your base hydraulic brakes still function, so driving is not impossible. That said, this code carries a caution severity rating. Without working ABS, your stopping distance increases on wet or slippery pavement. Electronic stability control cannot intervene if a wheel starts to slip during cornering or hard acceleration. These systems exist specifically for low-traction situations where loss of control happens fast. Drive conservatively, avoid aggressive braking, and schedule the repair as soon as reasonably possible. If a red brake warning lamp accompanies the check engine light, treat that as an immediate safety concern and stop driving.

Related OBD2 codes