Abstract: A method to inhibit coke formation on heat transfer surfaces used to heat or cool a petroleum feedstock at coke-forming conditions is disclosed. The heat transfer surfaces are treated with an effective amount of phosphonate to inhibit coke formation on the heat transfer surfaces. The phosphonate is essentially free from contributing to corrosion and from producing detrimental by-products.