Shopify does not provide tracking for cost of goods sold (CSGS). An app is needed to add that funtionality to your store, unless you are ok to use Excel and do it manually.
You can try SimplyCost. It lets you add COGS to your variants and report stock/inventory value.
I am the developer of the app. It comes with 14 days trial.