Engine · Cutaway inline-four

What does a knock sensor do?

A knock sensor is a small microphone-like sensor bolted to the engine block that listens for spark knock, the sharp ping of fuel burning out of turn. When it hears it, the engine computer retards the spark timing until it stops. A bad one sets the check engine light, and the engine may lose power or knock.

Updated 4 minute read

The knock sensor lit in the app's 3D model of the engine, with the rest of the assembly darkened
  1. Knock sensor
  2. Cylinder block
  3. Intake manifold
Rendered from the app's 3D model.

How does a knock sensor work?

Inside is a piezoelectric crystal: squeeze it and it makes a small voltage. Bolted tight to the block, it feels every vibration of the engine, and spark knock rings the block at a pitch of its own, so the engine computer listens for that pitch at the moment each cylinder fires.

When it hears knock, the computer retards the spark on that cylinder, firing it a little later so the pressure rises more gently, then creeps the timing back once the knock stops. That lets an engine run close to the edge for the best power and economy without damaging its pistons.

In the app's engine the knock sensor is bolted to the intake side of the block, between the middle two cylinders, where it can hear all four. Some engines have two, and V engines often have one for each bank.

What are the symptoms of a bad knock sensor?

  • The check engine light. A code for the knock sensor's circuit is the usual first sign: an open or shorted sensor, or wiring that has broken or rubbed through.
  • Less power and worse fuel economy. With no knock signal, many engines play safe and keep the timing retarded, so they feel flat and use more fuel.
  • Pinging or knocking under load. If the sensor is dead and the computer does not retard the timing, real spark knock goes unchecked: a metallic rattle when you accelerate hard or climb. Why is my engine knocking?
  • Hesitation when you accelerate. A sensor that reads ordinary engine noise as knock makes the computer pull the timing back, so the engine hesitates and stumbles under load.

Can you drive with a bad knock sensor?

Fix it soon

Usually, for a while, gently. Most engines fall back to safe, retarded timing when the sensor fails, so they run with less power and use more fuel. Avoid hard acceleration, towing and climbing in a high gear until it is fixed, and fill up with at least the octane the owner's manual gives. If you hear a rattle or a ping as you accelerate, ease off: knock that goes on can damage the pistons.

Why does an engine knock?

In a healthy engine the spark lights the mixture and a flame spreads across the chamber in an orderly way. Spark knock happens when the heat and pressure ahead of that flame make the last of the mixture explode on its own, a sharp shock that rings the cylinder like a hammer blow. Low-octane fuel, heat, carbon deposits that raise the compression and timing that is too far advanced all make it more likely. A little now and then does no harm; a lot, for long, can crack the edges of the pistons or burn holes in their crowns, which is why the knock sensor is there. The engine knocking page covers the deeper knock of a worn bearing, which no sensor can fix.

Does a new knock sensor fix pinging?

Only if the old one had failed. A knock sensor does not stop knock, it reports it, and the computer’s timing does the rest. If an engine pings with a working sensor, look at the fuel’s octane, carbon in the combustion chambers and anything that makes the engine run hot or lean, such as a vacuum leak or a cooling fault. The four-stroke engine guide shows how each spark is timed, and why a little later is safer.

What does replacing a knock sensor involve?

  1. Read the fault codes, and check the sensor's connector and wiring, which fail as often as the sensor.
  2. Disconnect the battery and reach the sensor, which on many engines means removing the intake manifold or the parts around it.
  3. Unplug the sensor and undo its bolt, or unscrew it from the block.
  4. Clean the block's mounting face so the new sensor sits flat and makes full contact: anything between them deadens what it hears.
  5. Fit the new sensor and tighten it to the torque the maker specifies, since too loose or too tight changes what it hears.
  6. Reconnect everything, clear the codes and test drive the car.

Tighten every nut and bolt to the torque spec in the manufacturer's service manual for your car.

The sensor itself is simple; reaching it is the work. On many engines it sits under the intake manifold, which has to come off with new gaskets, so it is often done alongside other work in the same place.

Questions people ask

What causes a knock sensor to fail?

Heat and age crack the sensor or its connector, and the wiring that runs under the intake manifold breaks or rubs through. Coolant or oil leaking onto it, and a sensor tightened wrongly at a past repair, cause the rest.

Can a bad knock sensor cause a misfire?

Not directly: it does not fire the plugs or feed the fuel. A sensor that reads noise as knock can make the engine hesitate under load, which can feel like a misfire, but a true misfire has other causes.

Where is the knock sensor located?

Bolted to the side of the engine block, often under the intake manifold, near the middle of the engine. In the app's engine it is on the intake side, between the second and third cylinders.

Related

Symptoms

Parts nearby

The whole system

Updated . Published by 3D Mechanic. General information, not a diagnosis or a repair manual: cars differ, so follow the manufacturer's procedures and specs for yours, and ask a qualified technician if in doubt.

Further reading

3D Mechanic app icon

3D Mechanic Watch your engine run in 3D

Get the app