Ignition timing advance and knock: how to tune spark timing safely

Ignition timing advance is how early the spark fires before top dead centre, so peak cylinder pressure lands just after it. Each cell is limited either by best torque (MBT), where more advance adds nothing, or by knock, where the limit minus a margin applies. Confirm base timing with a timing light, calibrate knock detection, then step advance on a dyno one region at a time, stopping at the torque plateau or first knock.131410

Key takeaways

  • Advance rises with rpm (more degrees for the same burn time) and falls with load, boost and intake temperature.
  • MBT is the least advance that reaches the torque plateau; research puts peak pressure about 12-14° after TDC at MBT (Honda, SAE 890759).
  • Light-load cells are usually MBT-limited; boosted cells are usually knock-limited. Measure which applies before changing a cell.
  • Knock detection is band-pass filtering plus a crank-angle window per cylinder, compared with that cylinder's background noise.
  • Knock resonance depends on bore and gas temperature: larger bores ring lower. Set the filter from measured knock, not another engine's number.
  • This guide gives no spark-advance numbers on purpose. Find yours on a load-holding dyno with knock monitoring, in small steps.

Ignition timing advance in one minute

Ignition timing advance is how early, in crank degrees before top dead centre, the spark fires.

The flame needs time to burn, so the spark leads the piston to put peak cylinder pressure a little after top dead centre, where it does the most work.137

Every cell in a spark table is capped by one of two limits. Either you reach best torque (MBT) and more advance adds nothing, or the engine knocks first and the knock limit, minus a safety margin, sets the number. Tuning timing means finding which limit applies, cell by cell.1314

This guide stays qualitative on spark numbers, deliberately. The right advance depends on the engine, fuel, charge temperature and boost, and copying someone else's figures is how pistons get damaged.Medium138

What moves the right amount of advance

Burn time in milliseconds changes far less than the time per crank degree, so as rpm rises the burn spans more degrees and needs more advance. Turbulence speeds the burn at high rpm, which is why the advance curve flattens rather than climbing forever.1314

Load works the other way. A light-load charge is thin, diluted with residual exhaust and slow to burn, so it wants more advance and resists knock. A dense full-load or boosted charge burns faster and is closer to knock, so it wants less.1314

Direction of the effect on the advance you can useMedium1314
ChangeBurn speedKnock tendencyAdvance usually
Higher rpmSame ms, more degreesOften lower (less time)More
Higher load or boostFasterHigherLess
Higher intake air temperatureFasterHigherLess
Higher coolant temperatureSlightly fasterHigherLess
Higher octane or ethanolSimilarLowerKnock limit moves later
More EGR or residual gasSlowerLowerMore

MBT: minimum advance for best torque

If you hold speed and load and sweep advance, torque rises, flattens and then falls.

Peak pressure at MBT (Honda, SAE 890759)Usually 12-14° ATDCSourced1
50% burn point for best efficiency (MAHLE, SAE 2012-01-0902)Around 8° ATDC in most conditionsSourced2

MBT is the least advance that reaches the flat top. Going further adds cylinder pressure, heat and knock risk for no torque.1314

Research describes MBT by where combustion happens, not by spark angle. Honda engineers reported that at MBT the crank angle of peak cylinder pressure usually falls 12-14 degrees after TDC; MAHLE engineers found the 50% burn point near 8 degrees after TDC gave best efficiency in most conditions.12

Those are combustion-phasing targets for engines with cylinder-pressure measurement, not spark settings. The spark angle that produces them varies with engine, speed, load and fuel, so on a normal build MBT is found by measuring torque.Medium113

Knock-limited and MBT-limited cells

Knock is end gas auto-igniting ahead of the flame, sending pressure waves ringing through the cylinder.

Light knock wastes nothing obvious; heavy or sustained knock damages ring lands, pistons and head gaskets.81314

On pump fuel, light and part-load cells usually reach MBT before knock. High-load cells, and most boosted cells, usually knock first, so their timing is set by the knock limit minus margin. Knowing which cells are which tells you where adding timing can pay and where it can only hurt.Medium1314

