Pinking is a metallic rattling that appears when an engine is working hard, most obviously when climbing a hill in too high a gear or accelerating from low revs with a heavy right foot. It sounds like marbles being shaken in a tin, it disappears the moment you ease off, and it is one of the few engine noises where the first thing to try costs the price of a tank of fuel. It is also, if left alone indefinitely, capable of damaging pistons.
What is actually happening inside the cylinder?
In normal combustion, the spark plug ignites the mixture and a flame front spreads smoothly across the chamber, pushing the piston down with a controlled rise in pressure. Detonation occurs when the unburnt mixture ahead of that flame front becomes hot and compressed enough to ignite spontaneously. Two flame fronts then collide, producing a sharp pressure spike that rings the metal of the piston and head. The noise you hear is literally the structure of the engine being struck.
Why does fuel octane matter?
The octane rating of petrol is a measure of its resistance to igniting under pressure rather than a measure of its energy content. Higher octane fuel tolerates more compression before it detonates, which is why engines with high compression ratios or turbochargers specify a minimum grade. Filling a car that requires ninety-eight with ninety-five will often produce pinking under load, and correcting that is simply a matter of using the right fuel from the next fill onwards.
What else causes it?
Carbon deposits are a common culprit, because they raise the effective compression ratio and create hot spots that ignite the mixture early. They build up on cars used mainly for short low-speed journeys. An engine running hotter than it should is more prone to detonation, so a partially blocked radiator or a weak cooling system can cause pinking as a secondary symptom. Ignition timing that has been advanced too far, a lean mixture caused by an air leak, and a faulty coolant temperature sensor all produce the same result.
What does the knock sensor do?
Modern engines carry a knock sensor, essentially a microphone bolted to the block, which detects the frequency of detonation and instructs the engine management to retard the ignition timing until it stops. This is why many cars will run on lower grade fuel without any audible pinking at all, and it also explains why they feel slower and use more fuel when they do. If you can hear pinking on a modern car, either the sensor has failed or the condition is severe enough that the correction is not enough.
How much damage does it do?
Occasional light pinking on a hot day with a low tank is unlikely to cause lasting harm. Sustained heavy detonation is a different matter, because the pressure spikes hammer the piston crowns, the top ring lands and the head gasket. In severe cases pistons crack or hole, and turbocharged engines are more vulnerable because cylinder pressures are higher to begin with. This is why an engine that pinks noticeably should not simply be driven around indefinitely.
What should you try first?
Run a tank of the correct or higher grade fuel from a busy forecourt, and give the car a proper extended run at motorway speeds rather than a series of short trips. That combination addresses fuel quality and carbon deposits at once and resolves a large proportion of cases. If the noise persists, have the coolant temperature checked, the fault codes read for anything relating to the knock sensor, and the intake inspected for air leaks, because at that point the fault is in the engine rather than in the tank.
In the meantime, changing gear earlier and avoiding heavy throttle at low revs will reduce the cylinder pressures that cause detonation, which limits any damage while the underlying cause is being sorted out.