# EOQ and safety stock calculator: free, any unit | MyRecords

> Economic order quantity, safety stock for a chosen service level, reorder point, yearly stock cost, turnover and days on hand from your demand and lead times.

Canonical: https://myrecords.cloud/resources/free-tools/eoq-safety-stock-calculator/
Last updated: 2026-12-03

Free tool · Inventory

**EOQ and safety stock calculator**

Order size, safety stock, reorder point and turnover from your demand, supplier lead times and costs.

-   Works for any country
-   No sign-up
-   Runs in your browser
-   Facts verified 4 Nov 2026

An estimate to help you plan. Nothing you type is uploaded.

 Formula and worked example

In short

The economic order quantity (EOQ) is the order size that keeps the yearly cost of ordering and holding stock lowest; safety stock is the buffer kept for busy days and late deliveries. EOQ = √(2DS ÷ H): D is yearly demand, S the cost per order, H the yearly holding cost per unit. Safety stock = z × √(L × σd² + d² × σL²), with z from the service level (1.645 for 95%), d and L the daily demand and lead time, σd and σL their standard deviations. Selling 120 cartons a day (σ 30) with a 10-day lead time (σ 2), S = AED 450 and H = AED 7: EOQ 2,373, safety stock 425, reorder point 1,625.

Also called: EOQ calculator, Economic order quantity calculator, Safety stock calculator, Service level safety stock calculator.

## How it is calculated

-   **Yearly demand** D = average demand a day × selling days a year.
-   **Holding cost** H = unit cost × holding % a year, or a fixed amount per unit a year.
-   **EOQ** = √(2 × D × S ÷ H), where S is the cost of placing one order. Orders a year = D ÷ EOQ. The other way round, the order cost implied by an order size Q is S = Q² × H ÷ (2 × D).
-   **Variation over the lead time** σ = √(L × σd² + d² × σL²): L and σL are the average lead time and its standard deviation in days; d and σd are the average daily demand and its standard deviation. With a steady supplier (σL = 0) it is σd × √L.
-   **Safety stock** = z × σ, rounded up, where z comes from the service level (normal distribution).
-   **Reorder point** = d × L + safety stock, for stock on hand plus stock already on order.
-   **Yearly cost** = D ÷ Q × S (ordering) + Q ÷ 2 × H (order stock) + safety stock × H.
-   **Turnover** = demand ÷ average stock (safety stock + Q ÷ 2), planned; from your accounts, cost of goods sold ÷ average inventory. **Days on hand** = average stock ÷ daily demand, or 365 ÷ turnover from the accounts.

**The common mistake:** using the yearly holding rate without converting it to a cost per unit, or the monthly demand in a formula that expects yearly demand. Every input to the EOQ must be on the same basis: units a year, cost per order, cost per unit per year. The other is adding the safety stock to the EOQ; safety stock sits in the reorder point, not in the order size.

| Service level | z |
| --- | --- |
| 90% | 1.282 |
| 95% | 1.645 |
| 97.5% | 1.960 |
| 98% | 2.054 |
| 99% | 2.326 |
| 99.5% | 2.576 |

Source: standard normal distribution (NIST/SEMATECH e-Handbook).

## Worked example

Al Noor Trading LLC, Dubai, sells on average 120 cartons of bottled water a day (standard deviation 30), every day of the year. Its supplier takes 10 days on average (standard deviation 2 days). It wants a 95% service level. Placing an order costs AED 450; a carton costs AED 28 and holding stock costs 25% of its value a year, so H = AED 7 a carton.

| Step | Sum | Result |
| --- | --- | --- |
| Yearly demand | 120 × 365 | 43,800 cartons |
| EOQ | √(2 × 43,800 × 450 ÷ 7) = 2,373.06 | 2,373 cartons |
| Variation over the lead time | √(10 × 30² + 120² × 2²) = √66,600 | 258.07 cartons |
| Safety stock | 1.645 × 258.07 = 424.5, rounded up | 425 cartons |
| Reorder point | 120 × 10 + 425 | 1,625 cartons |
| Yearly cost | 8,305.94 + 8,305.50 + 2,975.00 | AED 19,586.44 |

-   86% of the variation comes from the supplier’s lead time. A supplier who keeps to 10 days ± 1 instead of ± 2 would cut the safety stock from 425 to 252 cartons.
-   Al Noor orders 4,000 cartons at a time today. That costs AED 18,927.50 a year to order and hold, AED 2,316.06 more than the EOQ.
-   Its accounts show cost of goods sold of AED 1,226,400 and stock of AED 58,800 at the start of the year and AED 49,000 at the end: turnover 22.8 times, 16.0 days on hand, against 27.2 times and 13.4 days planned.

## Notes and edge cases