Which limit applies, and what to doMedium1314
Cell typeLimitTuning action
Light load, any rpmUsually MBTStep advance toward the torque plateau; stop where torque stops rising
Mid loadEitherMeasure: plateau first means MBT; knock first means knock limit
Full load, naturally aspiratedOften near bothApproach in small steps with knock monitoring
Boosted loadUsually knockHold margin below the knock limit; retune if boost, IAT or fuel changes

Before any table: confirm base timing

Every number in the spark table assumes the ECU knows where top dead centre is.

Lock the commanded advance to a fixed value, check the actual timing with a timing light against a known TDC mark, and correct the trigger offset until they agree.107

A wrong offset shifts every spark event by the same amount and no sensor reliably detects it. Recheck at higher rpm too: trigger and filter delays can make timing drift with speed.Medium105

How to tune ignition timing safely: the order of work

Tune spark on a load-holding dyno, where speed and load can be held steady and torque measured.

Road testing cannot measure torque precisely enough, and full-load road pulls put you and others at risk.Medium1314

Start conservative, change one region at a time in small steps, and record torque, knock activity, lambda and intake temperature at each step. Stop when torque stops rising or at the first sign of knock, then back off to keep a margin for hot days and poor fuel.Medium13148

Spark tuning, step by stepMedium131410
#StepStop or check
☐ 1Confirm base timing and trigger offsetTiming light agrees with the ECU
☐ 2Verify knock sensing works (window, filter, gain)Clear knock signal on a known event; quiet background
☐ 3Fuel correct first: lambda on target in the cells you will tuneWideband log
☐ 4Start from a conservative tableNo knock anywhere
☐ 5Hold one speed and load; step advance in small incrementsTorque plateau or first knock
☐ 6Back off for margin; smooth into neighbouring cellsNo steps in the table
☐ 7Repeat hot (high IAT and coolant) and on the worst fuelKnock margin holds
☐ 8Add temperature and ethanol correctionsLogged on the road at part load

How an ECU detects knock

A knock sensor is a piezoelectric accelerometer bolted to the block.

Bosch KS4-P frequency range3-25kHzSourced3
Bosch KS4-P sensitivity26 ± 8 mV/g at 5 kHzSourced3
Bosch KS4-P mounting torque20± 5 N·mSourced3
TI TPIC8101 band-pass centre
  • 1.22-19.98 kHz, 64 steps
  • 2 channels
  • Gain 0.111-2.0
Sourced4

Bosch's KS4-P covers 3 to 25 kHz with a sensitivity of 26 ± 8 mV per g at 5 kHz, and must be torqued to 20 ± 5 N·m (15 ± 4 lb·ft) on a clean, machined face.3

The ECU does not judge the raw signal. A typical interface amplifies it, passes it through a band-pass filter tuned to the engine's knock frequency, rectifies it and integrates it only inside a crank-angle window for each cylinder. TI's TPIC8101 resets its integrator at the start of every knock window.414

The integrated value is compared with a running background level for that cylinder. Knock is declared when the window energy exceeds the background by a threshold ratio, so the method is relative, and every engine needs its own calibration.Medium145

Knock signal chain

Illustration in production.

Knock frequency: why bore size matters

Knock pressure waves ring at the cylinder's acoustic resonances.

Denso and Toyota's knock patent describes calculating these frequencies from the resonance mode, the bore diameter and the speed of sound in the burned gas; higher modes ring at higher frequencies.513

Two practical rules follow. A larger bore resonates at a lower frequency, and hotter gas, with its higher speed of sound, raises it. For passenger-car bores the first mode usually sits in the mid single-digit kilohertz, with higher modes above it.Medium5138

Set the band-pass filter from measurement where you can: record the sensor during known light knock on a dyno and look for the peak, rather than copying a frequency from a different engine. A broadband sensor such as the KS4 range passes all of them; the filter picks one.Medium3414

Knock windows, gain and false knock

The window opens after top dead centre on each cylinder's power stroke, when knock can occur, and closes before other loud mechanical events. Valve closing, injector clatter and piston slap all produce vibration the sensor will hear if the window is too wide.Medium144

