Cost accounting is used to determine the value of a product or service based on three cost elements, namely labor, materials, and overhead expenses.