-   **Assumptions:** demand and lead time vary at random around steady averages (roughly a normal distribution), shortages are rare, and one item is ordered on its own. Strong seasons, promotions and new items need their own forecast.
-   **Not covered:** quantity discounts, several items ordered together, periodic review (ordering on fixed days), fill rate targets and perishable stock. For a quick reorder point from your best and worst days, use the [reorder point calculator](https://myrecords.cloud/resources/free-tools/reorder-point-calculator/).
-   **Lead time longer than the order cycle:** more than one order is open at a time, so compare the reorder point with stock on hand plus stock on order.
-   **Cash tied up in stock:** to see what fewer days of stock free, use the [cash conversion cycle calculator](https://myrecords.cloud/resources/free-tools/cash-conversion-cycle-calculator/).

## In MyRecords

Inventory in MyRecords keeps a reorder level per item and warehouse, judged on projected stock, and its Reorder page turns what has run down into draft material requests or purchase orders by supplier. Stock ageing shows each receipt still in stock with its age and value, and the stock balance and ledger give quantity and value by item and warehouse.

## Official sources

Checked 4 Nov 2026

1.  [MIT OpenCourseWare, ESD.260J Logistics Systems (Fall 2006), Inventory management I, fundamental concepts and EOQ](https://ocw.mit.edu/courses/esd-260j-logistics-systems-fall-2006/resources/lect7/) EOQ = √(2AD ÷ vr), the total relevant cost and how little it changes near the EOQ
2.  [MIT OpenCourseWare, ESD.260J Logistics Systems (Fall 2006), Inventory management IV, probabilistic demand and safety stock](https://ocw.mit.edu/courses/esd-260j-logistics-systems-fall-2006/resources/lect11/) cycle service level; reorder point = expected demand over the lead time + k × its standard deviation
3.  [MIT Center for Transportation & Logistics, CTL.SC1x Supply Chain Fundamentals, Key Concepts Document v5.1 (2016)](https://courses.edx.org/asset-v1:MITx+CTL.SC1x_2+1T2016+type@asset+block/SC1x_KeyConceptDocument_v5_1_Complete.pdf) lead-time variability: σ over the lead time = √(μL σD² + μD² σL²)
4.  [NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.7.1 Cumulative distribution function of the standard normal](https://www.itl.nist.gov/div898/handbook/eda/section3/eda3671.htm) z for each service level, for example 1.645 for 95% and 2.326 for 99%
5.  [OpenStax (Rice University), Principles of Finance, 19.1 What is working capital?](https://openstax.org/books/principles-finance/pages/19-1-what-is-working-capital) inventory turnover = cost of goods sold ÷ average inventory; days of inventory = 365 ÷ turnover

## Who uses it, *and for what*

-   **Distributors** Set safety stock for a chosen service level from the variation in demand and lead time.
-   **Purchase managers** Find the order size that keeps the yearly cost of ordering and holding lowest.
-   **Stock planners** Check what rounding an order to pack sizes or a supplier's minimum costs.
-   **Finance teams** Compare planned stock turnover and days on hand with the figures from the accounts.

Questions

## Questions people ask

Something else on your mind?

Ask us anything about modules, a quote or moving across. A person from our team replies.

[Ask a question](https://myrecords.cloud/contact/)

**How do I calculate EOQ?**

EOQ = √(2 × D × S ÷ H). Multiply twice the yearly demand by the cost of placing one order, divide by the yearly cost of holding one unit, and take the square root. For 43,800 cartons a year, AED 450 an order and AED 7 a carton a year: √(2 × 43,800 × 450 ÷ 7) = 2,373 cartons an order, about 18 orders a year.

**What is the safety stock formula?**

Safety stock = z × √(L × σd² + d² × σL²). With a steady supplier (σL = 0) it simplifies to z × σd × √L. For 95% service (z = 1.645), daily demand 120 with standard deviation 30, lead time 10 days with standard deviation 2: 1.645 × √(10 × 900 + 14,400 × 4) = 1.645 × 258.07 = 425 cartons.

**How is this different from the reorder point calculator?**

The reorder point calculator is the quick version: safety stock from your busiest day and longest delivery. This one sets safety stock from a service level and the measured variation in demand and lead time, shows how much of the risk comes from each, adds the yearly cost of the policy, checks your current order size and works out turnover from your accounts.

**What service level should I choose?**

It is the chance of not running out during one order cycle. 95% (z = 1.645) is a common starting point; items that stop a production line or lose a customer may justify 98–99%, slow and cheap items less. Each step costs stock: 99% needs about 41% more safety stock than 95% (2.326 ÷ 1.645).

**How do I measure the variation?**

Take the standard deviation of daily sales over the last few months (STDEV.S in a spreadsheet) and of the days your recent orders took to arrive. If you only have a weekly figure, divide it by the square root of the selling days in a week, for example √7, because variance grows in line with time.

**What goes into holding cost?**

Everything it costs to keep stock for a year: the money tied up (interest, or the return you give up), storage, insurance, handling, damage, theft and stock that goes out of date. Add up your own costs for a year and divide by the average value of stock to get a percentage.

**Must I order exactly the EOQ?**

No. The total cost is flat near the EOQ: ordering 50% more than the EOQ raises the cost of ordering and holding by only about 8%. Round to pack sizes, pallet loads or a supplier’s minimum, and use the order size check to see what your choice costs.

**What is inventory turnover and days on hand?**

Turnover = cost of goods sold ÷ average inventory, the number of times a year the stock is sold through; days on hand = 365 ÷ turnover. Cost of goods sold of AED 1,226,400 on average stock of AED 53,900 is 22.8 times, or 16 days of stock. The tool shows the planned figures next to the ones from your accounts.

Last updated 3 Dec 2026 Facts last verified 4 Nov 2026 against the official sources below

This tool gives an estimate to help you plan. Rules change; confirm with your accountant before you file or pay.

Any business, anywhere

## One system for any business, anywhere.

Accounting, sales, stock, HR and payroll, CRM, support and an AI Assistant in one place. It works in any country and currency, and we customise it to the way your business runs.

[See every app](https://myrecords.cloud/product/) [Works worldwide](https://myrecords.cloud/solutions/worldwide/)

Free, no obligation

Request a quote

-   For the apps and modules you pick
-   At our best price, in writing
-   Your questions, answered by our team

[Request a quote](https://myrecords.cloud/contact/?topic=quote) [or contact us](https://myrecords.cloud/contact/)
