The formula for the cost of revenue is: Cost of Revenue = COGS + Shipping Costs + Commissions + Warranties + Returns + Other Direct Costs To calculate cost of revenue, it's important to first ...