Two numbers decide your turnover. Cost of goods sold goes on top, average stock goes on the bottom, and the answer tells you how fast your cash moves. This guide gives the formula for inventory turnover, six steps to work it out in ringgit, and the spreadsheet cells to do it for you.

What You’ll Need
Pull these together before you start:
- Your sales cost for the period: the purchase price of every unit you sold, not what the customer paid
- Inventory value at cost on the first and last day of the period, from your last stock take or your inventory system
- Your Shopee MY, Lazada MY and TikTok Shop MY order exports, so you can match units sold to unit cost
- A spreadsheet in Excel or Google Sheets
- Your accountant’s answer on how your books value stock, such as FIFO or weighted average, so your cost figures match your accounts
What Is the Formula for Inventory Turnover?
Inventory turnover is a ratio that shows how many times you sell and replace your stock in a period. The formula is cost of goods sold divided by average inventory. According to Investopedia, it is calculated by dividing COGS by the average inventory during a period.
Inventory turnover = Cost of goods sold (COGS) / Average inventory. Average inventory is the opening value plus the closing value, divided by 2. Both are measured at cost. A result of 6.0 means you sold through your average stock six times in the period.
The Wikipedia entry on inventory turnover gives the same equation, with average inventory valued at cost. It adds that some industry data compilers use sales instead of cost of sales, and it describes the cost-of-sales version as the more realistic one.
Two related numbers come straight from it. Days sales of inventory (DSI) is 365 divided by turnover. And the same ratio can be run for one product group instead of the whole shop.
If you want the meaning and benchmarks, read what inventory turnover is and why it matters. This guide is the how-to.

Step 1: Choose Your Period
Pick one period and stick to it. A full year is the cleanest, because it smooths out Raya, 11.11 and year-end spikes.
Your financial year may not end in December, so match the period to your accounts. Quarterly and monthly runs work too, but you must annualise them in Step 6.
Write the start date and end date at the top of your sheet. Every number below must come from inside that window.
Step 2: Find Your Cost of Goods Sold
COGS is what you paid for the units you sold. It is not revenue, and it is not the Shopee payout.
For each SKU, multiply units sold by the unit cost you paid, including freight and duties on the way in if your accountant counts them. Then add up all SKUs.
Your marketplace export shows selling price, so use it only for the unit count. Take unit cost from your purchase invoices.
Why not just use sales? According to Investopedia, analysts use COGS instead of sales because inventory is typically valued at cost, whereas the sales figure includes the company’s markup. Using sales would tend to inflate the result.
In our worked example, a seller’s COGS for the year is RM 480,000.
Step 3: Work Out Your Average Inventory
Take the value of your stock at cost on the first day and on the last day of the period.
Investopedia describes average inventory as the value at the end of a period added to the value at the end of the prior period, divided by 2. For a year, that means the opening and closing balances.
In the example, opening stock is RM 90,000 and closing stock is RM 70,000.
Average inventory = (RM 90,000 + RM 70,000) / 2 = RM 80,000
Value stock at cost, not at the price on your listing. If you do not trust the closing figure, run a count first. Our stock take guide shows how.
Not sure how the rest of your operation compares? Take the free Ecommerce Operations Scorecard. It asks 12 questions about stock, fulfilment and channel sync and takes about five minutes.
Step 4: Divide COGS by Average Inventory
Now the formula does its job.
Inventory turnover = RM 480,000 / RM 80,000 = 6.0
You sold through your average stock six times in the year. Put differently, your stock turned over about once every two months.
Here is the whole example in one table. The figures are illustrative, not client data.
| Item | Value | How it is worked out |
|---|---|---|
| COGS for the year | RM 480,000 | Units sold × unit cost |
| Opening inventory (1 Jan) | RM 90,000 | Stock take, at cost |
| Closing inventory (31 Dec) | RM 70,000 | Stock take, at cost |
| Average inventory | RM 80,000 | (90,000 + 70,000) / 2 |
| Inventory turnover | 6.0 | 480,000 / 80,000 |
| Days sales of inventory | about 61 days | 365 / 6.0 |
Do not trust a result you cannot trace back to a row like these. If one cell looks odd, fix it before you read the ratio.

