One ratio will not show you a stock problem. Five will. This guide gives the inventory ratio formula for turnover, days of stock, inventory-to-sales, sell-through and GMROI, then works each one in ringgit on a single example.

What You’ll Need
Pull these together before you start:
- Net sales for the period: what customers paid, after returns and cancelled orders
- Cost of goods sold (COGS): the purchase price of the units you sold, plus inbound freight if your accountant counts it
- Inventory value at cost on the first and last day of the period, from your last stock take or your inventory system
- Units received and units sold for each product in your latest restock, from your supplier invoices and your Shopee MY, Lazada MY and TikTok Shop MY order exports
- A spreadsheet in Excel or Google Sheets
What Is the Inventory Ratio Formula?
Inventory ratios are formulas that turn your stock, sales and cost figures into one comparable number per question. The core one is inventory turnover, which is COGS divided by average inventory. According to Investopedia, it shows how many times a company sells and replaces its inventory over a period.
Inventory turnover = COGS / average inventory. For a year, average inventory is the opening value plus the closing value, divided by 2. Four more ratios build on it: days sales of inventory, inventory-to-sales, sell-through rate and GMROI. Each answers a different question about the same stock.
There is no single “inventory ratio”. Searchers who type the phrase usually want turnover, and sellers who stop there miss two things. One is how long cash sits on your shelf. The other is whether the stock earns a profit.
Here are the five at a glance. Every figure below uses the same example shop, which is illustrative and not client data.

If you only want the turnover steps, read our formula for inventory turnover guide. This guide is wider: it covers the whole set.
Step 1: Gather Your Four Inputs
Choose one period and keep every figure inside it. A full year is cleanest, because it smooths out Raya, 11.11 and 12.12 spikes.
Our example shop, over one calendar year:
| Input | Value | Where it comes from |
|---|---|---|
| Net sales | RM 720,000 | Order exports, after returns and cancellations |
| COGS | RM 480,000 | Units sold × unit cost |
| Gross profit | RM 240,000 | Net sales − COGS |
| Opening inventory (1 Jan) | RM 90,000 | Stock take, at cost |
| Closing inventory (31 Dec) | RM 70,000 | Stock take, at cost |
Value stock at cost, never at your listing price. If you do not trust the closing figure, count first. Your accountant can tell you whether your books use FIFO or weighted average, so your numbers match your accounts.