Calibrate gain per cylinder, because cylinders sit at different distances from the sensor. Then set the threshold so background noise never triggers at high rpm, where mechanical noise rises fastest.Medium414

False knock: symptom, cause, fixMedium3144
SymptomLikely causeFix
Knock counts rise with rpm, no audible knockThreshold too low for rising mechanical noiseRaise threshold with rpm; narrow the window
Knock on one cylinder only, every cycleWindow catches a valve or injector eventMove or shorten that cylinder's window
Random knock at all loadsLoose or wrongly torqued sensor; damaged cableTorque to spec; shielded cable, drain at ECU end only
No knock signal even when knock is audibleFilter at the wrong frequency, gain too lowMeasure the knock frequency; raise gain

What the ECU does when it detects knock

Knock control retards spark on the cylinder that knocked, by a set step, then restores advance slowly while the engine stays quiet. Fast retard and slow recovery stop the controller from oscillating in and out of knock.Medium148

Limit the total retard, and treat hitting that limit as a fault: richen the mixture or cut boost, and log it. Knock control is a safety net for fuel and weather variation, not a substitute for a spark table with margin.Medium1413

Dwell: the other half of the ignition table

Dwell is how long the coil charges before each spark.

Lower battery voltage needs longer dwell for the same current, which is why dwell tables are indexed by voltage. Bosch lists 3.94 ms at 12 V and 3.07 ms at 14 V for its P65-TWG coil at 7 A.6

Use the coil maker's table where it exists. Where it does not, a modelled curve from resistance and inductance gives a starting point to verify with a current clamp: with illustrative values, 2.95 ms at 10 V, 2.30 ms at 12 V and 1.88 ms at 14 V.96

Modelled dwell vs battery voltage
V
V

Ignition driver saturation plus wiring loss; about 1-2 V is typical for an IGBT driver.

Ω

Illustrative default, not for any specific coil. Measure, or use the coil maker's data.

mH
A
rpm

Result

Dwell at this voltage (modelled)1.88 ms
Dwell at 10 V2.95 ms
Dwell at 12 V2.30 ms
Dwell at 14 V1.88 ms
Stored energy at target current73.5 mJ
Coil time constant L ÷ R6.00 ms
Share of time between sparks11.0 %

Modelled from an ideal RL circuit, not from a coil's measured data. Coil makers' dwell tables take priority; too much dwell overheats coils and drivers.

Planning estimate from the formula below, not a measurement.

Open the ignition coil dwell calculator (modelled dwell vs battery voltage) →

Common ignition tuning mistakes

Most spark-tuning damage comes from a handful of repeat mistakes.

Each has a simple guard.Medium131410

Mistake and guardMedium131410
MistakeWhy it hurtsGuard
☐ Copying another engine's spark tableDifferent chamber, fuel and charge temperatureStart conservative and measure
☐ Skipping the timing-light checkEvery cell is off by the offsetConfirm base timing first
☐ Trusting knock control to find the limitDamage can happen before the retard actsHold margin below the measured limit
☐ Adding timing past the torque plateauMore pressure and heat for nothingStop at MBT
☐ Tuning only on a cool dayHot intake air moves the knock limitRetest hot; add IAT correction
☐ Raising boost without retarding sparkBoosted cells move toward knockRetune the cells boost reaches

Do it with GAINS (separate product module, pre-release)

GAINS: in the GAINS design, the on-ECU ignition learner is retard-only, with per-cell knock memory, and its advance authority is zero. Raising advance is a dyno-only change for an expert role in the reference profile. Status: pre-release; knock learning exists only in simulation.151112

Torque-seeking spark is a research item, gated on validated knock detection per engine family. The ECU2 concept has one knock input and the ECU2 concept two; neither has been validated on an engine.161718

Frequently asked

How much timing advance is safe?

There is no universal number. Safe advance depends on the engine's chamber, compression, fuel, intake temperature and boost. Find it per cell on a load-holding dyno: step advance in small increments with knock monitoring, stop at the torque plateau or the first sign of knock, and keep a margin below the knock limit.Medium1314

What is MBT timing?

