Cost of Goods Sold (COGS) Calculator and Gross Profit
Calculates cost of goods sold (COGS), gross profit on sales and inventory turnover from opening inventory, purchases, purchase returns, purchase costs and closing inventory.
Things to keep in mind:
- The valuation method of closing inventory (weighted average, FIFO) directly affects COGS; this tool does not value inventory.
- Manufacturers must also include production cost and the change in work in progress for the cost of products sold; use the Production Cost tool.
- Waste, shrinkage and write-downs are not modelled separately.
- This tool is for information only and does not replace bookkeeping or professional accounting advice.
Calculator
Result
Enter the values and press Calculate to see the result here.
About this tool
Cost of goods sold (COGS) is what the merchandise sold in a period cost the business; in the income statement it is deducted from net sales to reach gross profit. Under the periodic inventory method COGS is found after the year-end count:
Formulas
- Net purchases = Purchases − Purchase returns and discounts + Purchase costs (freight, insurance, customs, etc.)
- Goods available for sale = Opening inventory + Net purchases
- COGS = Goods available for sale − Closing inventory
- Gross profit = Net sales − COGS; Gross margin = Gross profit / Net sales × 100
- Inventory turnover = COGS / Average inventory, with average inventory = (Opening + Closing inventory) / 2; Days in inventory = 365 / Inventory turnover
Example: with opening inventory of 200,000 TRY, purchases of 1,000,000 TRY, purchase returns of 50,000 TRY and inbound freight of 30,000 TRY, net purchases are 980,000 TRY and goods available for sale 1,180,000 TRY. If the count values closing inventory at 280,000 TRY, COGS is 900,000 TRY. With net sales of 1,400,000 TRY, gross profit is 500,000 TRY and the gross margin 35.71%. Average inventory is 240,000 TRY, so inventory turnover is 3.75 and days in inventory about 97.
In the Turkish uniform chart of accounts this is account 621 (cost of merchandise sold). Adding purchase costs to cost follows the definition of cost in Tax Procedure Law (VUK) article 262. The valuation method of closing inventory (weighted average, FIFO) directly affects the result; this tool takes the valued closing inventory as an input.
How to use
- Enter opening inventory (the previous period's closing inventory).
- Enter purchases in the period and any purchase returns, discounts and purchase costs.
- Enter closing inventory after the count and valuation.
- For gross profit enter net sales, then press Calculate.
Notes
Amounts are rounded to the cent, ratios to 2 decimals and days to 1 decimal (HALF_UP). Without net sales, gross profit and the margins show 0. A negative COGS means closing inventory was entered above goods available for sale; check the inputs (turnover then shows 0). Enter amounts excluding VAT; deductible VAT is not part of cost.
Sources
Frequently asked questions
COGS = Opening inventory + Net purchases − Closing inventory. Net purchases are purchases less returns and discounts plus purchase costs (freight, insurance, customs).
Discounts received on or after the invoice and purchase returns reduce the cost of purchases, so they are deducted in net purchases.
For a trading business cost of sales is essentially the cost of merchandise sold (account 621). Manufacturers also include the cost of products sold (620) and service businesses the cost of services sold (622).
Gross margin is gross profit relative to sales; markup is gross profit relative to cost. In the example a 35.71% margin corresponds to a markup of about 55.56%.
Next step
Related tools to continue your calculation.
- Calculate
EBITDA Calculator: Gross Profit, Operating Profit and Net Margin
Starting from gross sales, calculates net sales, gross profit, operating profit (EBIT), EBITDA, profit before tax and net profit, with the margin at each level, in income statement order.
- Calculate
Turnover Ratios and Cash Conversion Cycle Calculator (Inventory, Receivables, Payables)
Calculates inventory, receivables and payables turnover and their day counts (DIO, DSO, DPO) plus the cash conversion cycle to show how fast working capital turns.
- Calculate
Production Cost and Unit Cost Calculator (Capacity Utilisation and Idle Capacity)
Calculates production cost, unit cost, capacity utilisation and idle capacity cost from direct materials, direct labour and manufacturing overhead.
- Calculate
Profit Margin and Markup Calculator
Calculate gross profit, profit margin and markup from cost and sale price, and find the price needed for a target margin or markup.
- Calculate
Financial Health Analysis (Balance Sheet and Income Statement Ratios)
Calculates liquidity, profitability, leverage, debt service and efficiency ratios from the key balance sheet and income statement items on one screen.
- Calculate
Economic Order Quantity (EOQ) Calculator
Calculates the order size that minimises total inventory cost (EOQ), orders per year and order cycle from annual demand, ordering cost and holding cost.