HomeEcommercePOSIndustriesPricingBlog
Business finance17 min readPublished Updated

Cost of Goods Sold for Iraq Shops: A Practical Calculation

Cost of goods sold is the cost of inventory actually sold, not every purchase made this month. Use an Iraqi dinar stock example to calculate and check it.

Iraq retailer comparing received cartons and counted remaining stock to calculate cost of goods sold
The cost of goods sold depends on what left inventory through sales, so purchase records and an ending count must agree.
Quick answer

Cost of goods sold is the cost assigned to inventory sold during a period. For a simple retailer, begin with opening inventory cost, add the cost of goods available from purchases and relevant inbound costs, then subtract the cost of ending inventory, adjusting for transfers, returns, and losses. It is not the amount paid to suppliers that month.

01

Cost of Goods Sold for Iraq Shops: A Practical Calculation

Cost of goods sold is the cost assigned to stock that was actually sold during a period. It is not every carton bought or every dinar paid to suppliers. For a basic Iraq retailer, reconcile opening inventory cost plus net purchases and relevant inbound costs, then subtract the cost of ending inventory, with explicit adjustments for other stock movements. If 8,000,000 IQD of goods were available and 3,000,000 IQD remain, the provisional sold-goods cost is 5,000,000 IQD only if losses and transfers have been checked.

02

Cost of Goods Sold for Iraq Shops: A Practical Calculation

Key takeaways

Begin with a named period and a cost-valued opening inventory, not a retail selling-price stock total.

Add goods received at appropriate acquisition cost; subtract supplier returns and discounts consistently.

Count and value ending stock using the same approved method and investigate unexplained movements.

Match the resulting sold-goods cost with net sales to calculate gross profit and gross margin.

Keep supplier payment timing, operating expenses, and tax reporting separate from this stock calculation.

03

Cost of goods sold follows the units that leave through sales

A Baghdad shop can pay a supplier for one hundred cartons this week and sell only forty. The remaining sixty cartons are still stock; recording the whole invoice as this week's sold-goods cost would make gross profit look too low and conceal inventory. Conversely, selling stock bought last month creates a cost of goods sold this month even if no supplier payment occurs now. This timing is why COGS differs from purchases and cash flow. The IFRS Foundation's IAS 2 overview explains that the carrying amount of inventory sold is recognized as an expense when related revenue is recognized.

A manager may use a periodic worksheet or a perpetual item-level stock system. A periodic worksheet calculates a period's residual from opening stock, additions, and ending stock. A perpetual system updates unit costs and stock movements through purchases and sales; it still needs physical counts and reconciliation. Neither method makes an unexplained shortage a legitimate sale. Separate customer sales, supplier returns, branch transfers, spoilage, theft, samples, and count corrections so the cost record describes what actually happened.

The label “goods sold” is clearest for a retailer that buys finished products for resale. A café, manufacturer, or service business has materials, production labor, work in progress, and different cost boundaries. This guide uses a retail shop example. The IAS 2 inventory overview describes purchase and conversion costs for inventory and discusses cost formulas. Ask a qualified accountant how those requirements apply to a particular business model and formal statements. Do not copy a reseller worksheet into a kitchen or workshop without identifying what is produced and when its cost becomes expense.

The calculation matters because gross profit equals net sales minus cost of goods sold. If a shop says it earned 12,000,000 IQD in sales, that is revenue before this cost. A rising sales chart can coexist with shrinking gross profit when supplier prices rise, heavy discounts reduce net sales, or the mix shifts toward low-margin items. The profit margin guide explains how to turn gross profit into a percentage. This article establishes the cost number feeding that calculation.

04

Build the COGS calculation from records, not guesses

Choose a month or another closed period. Use a consistent cut-off for purchase receipts, customer sales, and the physical stock count. If a truck arrived after midnight on the first day of the next month, decide which period owns the goods under the applicable records; do not count the invoice in one period and the stock in another. Keep supporting supplier invoices, receiving notes, return documents, count sheets, and an adjustment log.

