In this paper are presented an algorithm and software for exergy efficiency of paper machine. The algorithm contains exergy balance equation and cost balance. The thermal cost is established depending on exergy losses and exergetic efficiency of paper drying process and steam-air heat exchangers. Finally, it is presented the influence of exergy efficiency about paper cost for a paper mill in a company.