P0504 Nissan Code: Causes, Symptoms, and Brake Switch Fixes
14 min read · by Nicole Bennett · Last updated: November 25, 2026
The P0504 Nissan trouble code indicates a Brake Switch “A”/”B” Correlation fault, meaning the Engine Control Module (ECM) detected a mismatch between the two redundant signals monitoring your brake pedal position. Instead of receiving matching inputs when you press or release the brake pedal, the computer sees one circuit reporting that the pedal is pressed while the second circuit reports that it is released. Because Nissan vehicles rely on dual brake pedal switches to operate rear stop lamps, cruise control, shift interlocks, and push-button ignition systems, a single switch malfunction can disrupt multiple vehicle functions at once.
This diagnostic trouble code can appear across OBD-II compliant Nissan cars, crossovers, SUVs, and trucks equipped with dual-circuit brake pedal switches. While the underlying electrical fault is often localized to a compact switch assembly above the brake pedal arm, ignoring P0504 creates immediate road hazards, including dark rear brake lights and an inability to shift out of Park.
What Does the P0504 Nissan Code Mean?
Under the standardized OBD-II system required on US passenger cars and light trucks starting in model year 1996, P0504 is a generic powertrain code defined as Brake Switch “A”/”B” Correlation. On Nissan vehicles, the ECM monitors two independent electrical pathways from the brake pedal assembly to verify that braking commands are accurate before cutting cruise control or enabling transmission gear selection.

Most traditional Nissan brake pedal assemblies use a dual-circuit stop lamp switch housing two internal contacts that operate in opposite states. Switch A is normally open and closes to send battery voltage to the rear brake lights when the pedal moves downward. Switch B is normally closed and opens when the pedal is depressed, sending a complementary state change to the ECM. When the ECM sees both circuits open simultaneously or both closed simultaneously beyond a brief transition window, it logs P0504.
Code behavior and sensor hardware differ across Nissan model years and trims. Older and mid-generation Nissan models typically use a mechanical plunger-style stop lamp switch mounted on a threaded or twist-lock bracket above the pedal arm, whereas newer models equipped with advanced driver assistance systems may use a multi-wire electronic brake pedal position sensor. Depending on how often the signal mismatch occurs, a scanner may report P0504 as a pending code after one failed trip, a confirmed code that illuminates the Malfunction Indicator Light, or a permanent code that clears automatically only after the fault is repaired and the ECM completes its self-test. The wiring and part locations differ by make, as P0504 Ford Code shows for the same code.
Common Symptoms of a P0504 Fault on Nissan Vehicles
Drivers usually discover a P0504 fault through secondary electrical glitches rather than engine roughness, because the brake switch communicates with body, chassis, and transmission controllers. Depending on whether Switch A or Switch B failed open or closed, one or several symptoms can appear together.
- Illuminated Check Engine Light: The ECM commands the dashboard warning lamp on once the correlation error is confirmed across consecutive drive cycles.
- Inoperative or Stuck Brake Lights: All rear brake lamps and the high-mount third brake light may fail to illuminate when pressing the pedal, or they may stay lit continuously after you park and exit the car.
- Transmission Locked in Park: The automatic or CVT shift interlock solenoid relies on a valid brake pedal signal before unlocking the gear selector from Park.
- Push-Button Start Failure: Nissan models with Intelligent Key push-button ignition require a confirmed brake pedal depression signal before the starter will crank.
- Disabled Cruise Control and Warning Lights: Cruise control will refuse to engage, and companion Anti-lock Braking System (ABS) or Vehicle Dynamic Control (VDC) indicators may illuminate on the instrument cluster.
- Engine Stalling During Braking: On certain applications, conflicting brake and throttle plausibility signals can cause the engine to stall when slowing down from highway cruising speeds.
| Observed Symptom | Affected System | Likely Circuit Condition |
|---|---|---|
| Brake lights do not turn on | Exterior stop lamp circuit | Switch A stuck open, blown stop fuse, or open power feed |
| Brake lights stay on with pedal released | Pedal stopper or Switch A | Missing rubber pedal stopper pad or Switch A welded closed |
| Shifter stuck in Park with working brake lights | Shift interlock and ECM input | Switch B correlation circuit fault or broken harness wire |
| Push-button ignition will not crank | Intelligent Key start authorization | ECM or BCM fails to see brake pedal depression signal |
Primary Causes and the Nissan Sentra Brake Switch Recall
A worn or internally contaminated stop lamp switch is the leading cause of P0504 on Nissan vehicles, followed by deteriorated brake pedal stopper pads and wiring faults. Because internal switch contacts switch battery power each time the brake pedal is pressed, carbon buildup and mechanical wear gradually degrade signal timing between Switch A and Switch B. Shops often compare notes across makes for this code, and P0504 Chevy Brake Switch Fault is a good reference.

