The total cost of inventory is the sum of the purchase, ordering and holding costs. As a formula: TC = PC + OC + HC, where TC is the Total Cost; PC is Purchase Cost; OC is Ordering Cost; and HC is Holding Cost.