1. Value opening inventory at cost. Use the prior period's verified closing stock as this period's opening stock. Confirm that the opening quantity and cost valuation method carried over correctly. If prior counts were estimated, flag the starting uncertainty instead of treating it as exact.

2. Add goods received for resale. Record the cost of inventory received in the period, not only invoices paid. Separate goods that are still in transit or held for another owner. Supplier payment terms affect cash, but the inventory record follows the receipt and ownership evidence.

3. Include relevant acquisition costs. Purchase price, nonrecoverable costs and transport or handling needed to bring inventory to its location and condition may be included under the applicable accounting basis. The IAS 2 overview gives the broad cost principle. Do not add every shop expense to product cost; classify costs consistently with an accountant.

4. Subtract purchase reductions. Supplier returns, trade discounts, and other documented reductions affect the net acquisition cost. A customer refund is different: it adjusts the sale and possibly restores a salable unit to stock. Keep the two types of return on separate lines.

5. Count and value ending inventory. Count items at the end cut-off and assign cost by a consistent method. Do not use shelf price as cost. Record unsalable or damaged items separately and consider the formal valuation requirement when relevant.

6. Reconcile other movements. Transfers between branches, samples, spoilage, theft, and inventory write-downs can change stock without a customer sale. Show them explicitly before calling the residual “sold.” A periodic residual without this check is only a provisional figure.

7. Compare with sold quantities and net sales. Item-level sold quantities should be plausible against the calculated cost. Investigate unexpected jumps before calculating gross margin or changing prices.

A simple operational formula is opening inventory + net acquisition cost − ending inventory = net inventory outflow. The outflow approximates COGS only after non-sale movements are accounted for. If stock transfers out cost 200,000 IQD, those goods may be another branch's inventory, not this branch's sale. If a spoiled lot cost 100,000 IQD, label the loss rather than merging it invisibly into normal sales cost. This distinction protects both pricing decisions and the audit trail.

Retail receiving worker compares supplier cartons with an invoice and a shelf count
Match the invoice, goods received, and ending physical count before calculating what stock was sold.

05

Worked Iraq example: reconcile stock before gross profit

Suppose a Basra household-goods shop begins a month with inventory valued at 3,000,000 IQD. It receives resale goods costing 5,200,000 IQD and has 200,000 IQD of relevant inbound acquisition costs under its chosen accounting basis. It returns 400,000 IQD of goods to a supplier. A verified ending count is valued at 3,000,000 IQD. During the month, a separately documented branch transfer out cost 100,000 IQD and damaged stock requiring separate recognition cost 50,000 IQD. These are illustrative numbers, not typical Iraq shop data.

Goods available after the supplier return are 8,000,000 IQD. Subtracting ending stock leaves 5,000,000 IQD of inventory outflow. The transfer and damage account for 150,000 IQD of that outflow, leaving 4,850,000 IQD assigned to sales in this simplified reconciliation. A worksheet that simply reports the full 5,000,000 IQD as COGS would hide the reason for the missing goods. Formal presentation of an inventory loss depends on the accounting facts and framework; the operational point is to document it rather than pretend it was a sale.

If the shop's net sales for the same month are 7,000,000 IQD, illustrative gross profit is 7,000,000 − 4,850,000 = 2,150,000 IQD. Gross margin is about 30.7%. These figures depend on correct unit costs, the timing of returns, and a reliable ending count. They say nothing yet about rent, wages, utilities, payment fees, other operating costs, or whether customers have paid. A cash purchase of stock might reduce the bank balance even while much of the stock remains unsold. The cash flow guide handles that payment timing separately.

Illustrative inventory bridge shows available goods, ending stock, other movements, and sold-goods cost
Illustrative IQD reconciliation: 8 million available less 3 million ending stock, 0.15 million other movements, leaves 4.85 million sold-goods cost.
Illustrative stock movementCost, IQDTreatment
Opening stock3,000,000Available at start
Received inventory5,200,000Add to available goods
Relevant inbound costs200,000Add where appropriate
Supplier return(400,000)Reduce acquisition cost
Ending stock(3,000,000)Still held, not sold
Transfer to another branch(100,000)Movement, not customer sale
Damaged stock(50,000)Identify separately
Cost assigned to customer sales4,850,000Illustrative COGS

