Knock in plain English
People call it knock, ping, detonation, pinking or rattle. Every one of those names describes the sound, not the cause. The cause is simple once you picture it: part of the air-fuel charge in the cylinder gets hot enough and squeezed hard enough that it lights itself, without waiting for the spark. Chemists call that point the auto-ignition temperature and pressure. A diesel relies on it on purpose. A gasoline engine is not built to survive it.
In a healthy combustion event, the spark plug starts a flame and that flame front travels outward across the chamber at a fairly steady pace. Pressure rises progressively and pushes the piston down the bore. When the mixture auto-ignites instead, the unburned charge goes off almost all at once. The total energy is about the same, because it's the same fuel. What changes is the rate at which that energy is delivered. Releasing it in a sharp spike is like striking the piston crown with a sledgehammer every cycle, and the metallic rattle you hear is the pressure shockwave ringing through the chamber.
What knock does to an engine
The damage follows the energy. Repeated shock loads find the weakest parts first:
- Pistons: cracked crowns, broken ring lands and, when heat builds up too, holes melted straight through. Aluminum gives up well before the steel parts around it.
- Bearings: rod and main bearings get hammered flat or spun.
- Connecting rods: bent rods on engines that have seen severe or sustained detonation.
- Everything touching the flame: valves, spark plug tips, head gasket fire rings and cylinder walls all take heat they were never meant to.
That's why every good tuner treats knock as a hard boundary rather than something to live with.
The two causes: heat and pressure
If knock is the charge reaching its self-ignition point, then only two things can push it there: too much temperature and too much pressure. In the real world it's almost always a mix of both. When we calibrate an engine, we have two main tools that act on them:
| Tuning lever | What it mostly controls | How it goes wrong |
|---|---|---|
| Fuel (mixture) | Combustion chamber temperature | Too lean and the chamber runs hot, so the charge is closer to lighting itself |
| Ignition timing | How fast and how high cylinder pressure climbs | Too much advance stacks combustion pressure on top of compression and the end gas detonates |
For more on how these two interact, see our article on ignition timing vs air-fuel ratio.
Fuel as a coolant
It sounds backwards the first time you hear it, but a richer mixture makes the combustion chamber run cooler. Air on its own is a poor carrier of heat. Think about opening a hot oven: you can put your hand in the air for a moment without harm, but grab the metal rack and you'll get burned instantly. Different materials move heat at very different rates. Fuel soaks up and carries away far more heat than air does, so the extra fuel in a rich mixture pulls heat out of the chamber and leaves with the exhaust each cycle.
Run an engine lean and that cooling disappears. Chamber surfaces heat up, the incoming charge gets hotter, and it takes less to tip it into detonation. Ask any racer who has leaned out an engine at full load and they'll tell you what melts first. Usually it's a piston.
Timing and cylinder pressure
Spark timing decides when the flame starts relative to the piston's travel. Fire it too early and the burn gets going while the piston is still rising on the compression stroke. Now two things are building pressure at once: the piston squeezing the charge, and the flame expanding it. Pressure climbs faster than the flame can consume the mixture, and the portion the flame hasn't reached yet, the "end gas," is heated and compressed until it auto-ignites. That's detonation from over-advance, and it's the classic source of broken ring lands, cracked pistons, flattened bearings and bent rods.
How a Haltech ECU hears knock
You can't tune around knock if you can't detect it, and on a loud engine at full load your ears are not reliable. The Elite 1500 and Elite 2500 have knock detection and knock control built in.
The input is a knock sensor, a piezoelectric element bolted to the block. It behaves like a microphone for vibration: it picks up everything the engine is doing and sends it to the ECU. The hard part is sorting knock from all the other mechanical noise, like valvetrain, pistons and injectors.
Choosing the knock frequency
Detonation rings at a characteristic frequency that depends mostly on the engine's bore size. If you tell the ECU which frequency to focus on, it can ignore most of the other noise, much like picking one instrument out of a band. In ESP this is the knock frequency setting on the knock detection tab. There are two ways to find the number:
- Estimate it from bore size. A commonly used formula is Knock Frequency = 900,000 / (π × 0.5 × bore), which simplifies to about 573,000 / bore. It gets you in the right neighborhood.
- Measure it with the spectrogram. The ECU's spectrogram shows signal intensity across a wide frequency range. It does require the engine to actually knock (lightly, and under controlled conditions) so you can see where the energy shows up. Pick the frequency that is quiet when the engine is clean and lights up clearly when it knocks.
The measured value is always better than the formula. The goal is contrast, not just volume: a frequency that is loud all the time is useless.
Setting the knock threshold
Even at the right frequency, an engine makes background noise, and that noise rises with RPM and load. The knock threshold map tells the ECU how loud the signal has to be, at each RPM and load point, before it counts as knock.
The way we set it:
- Run the engine across its RPM and load range under conditions you are confident are knock-free.
- Build a rolling strip graph showing the raw knock sensor level and the knock threshold side by side.
- Shape the threshold map so it sits roughly 3 to 4 dB above the background signal everywhere.
- If the gap is more than about 5 dB anywhere, pull the threshold down closer to the real signal so you don't miss light knock.
Get it wrong in the other direction, with the threshold below the background noise, and the ECU will think the engine is knocking constantly. It keeps pulling timing and the car feels flat and lazy.
What the ECU does when it detects knock
| Setting | What it does | Our advice |
|---|---|---|
| Short term retard | Timing pulled immediately when a knock event is registered | Enough to stop the event from continuing. About 5 degrees is a sensible place to start |
| Short term retard decay rate | How quickly timing is returned to the base map value, in degrees per engine cycle | Not so fast that the engine goes straight back into knock |
| Hysteresis (blackout) time | How long the ECU waits after an event before it listens again | Long enough that one event isn't counted twice |
| Long term trim step | Timing removed from the long term trim map for each knock event | Around 0.5 degrees, then watch where it accumulates |
Long term learning
With long term ignition trim enabled, each knock event also takes a small bite out of the long term ignition trim map at that RPM and load. Over time the map builds a picture of exactly where your engine is on the edge. On engines with more than one knock sensor, like a V6 or V8 with one per bank, there's a separate long term map for each bank. The ECU knows which cylinders belong to which bank from the main setup.
Once the engine has stopped knocking everywhere, you can fold what it learned back into the tune. In the knock control function's long term trim tab, the Apply to Base Table button moves the learned corrections into your base ignition map.
It reacts after knock has already happened. A tune that relies on it to stay alive is a bad tune. Get fuel and timing right on the dyno first, then let knock control catch the bad tank of fuel or the hot day. Our Don't Blow Your Engine article covers the other protections worth setting.
Troubleshooting
| Symptom | Usually |
|---|---|
| Constant knock counts, engine feels sluggish | Threshold below background noise, or the frequency is picking up normal mechanical noise |
| Audible knock but the ECU doesn't react | Threshold too high, wrong frequency, or a loose or poorly mounted sensor |
| Knock returns right after timing comes back | Decay rate too quick, or the base map is simply too aggressive at that point |
| Long term trim keeps growing in one area | A real tuning problem there: check fuel, timing and intake temps before anything else |
Knock FAQ
Is knock the same as pre-ignition?
Not quite. Detonation happens after the spark, when leftover charge lights itself. Pre-ignition is the mixture lighting before the spark, often from a hot spot. Both are destructive, and people use the names loosely, but knock control is designed around detonation.
Can I tune by ear instead of using knock detection?
At idle and light load, maybe. At full load with an exhaust and a dyno fan running, no. We use detection hardware such as the Pro Tuner Knock Ears kit alongside the ECU's own knock control.
Does more fuel always stop knock?
Richer helps with temperature, but it won't fix timing that is simply too advanced, and too rich costs power. The right answer is the correct mixture and the correct timing together. See the knock control user's guide for the full setup, or book a free consultation if you'd like us to look at your logs.