Step 5: Convert Turnover Into Days
A ratio of 6.0 is hard to feel. Days are easier.
The Wikipedia entry gives average days to sell the inventory as 365 divided by the inventory turnover ratio. Investopedia reaches the same place from the other side, with DSI as average inventory divided by COGS, multiplied by 365.
DSI = 365 / 6.0 = 60.8, or about 61 days
So a typical unit sits on your shelf for about two months before it sells. Whether that is good depends on the product. Fresh beauty stock at 61 days is slow. A sofa at 61 days is quick.
To put the formula into a spreadsheet, use cells like these:
| Cell | Label | Formula |
|---|---|---|
| B2 | COGS | 480000 |
| B3 | Opening inventory | 90000 |
| B4 | Closing inventory | 70000 |
| B5 | Average inventory | =AVERAGE(B3:B4) |
| B6 | Inventory turnover | =B2/B5 |
| B7 | Days sales of inventory | =365/B6 |
Excel and Google Sheets both accept these as written. Replace the three typed numbers and the rest updates itself.

Step 6: Break It Down and Annualise
One shop-wide number hides the problem. Run the same formula per product group.
| Group | COGS | Average inventory | Turnover | Days |
|---|---|---|---|---|
| Category A (fast sellers) | RM 300,000 | RM 40,000 | 7.5 | about 49 |
| Category B (slow sellers) | RM 180,000 | RM 40,000 | 4.5 | about 81 |
| Whole shop | RM 480,000 | RM 80,000 | 6.0 | about 61 |
Category B ties up half your stock to produce 37.5% of your COGS. That is where to look first.
If you ran a shorter period, annualise it before you compare. Say one quarter had COGS of RM 100,000 on the same RM 80,000 average inventory. That is 1.25 for the quarter, or 5.0 once multiplied by 4. Then 365 / 5.0 gives about 73 days.
Always compare like with like: annual with annual, and your own category against your own history.
What Mistakes Make the Formula Wrong?
Four slips cause most bad results:
- Using sales instead of COGS. In the example, if the same goods sold for RM 720,000, that sales figure over RM 80,000 of average stock gives 9.0, not 6.0. That makes the shop look 50% faster than it is.
- Mixing price bases. COGS at cost over inventory at selling price gives a ratio that matches neither. Keep both at cost.
- Using only two stock readings in a seasonal year. If your stock peaks before 11.11, opening and closing balances can miss it. Average the month-end values instead.
- Chasing the highest number. A very high ratio can mean you run out of stock and lose sales. The goal is steady cash flow, not the top score.
Frequently Asked Questions
What is the formula for inventory turnover?
Inventory turnover equals cost of goods sold divided by average inventory, both at cost. If your COGS for the year is RM 480,000 and your average inventory is RM 80,000, your turnover is 6.0. That means you sold through your average stock six times in the year.
How do I calculate average inventory?
Add your inventory value at the start of the period to the value at the end, then divide by 2. With RM 90,000 at the start and RM 70,000 at the end, the average is RM 80,000. Use month-end values instead if your stock swings a lot, such as around 11.11 or Raya.
Should I use sales or COGS in the inventory turnover formula?
Use COGS. Inventory is valued at cost, while sales include your markup, so using sales inflates the ratio. In our example, RM 720,000 of sales over RM 80,000 of average stock gives 9.0, against the true 6.0 from COGS. Only use sales if you are matching a benchmark that does.
How do I turn inventory turnover into days?
Divide 365 by your turnover ratio. A turnover of 6.0 gives about 61 days, which is how long a typical unit sits before it sells. This is called days sales of inventory. For a quarter, annualise the ratio first by multiplying it by 4, then divide 365 by that.