06

Assign unit costs consistently when purchase prices change

Supplier prices rarely remain identical. If a shop buys a product at 5,000 IQD, then another batch at 6,000 IQD, the cost assigned to a sale depends on its accepted inventory cost formula and records. The IAS 2 overview identifies first-in, first-out and weighted-average cost formulas for ordinarily interchangeable inventory. The appropriate method should be applied consistently, rather than selected after seeing which one gives a preferred profit for a particular month.

Consider 10 identical units on hand at 5,000 IQD each and 10 new units bought at 6,000 IQD each, with no other acquisition costs for this simplified example. Total cost is 110,000 IQD for 20 units. A weighted-average unit cost is 5,500 IQD. If 12 units are sold, 66,000 IQD is assigned to those sales and 44,000 IQD remains for eight units, before other movements. Under a simplified first-in, first-out illustration, the 10 older units cost 50,000 IQD and two new units cost 12,000 IQD, for 62,000 IQD sold-goods cost and 48,000 IQD ending stock. The different split changes the period's gross profit, though total available cost remains 110,000 IQD.

Real records can be more complex: freight allocations, price reductions, currency changes, damaged units, returns, and multiple locations. Do not use the simplified examples as tax instructions. If an item is unique and separately identifiable, its actual identified cost may be relevant under the accounting framework. If a POS shows only the latest purchase price, that field may be inadequate to reproduce historical COGS after a price change. Keep invoices and the chosen costing logic traceable, especially when a surprising margin leads to a pricing decision.

The sales side also needs consistent units. Selling one carton while the purchase invoice is in individual pieces can multiply or divide the cost incorrectly. Map purchase packs, selling units, and conversion factors, then test a few representative products against source documents. If a supplier provides a bonus pack, document how the total invoice cost is allocated. A category margin is only as dependable as the quantities and costs underneath it. Software can record movements, but the shop remains responsible for physical receipts and count accuracy.

07

Separate returns, losses, and transfers from sales

Customer returns create two possible movements: a reversal of some sale value and a physical item coming back. If the returned item is salable, assess how it re-enters stock and reverse or adjust the related sold-goods cost consistently. If it is damaged, do not restore it as full-value salable inventory merely to make the count balance. Keep the return reason, condition, refund amount, and original transaction reference. A late return may fall in a different period from the original sale, so the period comparison needs explanation.

Supplier returns move stock out without a customer sale and often reduce the amount owed or create a supplier credit. Branch transfers move inventory between locations; counting the transfer out as a sale in one branch and again as stock in another double counts or distorts results. A clear transfer document states the sending and receiving location, quantities, cost, and date. Samples, internal consumption, and promotional giveaways are also stock movements, but their treatment depends on why the stock was used. Label them rather than absorbing them into an unexplained COGS residual.

Damage, spoilage, expiry, and theft require investigation and appropriate records. A damaged box discovered during a count is not proof of a customer sale. Record the item, quantity, estimated or assigned cost, cause if known, approval, and whether any value can be recovered. The IAS 2 overview describes inventory measurement at the lower of cost and net realizable value. A qualified accountant should determine the formal write-down and presentation for material losses. The shop's immediate operational task is to avoid reporting a false normal selling margin because missing stock was silently folded into sales cost.

A dependable stocktaking process helps identify these movements. Count independent of the quantity shown by a screen when possible, recount large variances, and document adjustments. The sales and purchase software guide explains why purchase and sale records must connect; this calculation explains what to do with the cost evidence after those records exist. A supplier invoice alone is not a physical receipt, and a digital stock balance alone is not a physical count.

08

Use COGS for decisions while respecting its limits

After reconciling the cost, compare gross profit and gross margin by product group, branch, or period. A rising COGS total can be healthy if sales volume rose faster; a falling total can be troubling if the shop ran out of popular products. Look at COGS as a share of net sales, unit costs, quantities, discounts, and write-offs together. If gross margin weakens, investigate supplier price increases, new product mix, excessive discounts, incorrect unit conversions, and unrecorded losses before assuming employees set the wrong shelf price.

