Engine knocking with the check engine light on

How to tell what's causing it

  • You hear a light pinging, rattling or knocking when accelerating or working the engine hard, such as climbing a hill, towing or passing.

    That pattern is spark knock: fuel detonating in the cylinder instead of burning smoothly. Low-octane fuel, carbon buildup, an EGR valve that does not work, overheating and a lean mixture are the listed causes, which is why lean codes (P0171, P0174) can come with pinging. Over time detonation can damage the head gasket, rings, pistons and rod bearings. Check the fuel grade the owner's manual asks for and fix any lean or cooling fault before replacing the knock sensor.

    Points to: Knock sensor, P0171, P0174

  • A knock sensor code (P0325, P0326, P0328) is stored, the engine feels a bit weaker on acceleration, and there may or may not be pinging.

    The knock sensor tells the computer when to retard the timing. A failed sensor, loose mounting or damaged wiring sets these codes, and the computer may then run a more cautious timing strategy with less power, or fail to retard the timing when real knock happens. A real internal engine knock can also make the computer report a sensor fault, so a shop checks for real knock, the wiring and the mounting before replacing the sensor.

    Points to: Knock sensor, P0325, P0326, P0328

  • The noise is a deep rapping or dull hammering, often heard once the engine is warm, sometimes with the oil light on or P0524 (oil pressure too low) stored.

    A deep rapping noise is usually rod knock from badly worn or damaged bearings. Low oil pressure, low or too-thin oil, and neglected oil changes are the listed causes, and a bearing that keeps knocking can seize or break a rod. Check the oil level with the engine off. Confirming oil pressure with a mechanical gauge and inspecting the bearings is shop work.

    Points to: Engine oil pump, P0524

  • On a Hyundai or Kia, the engine knocks, the check engine light blinks, power and engine speed are limited, and a scan shows P1326.

    Hyundai and Kia's knock sensor detection system sets P1326 when it picks up vibration that matches connecting rod bearing wear. The car then runs in a reduced-power protection mode meant only to reach a dealer, which inspects the engine and either replaces it or updates the engine computer software.

    Points to: Knock sensor, P1326

  • A rattle or knock comes from the timing end of the engine, often at cold start, and camshaft timing codes (P0014, P0016, P0017) are stored.

    These codes mean a camshaft is not where the computer wants it. Low or wrong oil, a sticking VVT solenoid, a stretched timing chain or a sticking cam phaser are the documented causes, and GM bulletins cover timing chain kits for some V6 engines with P0016 and P0017. Check the oil level and grade first; checking cam and crank correlation for a stretched chain is shop work.

    Points to: Variable valve timing (VVT) oil control solenoid, P0014, P0016, P0017

  • Misfire codes (P0300, P0301, P0303) are stored with knocking or a rough, shaking engine, or P1320 is stored on an older Nissan or Infiniti V6.

    A misfire means a cylinder is losing spark, fuel or compression; worn plugs, failing coils, vacuum leaks, low fuel pressure and low compression are the listed causes. Nissan and Infiniti bulletins tie P1320 and spark knock (detonation) to failing ignition coils on 2000-2001 Maxima and I30 models. A flashing light means stop.

    Points to: Ignition coil, Spark plug, P0300, P0301, P0303, P1320

Codes that go with it

  • P0171

    Engine computer has reached its limit adding fuel on bank 1: the mixture is lean

    Severity: Monitor
  • P0174

    Engine computer has reached its limit adding fuel on bank 2: the mixture is lean

    Severity: Monitor
  • P0325

    Knock sensor 1 circuit fault (bank 1 or single sensor)

    Severity: Inspect soon
  • P0326

    Knock sensor 1 range/performance, bank 1: the knock sensor signal is outside what the engine computer expects

    Severity: Monitor
  • P0328

    Knock sensor 1 signal too high (bank 1)

    Severity: Monitor
  • P0524

    Engine oil pressure too low

    Severity: Stop
  • P1326

    Hyundai and Kia: the knock sensor detection system (KSDS) has picked up vibration that matches abnormal connecting rod bearing wear

    Severity: Stop
  • P0014

    Exhaust camshaft timing ahead of target or slow to respond (bank 1)

    Severity: Inspect soon
  • P0016

    Crankshaft and intake camshaft positions do not agree (bank 1, sensor A)

    Severity: Inspect soon
  • P0017

    Crankshaft and exhaust camshaft positions do not agree (bank 1, sensor B)

    Severity: Inspect soon
  • P0300

    Random or multiple-cylinder misfire detected

    Severity: Inspect soon
  • P0301

    Misfire detected in cylinder 1

    Severity: Inspect soon
  • P0303

    Misfire detected in cylinder 3

    Severity: Inspect soon
  • P1320

    Nissan and Infiniti: the engine computer is not seeing the expected ignition primary signal back from the ignition coils

    Severity: Inspect soon

