Cost of Goods Sold (COGS) and Online Retailers The cost of shipping to the customer is also not included in COGS. The Internal Revenue Service (IRS) allows companies to deduct the COGS for any products they either manufacture themselves or purchase with the intent to resell.