OBD-II trouble code
P0504: Brake Switch "A"/"B" Correlation
Application matters: Match the full code and brake-input system. A/B does not establish two separate switches, universally opposite contacts or which signal other vehicle functions use.
The monitored brake-switch A/B signals did not agree as expected. Identify the fitted brake-input arrangement before adjusting or replacing a switch.
Quick facts
- System
- Powertrain
- Category
- Brake Input
- Severity
- High severity
- Driving guidance
- Depends on symptoms and vehicle guidance
- Repair cost range
- $109 – $146 (Brake light switch replacement only, if diagnosed)
- DIY difficulty
- Shop recommended
A code alone cannot establish whether driving is safe. Stop safely for a red brake or oil-pressure warning, overheating, severe misfire, stalling, or impaired braking or steering, and follow the owner's manual. Restraints faults can reduce crash protection even when the vehicle runs normally.
Browse every code in P0500–P05AE, or start from the full code library.
What does P0504 mean?
P0504 concerns the expected relationship between designated brake-switch signals A and B. The module compares them using its own logic and timing. The code does not establish one physical switch layout, adjustment method or replacement part.
Ford’s covered 2024–2025 gasoline summary separates P0504/P0571_96 correlation from the low/high brake-circuit checks and identifies it as a non-MIL warning result in that context. A generic explanation that always predicts a check-engine light or treats correlation as one open wire misses that distinction.
Check the actual brake-lamp response and all warnings, then have the relevant inputs and circuit tested. Working lamps do not prove that every signal used by engine, cruise, shift or brake controls agrees. The code also cannot certify normal hydraulic braking or authorize driving with defective brake lights.
Possible causes
- Incorrect or inconsistent brake-input response established by testing
- Switch/pedal installation or adjustment concern where applicable
- Connector, supply/return or signal-circuit fault
- Receiving-controller or configuration concern supported by the exact diagnostic path
Symptoms
- Brake-related, cruise or powertrain warning may appear
- Brake lamps may stay on, fail to illuminate or work normally despite the fault
- Cruise, starting or shift-interlock complaints may coexist on equipped vehicles
Diagnostic steps
Save the full scan report, code status, and available freeze-frame data before clearing anything. Confirm the reporting module, any failure-type suffix, and the procedure for the exact vehicle. The steps below are an overview; use manufacturer specifications and safety procedures for testing.
- 1.Record the full scan and suffix; note brake-lamp, pedal, starting and cruise complaints.
- 2.With the vehicle secured, check lamp operation without bypassing any interlock. Incorrect lamps or abnormal braking need assessment before driving.
- 3.Identify the required A/B states and timing from the fitted system’s service information. Do not assume the two states must always be opposite.
- 4.Have the specified pedal/switch, power, ground and signal tests performed. Follow actual mounting/adjustment requirements rather than swapping parts as a test.
- 5.Verify the repaired input relationship and all affected functions using the manufacturer’s checks.
Repair cost
$109 – $146 (Brake light switch replacement only, if diagnosed)
USD planning figures, not a vehicle-specific quote. Confirm the diagnosed job and whether the estimate includes diagnosis, parts, labor, programming, calibration, and taxes.
RepairPal U.S. national replacement-job example, updated September 3, 2026 and checked November 6. It does not price diagnosis, wiring, pedal or controller work. Taxes, fees, location and additional repairs are separate.
Estimate your repair
Run the numbers for your vehicle
Open the Repair Cost Estimator with brake light switch replacement preselected. Adjust labor rate and vehicle category to fit your situation.
Related repairs
These links are planning examples; the code does not confirm that any listed part has failed.
DIY vs shop
A qualified shop is recommended because this can involve braking-system diagnosis; hydraulic repairs may require a specified bleed procedure, while module replacement may require configuration or calibration. Ask the technician what testing confirmed the repair.