Plan purchases with turnover and cash in mind. Ordering far more stock than demand requires does not immediately make all of it COGS, but it ties up cash, occupies space, and can create future write-downs. A cheaper unit price for a large order may be outweighed by damage or slow sales. Use the verified sold-goods cost in the inventory turnover guide to compare what sold with average stock held. The break even point guide uses unit variable costs and fixed costs for a different planning question: how many units must sell to cover costs. COGS supplies part of the unit-cost evidence, but the two calculations should not be labelled interchangeable.

This guide has practical limits. A formal statement may require more detailed cost allocation, periodic cut-off work, inventory valuation, and classification than a merchant's weekly worksheet. Treatment of production labor, overhead, import charges, recoverable taxes, consignment stock, foreign currency, and tax filings depends on the facts and applicable rules. No one example covers every Iraq retailer. The IFRS IAS 2 source is a starting point for inventory accounting principles; ask a qualified local accountant before using these figures in formal reports or tax decisions.

If the physical stock record is unreliable, report the limitation openly. It is better to say “provisional COGS pending count of two branches” than to announce a precise margin from mismatched dates. Prioritize counting high-value or frequently missing items, clean up duplicate purchase records, and reconcile unit conversions. Recalculate after corrections with a visible audit trail. The purpose of the number is to guide real purchasing and pricing decisions, not to make a dashboard look neat.

09

Cost of goods sold conclusion for an Iraq retailer

Cost of goods sold should represent the cost of stock actually sold in a stated period. Begin with cost-valued opening stock, document net acquisitions, verify ending stock, and identify transfers and losses before assigning the residual to customer sales. The illustrative Basra reconciliation shows how a 5,000,000 IQD stock outflow can contain 150,000 IQD of non-sale movement, leaving 4,850,000 IQD of sold-goods cost. Once that number is sound, compare it with net sales for gross profit and profit margin. Keep cash payments and formal accounting obligations visible as separate questions.

10

Sources and calculation notes

Inventory cost, cost formulas, and expense recognition follow the IFRS Foundation's IAS 2 Inventories overview. The relationship between sold-goods cost, gross profit, and percentage margin is also described in Shopify's gross-margin guide. The IQD figures, unit purchases, and stock movements here are illustrative calculations, not measured Iraq market averages or RA8M customer records.

Frequently asked questions

What is cost of goods sold?

Cost of goods sold is the cost assigned to inventory that the business sold during a stated period. For a retailer, it is related to the purchased goods that left stock through sales, with a consistent inventory costing method. It is not all cash paid to suppliers, all goods received, or all operating expenses.

What is the basic cost of goods sold formula?

A simple periodic retailer reconciliation is opening inventory plus net inventory purchases and relevant acquisition costs minus ending inventory. Adjust explicitly for returns, transfers, damaged goods, and other movements so a stock shortage is not silently labelled as a sale. Use consistent cost valuation for opening and ending stock.

Do unsold purchases count as COGS?

No. Goods still available at period end generally belong in ending inventory at their appropriate carrying amount, subject to applicable valuation rules. A large stock order may use cash now but only its sold portion belongs in the period's sold-goods cost.

Do rent and wages belong in cost of goods sold?

For an ordinary retail resale example, shop rent and front-counter wages are usually considered separately from the purchase cost of goods sold. Some manufacturing or service models have different production cost classifications. Use the accounting framework and a qualified accountant for formal statements.

Why do stock counts change the calculated COGS?

A periodic formula subtracts the cost of the ending stock count from goods available. If the count is wrong, the residual cost of goods sold and gross profit can be wrong too. Investigate damaged items, returns, theft, transfers, duplicate invoices, and timing differences rather than assuming every unexplained missing unit was sold.

Written by

RA8M Team

Practical guides for restaurants, shops, and operations teams

Next step

Try RA8M with data close to your operation

Start free