Your 2021 Sentra's idle should be smooth and steady. When the engine surges up and down at stoplights and throws a P0505 code, the idle control system is struggling to maintain a stable RPM. On modern Sentras with electronic throttle control, this points to specific components.
What P0505 Indicates
The P0505 code means "Idle Control System Malfunction." The engine computer controls idle speed through the electronic throttle body. When it can't achieve the target idle RPM, it sets this code. The surging you feel is the computer constantly adjusting, over-correcting, and chasing the correct idle.
Idle Surge Symptoms
- RPM bouncing between 500-1500 at idle
- Engine seems to want to stall then catches
- Vibration felt through steering and seats
- May be worse in Drive than in Park
- Check engine light with P0505
Common Causes on the 2021 Sentra
- Carbon-fouled throttle body: Deposits preventing proper throttle plate position
- Vacuum leak: Unmeasured air entering after the throttle
- Dirty MAF sensor: Incorrect air readings confuse idle control
- Throttle body motor fault: The actuator can't position accurately
- Faulty throttle position sensor: Built into throttle body, sending wrong signals
- Wiring issue: Intermittent connection to throttle body
Throttle Body Cleaning
Before expensive repairs, try cleaning the throttle body:
- Remove intake tube to access throttle body
- Spray throttle body cleaner on the plate and bore
- Wipe clean with a rag (don't scrub the coating off)
- Reassemble and perform idle relearn
Idle Relearn Procedure
After cleaning or repairs, the computer needs to relearn idle:
- Turn key to ON (don't start) for 30 seconds
- Turn key OFF for 30 seconds
- Repeat 3 times
- Start engine and let idle for 10 minutes without touching gas
Repair Costs
- Throttle body cleaning: $100-$200 (DIY: $10)
- MAF sensor cleaning: $50-$100
- Vacuum leak repair: $100-$300
- Throttle body replacement: $400-$800