Sources and review

  1. Spark Knock (Detonation) — AA1Car.com (Larry Carley)
  2. Engine Noise Diagnosis — AA1Car.com (Larry Carley)
  3. ASE L1 Advanced Engine Performance Specialist Test: Composite Vehicle Type 4 Reference Booklet — National Institute for Automotive Service Excellence (ASE)
  4. What Causes a Knock Sensor Code? 11 Common Causes — Rick's Free Auto Repair Advice (Rick Muscoplat) ,
  5. How to diagnose a faulty knock sensor — Delphi Technologies Aftermarket
  6. P0326 Code: Knock Sensor 1 Circuit Range/Performance (Bank 1) — CarParts.com ,
  7. Guide to P0328 OBD error code — PartsAvatar
  8. P0333 trouble code overview — TroubleCodes.net
  9. P0171 Code: Causes, Symptoms, and How to Fix It — Identifix ,
  10. Ford P0171 & P0174 Lean Codes (Larry Carley) — AA1Car.com
  11. What To Do If Your Engine Oil Pressure Warning Light Is On — AA1Car.com (Larry Carley)
  12. Kelley Blue Book: P0524 Engine Oil Pressure Too Low — Kelley Blue Book
  13. Hyundai 24-01-068H: Engine monitoring logic update (knock sensor detection software, Service Campaign 966 family) — Hyundai Motor America / NHTSA ,
  14. Hyundai 22-01-033H: DTC P1326, abnormal noise or no crank/no start, 2.0L T-GDI and 2.4L GDI — Hyundai Motor America / NHTSA ,
  15. Hyundai 22-01-023H: Check engine lamp with DTC P1326 and/or engine noise from connecting rod bearing wear — Hyundai Motor America / NHTSA ,
  16. Hyundai Issues Recall and Engine Software Update for Certain Sonata and Santa Fe Sport Vehicles — Hyundai Motor America (press release via PR Newswire) ,
  17. Kia PI1802Y/Z (R7): Engine replacement instructions for DTC P1326 after Knock Sensor Detection System installation — Kia America / NHTSA ,
  18. Variable Valve Timing — AA1Car.com (Larry Carley, automotive technical writer)
  19. ASE A1 study guide: VVT phaser diagnostics — OpenExamPrep (independent study site, not affiliated with ASE)
  20. GM 12-06-01-009F: Information on High Feature V6 Timing Chain Kits and Chain Guide Replacements, DTCs P0008, P0009, P0016, P0017, P0018 and/or P0019 — General Motors (via NHTSA)
  21. How To Diagnose & Repair Engine Misfires — AA1Car.com (Larry Carley, automotive technical writer)
  22. Nissan NTB01-059: MIL with P1320 and/or spark knock (detonation) due to ignition coil(s), 2000-2001 Maxima — Nissan North America
  23. Infiniti ITB01-052: MIL with P1320 and/or spark knock due to ignition coil(s), 2000-2001 I30 — Nissan North America (Infiniti)
  24. 2023 Integra Owner's Manual: Indicator, Coming On/Blinking — American Honda Motor Co.
  25. 2023 Integra Owner's Manual: How to Handle Overheating — American Honda Motor Co.
  26. Owner's Manual (online): Signs your engine is overheating — Honda Canada
  27. Final Regulation Order: 13 CCR §1968.2, Malfunction and Diagnostic System Requirements (OBD II), 2004 and subsequent model-year passenger cars, light-duty trucks and medium-duty vehicles (2015 amendments) — California Air Resources Board
  28. 2020 Nissan Altima Owner's Manual — Nissan North America
  29. OBD consumer brochure: Do you drive a 1996 or newer car or light truck? (EPA420-F-02-016) — U.S. Environmental Protection Agency, Office of Transportation and Air Quality ,
Last reviewed
Written by
Gaurav Sharma
Editorial review
Technician review
Technician review pending

This page explains what a code usually means; it is not a substitute for a professional inspection. How we source and review · Report an error

My Car

Pick your car and code pages will point out notes and bulletins for it. Saved only in this browser.

Fill this in from your VIN

Used once to identify your engine; not stored.