MBT is the minimum spark advance that gives best torque at a given speed and load. Beyond it, torque stays flat or falls while pressure, heat and knock risk rise. Research describes MBT combustion as peak pressure roughly 12-14 degrees after top dead centre, but the spark angle that achieves it varies by engine.131

How does an ECU detect knock?

It amplifies the knock sensor signal, band-pass filters it at the engine's knock frequency, rectifies it and integrates it inside a crank-angle window for each cylinder. The result is compared with that cylinder's background level; when it exceeds the background by a threshold, the ECU retards spark on that cylinder.414

What frequency is engine knock?

It depends on the engine. Knock rings at the cylinder's acoustic resonances, set by bore diameter, the resonance mode and the speed of sound in the hot gas. Larger bores ring lower. For car engines the first mode is usually a few kilohertz, so measure the real peak on a dyno.Medium513

What is a knock window?

A knock window is the crank-angle range after top dead centre on each cylinder's power stroke when the ECU listens for knock. Outside it the signal is ignored, which keeps valve closing, injector noise and other mechanical events from being counted as knock.Medium414

Why does more timing make more power, up to a point?

Firing earlier gives the flame time to build pressure while the piston is near the top, so more of the pressure pushes the piston down. Past MBT the pressure peaks too early and fights the rising piston, so torque stops rising and knock risk climbs.137

Related

Sources

Numbered as cited above. Hover or tap a citation chip to preview it.

18 sources
  1. MBT Control Utilizing Crank Angle of Maximum Combustion Pressure (SAE 890759) · I. Fujii, S. Yagi, M. Kawai, H. Yoshikawa (Honda R&D), SAE International, 1989 · sae-paper · retrieved 2026-10-27
  2. Improving Speed and Accuracy of Gasoline and Diesel Engine Testing via Closed-Loop Combustion Control (SAE 2012-01-0902) · T. Cains, D. Pates, M. Warth (MAHLE Powertrain), SAE International, 2012 · sae-paper · retrieved 2026-10-27
  3. Knock Sensor KS4-P data sheet 69010059 (frequency range, sensitivity, mounting torque) · Bosch Motorsport (Bosch Engineering GmbH) · vendor-doc · retrieved 2026-10-27
  4. TPIC8101 Knock Sensor Interface data sheet (SLIS110C, rev. March 2015) · Texas Instruments · vendor-doc · retrieved 2026-10-27
  5. US 7,412,874 B2: Internal combustion engine knock determination device (Denso, Toyota, Nippon Soken) · US Patent and Trademark Office (via Google Patents) · reference · retrieved 2026-10-27
  6. Ignition Coil P65-TWG data sheet (dwell vs battery voltage) · Bosch Motorsport · vendor-doc · retrieved 2026-10-25
  7. Ignition timing · Wikipedia · reference · retrieved 2026-10-25
  8. Engine knocking · Wikipedia · reference · retrieved 2026-10-27
  9. internal GAINS internal: Ignition coil dwell calculator (@aitune/calc ignition-dwell-voltage), modelled RL curve with illustrative defaults; computed 2026-10-27
  10. internal GAINS architecture decision record: ADR-0009: First-start self-commissioning (base timing confirmation)
  11. internal GAINS source code: @aitune/autotune knock-learner.ts (retard-only, per-cell memory)
  12. internal GAINS simulation: Reference demo profile demo-v8-6.0-turbo (ign.advance change class and roles), synthetic
  13. Internal Combustion Engine Fundamentals, 2nd ed. (combustion, knock, spark timing) · J. B. Heywood, McGraw-Hill, 2018 · book · retrieved 2026-10-27
  14. Automotive Handbook, 10th ed. · Robert Bosch GmbH / Wiley, 2018 · book · retrieved 2026-10-27
  15. internal GAINS architecture decision record: ADR-0004: Layered real-time adaptation under a signed authority envelope
  16. internal GAINS internal: Architecture Review #1 (docs/architecture/ARCHITECTURE_REVIEW.md): strategy status table
  17. internal GAINS internal: ECU2 v0 concept (hardware/mini-ecu/CONCEPT.md): pin map v0.3, logging, assignment rules
  18. internal GAINS internal: ECU2 v0 concept (hardware/mini-duo/CONCEPT.md)