Skip to content
كاش كلاود كاش كلاود Cash Cloud
Accounting tips

How to Calculate Cost of Goods Sold (COGS): Formula, Steps, and Practical Example

Learn how to calculate cost of goods sold (COGS) using a simple formula and practical example. Understand how opening inventory, purchases, and closing inventory affect product costs, gross profit, and pricing decisions.

To calculate cost of goods sold (COGS), add beginning inventory to net purchases and directly attributable purchasing costs, then subtract ending inventory. The result represents the cost of products sold during the period, not the total value of goods purchased.

For example, beginning inventory of 10,000 plus net purchases and related costs of 30,000 minus ending inventory of 12,000 equals COGS of 28,000. Review stock counts, purchase returns, freight costs, and inventory valuation methods to ensure accuracy. Try Cash Cloud for free to explore purchasing, inventory, sales, and accounting tools.

Limited offer

Issue your first e-invoice today

Try Cash Cloud free for 14 days, and run your invoices and accounts from one platform.

  • 14-day free trial
  • No credit card
  • Support all week