Blog · 2026-11-10
When does the spark plug ignite the air fuel mixture?
Stefan Bogdanescu
Founder & Senior Architect
The Timing of the Spark in Internal Combustion Engines
The debate over whether a spark plug fires at the end of the compression stroke or the beginning of the power stroke is a classic point of confusion that often stems from differing definitions of "power stroke." In strict thermodynamic terms, the firing event marks the precise transition between these two phases. The ignition does not occur at the very end of compression, nor does it happen well into the expansion phase; it happens exactly at the moment the piston reaches Top Dead Center (TDC) on the compression side.
To understand why this timing is critical for developers working with embedded systems or engine control units (ECUs), one must visualize the cylinder pressure curve. During the compression stroke, the piston moves upward, drastically increasing the pressure and temperature of the air-fuel mixture. If the spark fires too earlyâwhile the piston is still moving upâthe mixture detonates while being compressed further. This condition, known as knocking or pre-ignition, causes a violent pressure spike that can physically damage the cylinder head or crack the piston. The mechanical work done by the expanding gases is wasted because the energy is released before the piston has reached its optimal position to convert it into rotational torque.
Conversely, if the spark fires too late, past the TDC mark and into what engineers colloquially call the "power stroke," the pressure peak occurs after the piston has already started moving down. In this scenario, a significant portion of the chemical energy generated by combustion is lost as heat rather than being converted into mechanical work. The engine runs sluggishly, fuel economy drops, and the driver feels a lack of torque.
Therefore, the optimal ignition timing is theoretically located at the very instant the piston crosses TDC on the compression stroke. This maximizes the leverage available to push the piston down during the subsequent expansion phase. In practice, however, real-world applications rarely adhere strictly to this theoretical zero-degree mark. Engineers must account for the finite speed of combustion. The flame front requires a few thousandths of a second to travel from the spark plug electrode across the cylinder chamber to fully consume the mixture.
Because of this delay, modern ECUs often advance the ignition timing slightly before TDC. This ensures that the peak cylinder pressure occurs roughly 10 to 15 degrees after TDC, allowing the combustion event to complete while the piston is still moving down efficiently. The specific point of firing depends heavily on engine speed (RPM) and load. At high RPMs, the crankshaft rotates so fast that there is less time for the flame front to propagate; consequently, the ECU may retard timing to prevent unburned fuel from hitting the exhaust valve or causing detonation under extreme cylinder pressures.
Implementing this logic requires precise sensor data. An ECU relies on a crankshaft position sensor and often a camshaft position sensor to determine the exact angular position of the pistons relative to TDC. The code within the ECU must map ignition advance curves that dynamically adjust the spark timing based on knock sensors, intake manifold pressure, and throttle position. This is not a static configuration but a continuous feedback loop where the system learns the specific combustion characteristics of the engine to optimize efficiency without risking mechanical failure.