Ignition timing is one of the most powerful levers in a petrol engine calibration. Fire the spark a little too late and the engine feels flat, runs hot and burns more fuel. Fire it too early and you risk knock, high cylinder pressure and damaged pistons. Modern ECUs do not use a single timing value: they calculate a new angle for every cylinder and every combustion event, starting from base maps and adding a long list of corrections. This article explains how that calculation works, what MBT and knock-limited timing mean, and what tuners and technicians should keep in mind.

What ignition timing actually controls
Ignition timing is the crank angle at which the spark plug fires, usually expressed in degrees before top dead centre (BTDC). Combustion is not instant: after the spark, a flame kernel forms and the flame front needs time to travel through the chamber. The goal is to place the main pressure rise so that peak cylinder pressure arrives a little after top dead centre, when the piston can turn that pressure into useful work.
Because the burn takes a roughly fixed amount of time rather than a fixed number of crank degrees, the ECU must fire earlier as engine speed rises. Load matters too: at light load the cylinder holds a thin, slow-burning charge and needs more advance, while at high load the dense charge burns faster and is more prone to knock, so it needs less.
MBT: the timing for best torque
If you sweep the spark advance at a fixed speed and load and measure torque, you get a curve with a rounded peak. The smallest advance that gives the best torque is called MBT (minimum advance for best torque). Around MBT the curve is quite flat, so a few degrees either side change torque only slightly, but they change other things a lot:
- More advance than MBT raises peak pressure and temperature, increases NOx and pushes the engine towards knock without giving more torque.
- Less advance than MBT moves the burn later into the expansion stroke. Torque falls, more heat goes into the exhaust and the engine needs more fuel for the same power.

Knock-limited timing
At light and medium load most engines can run at or close to MBT. At high load, especially on turbocharged engines, knock usually appears before MBT is reached. In that region the calibrated angle is set by the knock limit with a safety margin, not by MBT. This is why fuel quality, intake air temperature and boost have such a big effect on power: they move the knock limit, and the timing has to follow. Our article on knock sensors and knock control explains how the ECU detects knock and retards individual cylinders.
How the timing maps are organised
A typical petrol ECU stores several timing tables, each indexed by engine speed and load. Load can be relative air charge, manifold pressure or, on many motorcycles and race systems, throttle angle (alpha-N). Common table types include:
- Optimum or MBT tables that describe the best possible angle. Torque-based ECUs use them to work out how much torque is lost when timing is retarded.
- Base or knock-limited tables that hold the angle actually used under normal conditions.
- Variant tables for different cam positions, fuel qualities, warm-up, catalyst heating or different operating modes.
The ECU interpolates between breakpoints, as described in ECU maps explained, and often blends between tables depending on conditions such as VVT position.
Corrections the ECU adds
- Intake air temperature: hotter air raises knock tendency, so timing is pulled back as IAT rises.
- Coolant temperature: a cold engine is less knock-prone and often gets more advance; an overheating engine gets less.
- Knock retard and adaptation: fast retard on the cylinder that knocked, recovered step by step, plus slower learned values that reflect fuel quality.
- Mixture and enrichment: the angle may be adjusted when the mixture is enriched for component protection.
- Catalyst heating: after a cold start, timing is deliberately retarded to send heat into the exhaust and warm the catalyst quickly.
Timing as a fast torque actuator
Air in the intake manifold cannot change instantly, but spark timing can change from one combustion to the next. That makes ignition retard the ECU’s fastest way to reduce torque. It is used for gear-shift torque reduction, traction control, anti-jerk damping, idle speed control and soft rev limiting. In a torque-based ECU, the system requests a torque reduction and the ignition path works out how far to retard using the efficiency it reads from the optimum tables. When you log timing on a running car, these interventions explain many of the sudden dips you see.
After the calculation: dwell and firing
The final angle is clipped to minimum and maximum limits, converted into a firing moment using the crank and cam signals, and the coil is charged for the required dwell time before that moment. Faults in the crank and cam sensors or the timing drive therefore affect timing directly. Coil and dwell control are covered in our ignition coils and dwell article.
Cars, bikes and gas engines
The same principles apply across petrol cars, vans and motorcycles. Bikes often use throttle-angle-based tables and may have separate timing per gear or per cylinder. Spark-ignited gas engines, such as natural-gas trucks and some stationary or agricultural units, also use timing maps with knock control. Diesel engines have no spark: their equivalent is start of injection, controlled through injection timing maps.
Calibration notes for tuners
- More advance is not automatically more power. Once you are at MBT, extra advance only adds risk.
- Timing, boost, fuelling and fuel quality are linked. Raising boost usually needs less timing at the same speed, not more.
- Always log actual timing and knock retard per cylinder after a change. A map that looks aggressive but is constantly retarded by knock control is slower and less safe than a sensible map.
- Keep knock control, temperature corrections and protection functions working. They are what keep an engine alive on a hot day or with poor fuel.

Related fault codes (DTCs)
There is no single generic code for “wrong timing”. These are the codes most often connected with ignition timing problems or with the inputs the ECU uses to calculate it.
| Code | Meaning | Typical causes |
|---|---|---|
| P0324 | Knock control system error | Knock control at its retard limit or not plausible, knock sensor or wiring fault, persistent real knock from poor fuel or overheating |
| P0325 | Knock sensor 1 circuit (bank 1 or single sensor) | Open or shorted wiring, damaged connector, loose sensor or wrong tightening torque |
| P0326 | Knock sensor 1 circuit range/performance (bank 1 or single sensor) | Sensor not bolted correctly, mechanical noise, signal outside the expected range, sensor fault |
| P0327 | Knock sensor 1 circuit low (bank 1 or single sensor) | Signal shorted to ground or open, sensor fault, connector corrosion |
| P0328 | Knock sensor 1 circuit high (bank 1 or single sensor) | Signal shorted to voltage, sensor fault, wiring interference |
| P0330 | Knock sensor 2 circuit (bank 2) | Wiring or connector fault, loose or failed sensor on the second bank |
| P0335 | Crankshaft position sensor “A” circuit | Sensor, wiring or connector fault, damaged trigger wheel, large air gap |
| P0340 | Camshaft position sensor “A” circuit (bank 1 or single sensor) | Sensor, wiring or connector fault, damaged target wheel |
| P0016 | Crankshaft/camshaft position correlation (bank 1 sensor A) | Stretched timing chain or belt, wrong timing after repair, cam phaser fault, sensor or target wheel fault |
| P0011 | “A” camshaft position timing over-advanced or system performance (bank 1) | Oil supply or oil-control valve problem, sticking cam phaser, wrong oil, timing drive wear |
| P0113 | Intake air temperature sensor 1 circuit high | Open sensor or wiring, connector fault; the ECU may fall back to a substitute temperature and change timing corrections |
| P0300 | Random/multiple cylinder misfire detected | Ignition, fuel or air faults on several cylinders, very late timing, heavy knock, mechanical problems |
| P0301 | Cylinder 1 misfire detected (P0302, P0303 and so on for other cylinders) | Coil, plug or injector fault on that cylinder, low compression, wiring fault |
Generic OBD-II meanings shown. Manufacturer wording and extra codes vary, so check the service data for your vehicle.
Planning a calibration change on a petrol engine? Upload your original ECU read to the tuning file service at ECUFileMarket and get a file built for your exact hardware and software.