The pursuit for higher efficiency and ultra-low exhaust emissions from diesel engines requires the combustion process to be precisely controlled so as to minimize departures from the intended engine operation. The combustion control system must be able to perform corrective actions on a cycle-by-cycle basis, with a robust feedback on the combustion process. The combustion phasing, commonly represented by the crank angle of 50% heat release and derived from the measured cylinder pressure data, shows a strong correlation to the efficiency and the engine-out nitrogen oxide emissions. To accurately estimate the combustion phasing from the derived heat-release rate, the authors previously introduced and experimentally validated a computationally efficient diesel pressure departure ratio algorithm, against selected cases of boost, engine load and exhaust gas recirculation. In this work, the formulation of the pressure departure ratio algorithm is presented in detail along with its implementation to enable combustion control during both transient and steady-state engine operations. Engine tests demonstrate that the algorithm was effective in stabilizing the combustion process on a cycle-by-cycle basis for a range of engine speeds, load and exhaust gas recirculation, which included conventional and low-temperature diesel combustion modes.