Step 2: Calculate Inventory Turnover
Start with the base ratio. First find average inventory.
Average inventory = (RM 90,000 + RM 70,000) / 2 = RM 80,000
Investopedia describes the same average: the inventory value at the end of the period plus the value at the end of the prior period, divided by 2. Then divide COGS by it.
Inventory turnover = RM 480,000 / RM 80,000 = 6.0
You sold through your average stock six times in the year. Why COGS and not sales? Investopedia explains that inventory is typically valued at cost, while sales include your markup, so using sales would tend to inflate the ratio.
Low turnover can signal weak sales or overstock. High turnover can mean you are running short. For benchmarks and meaning, see inventory turnover: what it is and why it matters.
Step 3: Convert Turnover Into Days of Stock
A ratio of 6.0 is hard to feel. Days are not.
Days sales of inventory (DSI) is average inventory divided by COGS, multiplied by 365, according to Investopedia. That is the same as 365 divided by turnover.
DSI = RM 80,000 / RM 480,000 × 365 = 60.8, or about 61 days
A typical unit sits about two months before it sells. Investopedia’s DSI page says a lower DSI is generally preferred, and that DSI varies by industry, so compare peers.
Running a quarter instead? The same page notes that 90 days is used for a quarter, so use quarterly COGS and 90, not 365. It also notes some firms use 360 days for a year. Pick one and stay with it.
Step 4: Calculate the Inventory-to-Sales Ratio
This one tells you how much stock you hold for each ringgit of sales.
Investopedia calls the inventory-to-sales ratio the inverse of turnover, with one change: it compares inventory with net sales instead of the cost of sales. This guide uses average inventory so it lines up with Step 2.
Inventory-to-sales = RM 80,000 / RM 720,000 = 0.11
You hold about RM 0.11 of stock for every RM 1.00 of sales. According to Investopedia, a higher ratio suggests excess inventory relative to sales, and a lower one suggests a leaner position.
Does your stock keep growing faster than your sales? Take the free Ecommerce Operations Scorecard. It asks 12 questions about stock, fulfilment and channel sync and takes about three minutes.
Track this ratio month by month. A rising line while sales stay flat is an early warning that you are over-buying.
Step 5: Calculate Sell-Through Rate
The first four ratios look at the whole shop. Sell-through looks at one product or one restock.
According to Shopify, sell-through rate (STR) is the percentage of inventory sold in relation to the number of units received in the same period. It is often run monthly.
Sell-through rate = (Units sold / Units received) × 100
Take one month’s restock from the example shop. The products are illustrative.
| Product | Units received | Units sold | Sell-through rate |
|---|---|---|---|
| Product A (new launch) | 300 | 255 | 85% |
| Product B (core line) | 200 | 110 | 55% |
| Product C (core line) | 100 | 45 | 45% |
| All three | 600 | 410 | 68% |
Shopify gives 70% to 80% as a gut-check for a healthy in-period assortment. It also says evergreen products can sit at 40% to 60% a month or quarter, if inventory turns are on plan and margin is protected. It calls its benchmarks illustrative, so set targets from your own history.
Read the table like this. Product A is flying, so reorder it. B and C sit inside the evergreen range, so hold them. If they were seasonal, 55% and 45% would be a markdown risk.
Step 6: Calculate GMROI
Turnover says how fast stock moves. It does not say whether the stock earns money. GMROI does.
Gross margin return on investment is gross profit divided by average inventory cost, per Investopedia.
GMROI = RM 240,000 / RM 80,000 = 3.0
Your stock returned RM 3.00 of gross profit for every RM 1.00 held. Investopedia says a value above 1 means you sell merchandise for more than it cost. It adds that some sources suggest a retail rule of thumb of 3.2 or higher, to cover occupancy and employee costs as well.
That 3.2 is a retail-store rule. An online seller working from a spare room has different costs, so treat 3.2 as a prompt to look at your own cost base, not a pass mark. Investopedia also warns that GMROI differs by market segment, time span and product type.
Why does this matter? Two shops can both turn stock 6.0 times. The one selling at a 50% margin earns far more per ringgit of stock than the one at 10%.
Step 7: Put All Five Ratios in One Sheet
Run the five together, then read them as one story. Here is the example shop’s full set.
| Ratio | Formula | Result | Question it answers |
|---|---|---|---|
| Inventory turnover | COGS / average inventory | 6.0 | How often do I sell and replace my stock? |
| Days sales of inventory | Average inventory / COGS × 365 | about 61 days | How long does a unit sit? |
| Inventory-to-sales | Average inventory / net sales | 0.11 | How much stock backs each RM 1.00 of sales? |
| Sell-through rate | Units sold / units received × 100 | 68% | Did this restock sell? |
| GMROI | Gross profit / average inventory | 3.0 | Does my stock earn a profit? |
To build it in Excel or Google Sheets, use these cells:
| Cell | Label | Formula |
|---|---|---|
| B2 | Net sales | 720000 |
| B3 | COGS | 480000 |
| B4 | Gross profit | =B2-B3 |
| B5 | Opening inventory | 90000 |
| B6 | Closing inventory | 70000 |
| B7 | Average inventory | =AVERAGE(B5:B6) |
| B8 | Inventory turnover | =B3/B7 |
| B9 | Days sales of inventory | =365/B8 |
| B10 | Inventory-to-sales | =B7/B2 |
| B11 | GMROI | =B4/B7 |
Replace the five typed numbers and everything else updates. Sell-through needs one row per product, so keep it on its own tab.

Now read the set. Turnover of 6.0 and 61 days say stock moves at a steady pace. GMROI of 3.0 says it earns its place. Product C at 45% is the one to check first.
For a quick run of the base ratio, use the inventory turnover ratio calculator. If a low result sends you to reorder levels, the reorder point calculator is next.
Frequently Asked Questions
What is the inventory ratio formula?
There is no single one. The most used is inventory turnover, which is cost of goods sold divided by average inventory. A seller with RM 480,000 of COGS and RM 80,000 of average stock turns inventory 6.0 times a year. Sellers also track days of stock, sell-through rate and GMROI alongside it.
What is a good inventory turnover ratio for an online store?
It depends on the product, so compare your own store with its past results and similar sellers. Investopedia says low turnover may signal weak sales or overstock, and high turnover can mean you run short of stock. A fast beauty line and a furniture line will land far apart.
What is the difference between sell-through rate and inventory turnover?
Sell-through rate covers one product or one restock, usually over a month. According to Shopify, inventory turnover covers all your stock over a longer period, usually a year. If you received 200 units and sold 110, your sell-through is 55%, whatever your shop-wide turnover is.
How do I calculate GMROI?
Divide gross profit by average inventory cost. With RM 240,000 of gross profit and RM 80,000 of average inventory, GMROI is 3.0, or RM 3.00 of gross profit per RM 1.00 of stock. Investopedia notes that a value above 1 means you sell stock for more than it cost.