Water is essential for our lives and activities. Everyone can drink good quality water, the question is whether they have access to it in the first place. Water quality and its treatment depend on the water source. This treatment has costs that users have to pay in the water tariff. It is very important to establish a water tariff that permits the best water treatment and has a low impact on the users. Cost functions are a useful tool to predict costs before an implementation or improvement. This article, using three easy steps (analysis, obtaining costs and modification of the water tariff) proposes improving water purification treatment using cost functions in order to find the best solution for providing the best quality water with the least cost impact on the water tariff. This methodology aims to help supply managers justify their decisions in order to optimise the available economic resources.