Variations in the quality of natural gas fuel have a signifi cant effect on the cost of electricity generated using this fuel. Variations in costs due to fuel quality arise primarily from the impact of fuel quality on engine operating effi ciency and knock resistance. Effective real-time, online monitoring of the fuel quality, when combined with adaptive control of engine performance, can therefore realise signifi cant savings in fuel costs for natural gas-fuelled electricity gensets.