For owners of model year 2016 through 2019 Nissan Sentra sedans, a documented factory defect directly ties to this failure mode. According to NHTSA Safety Recall Report 21V-135 (Nissan campaign PM971), Nissan recalled 807,376 Sentra vehicles because silicone-based grease used on nearby HVAC and brake booster clevis pins can off-gas vapors into the switch housing. Under normal electrical arcing inside the switch, those vapors oxidize into insulating silicon dioxide buildup across the contact surfaces, causing an open circuit, Check Engine Light illumination, dark rear stop lamps, and engine no-start conditions.
Under the recall remedy, Nissan dealerships replace the stop lamp switch assembly (part number 25320 AX10A) and install a protective grommet (part number 24268 6KE0A) to seal the switch against surrounding grease vapors. Across other Nissan models and engines, specific root causes vary by model year and engine configuration, including the following issues:
- Disintegrated Brake Pedal Stopper Pad: Many Nissan pedal arms use a small plastic or rubber stopper button that presses the switch plunger when the pedal is at rest. When that button crumbles with age, the plunger extends through the empty mounting hole, keeping Switch A closed and triggering a correlation mismatch.
- Improper Switch Plunger Adjustment: If a replacement switch is threaded too far in or backed out too far on its bracket, Switch A and Switch B trip at uneven pedal travel depths.
- Blown Stop Lamp Fuse or Harness Damage: A blown fuse in the cabin fuse block, a loose brake switch connector under the dash, or chafed wires near the steering column can drop voltage on one leg of the circuit.
Safety Risks and Whether It Is Safe to Drive with P0504
Driving a Nissan with an active P0504 code is unsafe and strongly discouraged, even if the engine still starts and accelerates normally. Repair databases classify P0504 as an urgent fault because loss of rear brake lamp illumination leaves following drivers with zero visual warning when you slow down in traffic.
Beyond rear-end collision exposure, an intermittent brake switch failure can strand you without warning. If the shift interlock stops recognizing your foot on the brake pedal after you park at a store, the shifter will remain locked in Park, or a push-button start system will refuse to crank the engine. Additionally, if Switch B fails while cruise control is active on the highway, tapping the brake pedal may fail to cancel cruise control immediately.
Tip: Before driving your Nissan to a parts store or repair shop with P0504 stored, walk behind the vehicle while an assistant presses the brake pedal to verify whether the left, right, and center high-mount stop lamps illuminate. If the brake lights stay dark or remain stuck on, arrange a tow or inspect the stop lamp switch and fuse at home first.
How to Diagnose P0504 on a Nissan with an OBD2 Scanner
Pinpointing whether a P0504 code stems from a failed switch, a missing pedal stopper pad, or a wiring fault is straightforward using an OBD2 scan tool that displays live data. Rather than replacing parts immediately, follow a systematic sequence starting at the diagnostic connector and moving toward the brake pedal bracket. If the light returns with a different code, P0506 Nissan is a good next read.
- Retrieve All Codes and Freeze Frame Data: Connect your scanner to the 16-pin J1962 diagnostic port located under the driver-side dashboard near the steering column. Turn the ignition to the ON position without starting the engine, then record whether P0504 is stored, pending, or permanent, along with any companion ABS, Vehicle Dynamic Control, or Body Control Module codes. Check the freeze frame snapshot to see the vehicle speed and engine load at the exact moment the correlation mismatch occurred.
- Monitor Live Brake Switch PIDs: Open the live data stream on your scan tool and select the parameters for Brake Switch A (often labeled Stop Lamp Switch) and Brake Switch B (often labeled Brake Pedal Position). Slowly press the brake pedal all the way down and release it several times while watching the screen. Both parameters must switch states together each time the pedal moves; if one parameter stays frozen or lags behind the other, the fault is isolated to that circuit.
- Inspect the Pedal Arm and Switch Plunger: Shine a flashlight up above the brake pedal arm to inspect the stop lamp switch housing and the rubber stopper button on the pedal bracket. Confirm that the switch plunger rests squarely against an intact stopper pad when the pedal is released and extends smoothly without binding when the pedal is depressed.
- Check Fuses, Connector Pins, and Battery Voltage: Verify that the stop lamp fuse in the interior fuse box has continuity and inspect the switch harness plug for backed-out terminals or green corrosion. If multiple chassis warning codes appear alongside P0504, test system voltage with a multimeter to verify standard OBD-II electrical reference values of roughly 12.6 volts at rest and 13.5 to 14.7 volts while running, since low voltage can trigger false correlation errors.
If live data shows intermittent dropouts that are hard to reproduce while parked, check your scanner’s Mode 06 onboard monitoring results if supported for your Nissan model year. As outlined in the TroubleCodes.net P0504 diagnostic guide, verifying circuit continuity and reference voltage at the switch connector before ordering components prevents unnecessary part swaps when a chafed wire or blown fuse is the real culprit.
Fixing the Fault and Nissan Emissions Inspection Rules
Once testing confirms which component failed, repairing P0504 usually involves replacing the stop lamp switch assembly, installing a new brake pedal stopper pad, or repairing a damaged wire in the under-dash harness. If a blown stop lamp fuse is discovered during inspection, trace the wire routing along the pedal bracket before inserting a replacement fuse, because TroubleCodes.net notes that an unresolved short circuit will immediately blow the new fuse again.
When installing a mechanical plunger-style Nissan stop lamp switch, set the plunger clearance carefully so the housing body does not bottom out against the pedal arm. After locking the switch into its bracket, reconnect the electrical plug, clear the stored trouble codes with your OBD2 scanner, and verify that the left, right, and center high-mount rear brake lights illuminate cleanly, the gear selector shifts smoothly out of Park, and live scanner data shows Switch A and Switch B changing states together. Keep in mind that permanent DTCs cannot be erased manually with a scan tool; they clear automatically once the fault is fixed and the ECM completes its internal drive-cycle self-test.
Drivers preparing for a state smog or emissions test should also understand how P0504 affects inspection results. Under standard OBD-II emissions inspection rules, a vehicle fails the plug-in check only when the Check Engine Light is commanded on, when too many readiness monitors remain incomplete after clearing codes, or when the inspection scanner cannot communicate with the diagnostic port. A historical or pending code stored in memory with the Check Engine Light turned off will not cause an OBD-II emissions test failure on its own.
Repair Cost Factors: DIY Replacement vs. Repair Shop
Fixing a P0504 fault on a Nissan is typically one of the more affordable powertrain repairs, though the final bill depends on whether you replace the switch yourself or hire a technician. Understanding the main cost drivers helps you budget accurately and avoid paying out of pocket for recall-covered work. P0562 Nissan covers another issue owners of this vehicle run into.
- Recall Eligibility: Nissan estimated in its filing for NHTSA Safety Recall 21V-135 that roughly 20 percent of the recalled 2016 through 2019 Sentra sedans experience stop lamp switch contamination. Running your 17-character Vehicle Identification Number (VIN) through the NHTSA recall lookup tool confirms whether a Nissan dealership will replace the switch and install the protective grommet free of charge.
- Parts Selection: An aftermarket or OEM stop lamp switch assembly and a replacement rubber pedal stopper pad are relatively inexpensive components, whereas an electronic brake pedal position sensor on newer Nissan models with adaptive cruise control carries a higher parts cost.
- Shop Labor Hours: Replacing an accessible under-dash stop lamp switch generally requires less than an hour of standard shop labor, plus any diagnostic fee for scan-tool testing. Labor time increases if a technician must remove lower knee bolster panels, trace a broken wire behind the dashboard, or perform electronic pedal sensor calibration.
- DIY Difficulty Level: Because the switch sits directly above the brake pedal arm inside the cabin, DIYers with a flashlight and basic hand tools can usually complete the swap quickly without lifting the vehicle.
Frequently Asked Questions
Can a faulty brake light switch drain a Nissan battery overnight?
Yes. When Switch A sticks in the closed position or the rubber pedal stopper breaks off, the rear brake lights and center high-mount lamp remain lit continuously after you shut off the engine, drawing constant electrical current that can discharge the battery overnight.
How do you shift a Nissan out of Park if P0504 locks the gear selector?
Most Nissan models with an automatic or CVT console have a small covered shift-lock release slot near the base of the shifter. Prying off the cap and pressing a small screwdriver or mechanical key blade into the slot manually releases the interlock pawl so you can move the shifter into Neutral for towing.
Why does P0504 sometimes turn on ABS or VDC warning lights on a Nissan?
According to AutoZone’s brake light switch diagnostic reference, the Anti-lock Braking System and stability control modules share brake pedal switch inputs with the ECM to coordinate traction intervention and brake-over-accelerator torque reduction, so an implausible signal causes those modules to illuminate warning lights.
Do replacement Nissan brake light switches require scan-tool programming?
Mechanical plunger-style stop lamp switches do not require electronic programming, though the plunger depth must be adjusted properly against the pedal arm. However, newer Nissan vehicles equipped with non-contact electronic brake pedal position sensors may require a zero-point pedal stroke relearn using a bidirectional OBD2 scanner.
Can aftermarket LED brake light bulbs trigger a P0504 code on a Nissan?
Installing aftermarket LED tail light bulbs without proper load resistors alters the electrical resistance and voltage drop across the stop lamp circuit, which can cause the ECM to detect a false correlation mismatch between Switch A and Switch B.
Code P0504 on a Nissan means the Engine Control Module detected conflicting signals between the two internal circuits of the brake pedal switch, creating immediate safety risks if your rear brake lights fail or the shifter locks in Park. Checking live brake switch data on an OBD2 scanner, inspecting the pedal stopper pad, and verifying recall coverage on affected Sentra models lets you resolve the fault quickly and restore safe braking signals.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0507 Nissan Rogue: Find the Cause of High Idle and Fix It
LearnP0506 Nissan: Diagnose Low Idle and Fix the Problem
LearnP0500 Nissan Code: Meaning, Causes and How to Check It
LearnP0562 Nissan: Find the Cause of Low System Voltage
LearnP0505 Nissan Altima: Diagnose and Fix Idle Problems
LearnHow to Reset ESP BAS Light: Check the Brakes First