How to Calculate EOQ (Economic Order Quantity) Without Losing Your Mind
30 July 2026

How to Calculate EOQ (Economic Order Quantity) Without Losing Your Mind
It’s past midnight, your warehouse shelves are either overflowing with cardboard boxes you don't need or completely empty of the one item your customers keep asking for, and you're staring at a spreadsheet trying to figure out how much stock to buy next.
Order too much, and your hard-earned cash is trapped sitting in a dusty corner, gathering dust and eating up your working capital. Order too little, and you're paying rush shipping fees every single week while scrambling to keep up, burning out your team and annoying your buyers.
There has to be a sweet spot. A magic number where the cost of placing orders and the cost of holding inventory balance each other out so you spend the absolute least amount of money possible.
Good news: there is. It’s called Economic Order Quantity, and once you know how to calculate EOQ, that 2am inventory anxiety starts to lift because you finally have a math-backed reason for your purchasing decisions.
The Tug-of-War Between Ordering and Holding Costs
To understand why the EOQ formula works, you first need to look at the two opposing forces governing every small business supply chain. Every time you order inventory, you're caught in a financial tug-of-war.
On one side, you have ordering costs. These are the fixed expenses associated with getting stock through your doors, regardless of how many units are in the shipment. This includes the administrative time spent drafting purchase orders, processing invoices, wire transfer fees, freight charges, and the labor required to receive, inspect, and unpack the boxes. If you place 52 small orders a year instead of 4 large ones, you multiply those administrative headaches and delivery fees by 52.
On the other side, you have holding costs (sometimes called carrying costs). These are the expenses of keeping inventory in stock before it actually sells. It includes warehouse rent, utilities, insurance, security, depreciation, and—most importantly—the invisible opportunity cost of the cash tied up in those boxes that you could have used elsewhere in your business. If you buy enough stock to last the next five years, your holding costs skyrocket.
Your goal isn't to make ordering costs zero, and it certainly isn't to make holding costs zero. Your goal is to find the exact point where the two lines cross on a graph, minimizing your total inventory costs.
Meet the EOQ Formula (Without the Calculus Lesson)
If you look up EOQ in an operations management textbook, you will likely be greeted by a terrifying wall of calculus, square roots, and symbols that look like ancient Greek. Ignore all of that.
The actual formula we use to calculate EOQ looks like this:
$$\text{EOQ} = \sqrt{\frac{2 \times D \times S}{H}}$$
Don't let the square root sign intimidate you. It is just three core business variables working together:
- D (Demand): The total number of units sold or used per year. Not per month, not per week—annual demand keeps the math consistent.
- S (Setup/Ordering Cost): The fixed cost incurred each and every time you place an order, no matter the size of the shipment.
- H (Holding Cost): The annual cost of holding a single unit of inventory in storage for a full year.
When you multiply annual demand by your ordering cost, double it, divide that by your holding cost, and take the square root of the result, out pops a single number. That number is your Economic Order Quantity: the ideal batch size to buy every single time you need to restock.
Walking Through a Real Example: Meet Maya's Bicycle Shop
Let's ground this in reality by following Maya, who runs a specialty bicycle component shop. She sells a popular hydraulic disc brake kit and wants to stop guessing how many boxes to buy from her manufacturer in Taiwan.
Let's gather Maya's numbers for the year:
- Annual Demand ($D$): Maya reviews her sales logs from the past twelve months and realizes she consistently sells 1,200 brake kits a year.
- Ordering Cost ($S$): Every time Maya places an order, she pays a flat $50 international wire transfer fee, plus about $100 of her own time and staff labor spent processing the paperwork and inspecting the shipment upon arrival. Her total fixed ordering cost is $150 per order.
- Holding Cost ($H$): Each brake kit costs Maya $40 to buy wholesale. Between warehouse space allocation, insurance, and the 8% annual return she could be making if that cash wasn't tied up in brake kits sitting on a shelf, she calculates her annual holding cost is roughly 20% of the item's purchase value. That means $40 \times 0.20 = $8 per unit, per year.
Now, let's plug Maya's numbers into our formula to calculate EOQ:
$$\text{EOQ} = \sqrt{\frac{2 \times 1,200 \times 150}{8}}$$
First, let's tackle the numerator (the top part of the fraction): $$2 \times 1,200 = 2,400$$ $$2,400 \times 150 = 360,000$$
Next, we divide that result by our holding cost ($H$): $$\frac{360,000}{8} = 45,000$$
Finally, we take the square root of 45,000: $$\sqrt{45,000} \approx 212.13$$
Since Maya can't order 0.13 of a brake kit, we round to the nearest whole number. Maya's Economic Order Quantity is 212 units.
What This Actually Means for Maya's Bank Account
Knowing that 212 units is the magic number is great, but what does it change in practice? Let's look at how Maya's old habits compare to using her new EOQ.
Previously, Maya liked to place a massive order once a quarter (300 units at a time) or tiny orders every month (100 units at a time). Let's see what happens if she tries ordering in batches of 100 versus her new EOQ batch of 212.
Scenario A: Ordering in small batches of 100 units
- Number of orders per year: $1,200 \text{ demand} / 100 \text{ units} = 12 \text{ orders}$
- Total annual ordering cost: $12 \text{ orders} \times $150 = $1,800$
- Average inventory held at any time: $100 / 2 = 50 \text{ units}$
- Total annual holding cost: $50 \text{ units} \times $8 = $400$
- Total Annual Inventory Cost: $$1,800 + $400 = \mathbf{$2,200}$
Scenario B: Ordering using EOQ (212 units)
- Number of orders per year: $1,200 / 212 \approx 5.66 \text{ orders}$ (let's say 6 orders)
- Total annual ordering cost: $6 \times $150 = $900$
- Average inventory held at any time: $212 / 2 = 106 \text{ units}$
- Total annual holding cost: $106 \times $8 = $848$
- Total Annual Inventory Cost: $$900 + $848 = \mathbf{$1,748}$
By shifting her order size from 100 units to her EOQ of 212 units, Maya just saved hundreds of dollars a year in administrative overhead and shipping friction, while keeping her storage footprint manageable.
When you scale these calculations across dozens of different product lines, optimizing your working capital becomes one of the most effective ways to boost your bottom line. If you are also managing broader business financing or lines of credit to fund these inventory cycles, you can use tools like our Business Finance calculators to map out your cash flow needs.
Where EOQ Trips People Up (Common Mistakes to Avoid)
The math behind EOQ is clean and elegant, but the real world is messy. Before you apply this formula to your entire inventory catalog, keep these common edge cases and pitfalls in mind.
1. Treating Ordering Costs as "Free" Labor
A lot of small business owners look at the ordering cost ($S$) and think, “I process the purchase orders myself, so that doesn't cost me anything extra.”
This is a trap. Your time has value. If you spend ten hours a month emailing suppliers and tracking shipments, that is time you aren't spending on sales, marketing, or product development. Underestimating your administrative costs will artificially shrink your calculated order size, leading you to place too many small, expensive orders.
2. Forgetting That Holding Costs Add Up Silently
Storage costs aren't just the rent check you write for your warehouse. They include inventory shrinkage (items getting damaged, lost, or stolen) and obsolescence (products going out of style before they sell). If you sell tech accessories or fast-fashion apparel, your holding cost is significantly higher than someone selling nuts and bolts, because yesterday's inventory can quickly become worthless scrap.
3. Assuming Demand Is Perfectly Flat Year-Round
The classical EOQ model assumes that your customer demand is constant throughout the entire year. If you run a seasonal business—like selling snowboards in winter or pool floats in summer—plugging your annual total into EOQ without adjusting for seasonality will leave you short-stocked in peak season and drowning in inventory when sales slump. Use EOQ as a baseline for steady-state items, and apply manual buffers for seasonal spikes.
Beyond the Formula: When to Break the Rules
Sometimes, the math tells you to do one thing, but reality demands another. Don't treat EOQ as an unbendable law of physics.
- Supplier Minimum Order Quantities (MOQs): Your overseas supplier might look at your calculated EOQ of 212 units and laugh, telling you their minimum factory run is 500 units. In this case, your practical order quantity isn't 212—it's 500. EOQ still helps you here, because it shows you how far off the supplier's MOQ is from your ideal cash flow, helping you negotiate better terms.
- Volume Discounts: If your supplier offers a massive price break if you buy 1,000 units at once, the per-unit savings might outweigh the extra holding costs. Always run the total cost comparison before blindly sticking to the pure EOQ number.
- Storage Constraints: If your warehouse simply cannot physically hold 500 units of a bulky item, your physical space acts as a hard ceiling. Never order a batch size that exceeds your storage capacity just because the formula suggested it.
Taking Control of Your Cash Flow
Inventory management doesn't have to feel like guesswork, and you don't need a degree in supply chain management to get your stock levels under control. By breaking down your annual demand, isolating your true ordering costs, and factoring in what it actually costs to store your products, you can find the exact batch size that protects your cash and keeps your shelves stocked.
Take a single top-selling product from your catalog today, write down its numbers, and run through the EOQ equation. Seeing that concrete number—knowing precisely how many units to order and when—takes the guesswork out of purchasing and leaves you with something much better: peace of mind and money saved.
Frequently Asked Questions
What should I do if my supplier has a minimum order quantity (MOQ) higher than my EOQ?
If your supplier's MOQ is higher than your calculated EOQ, you should generally default to the MOQ (since you can't buy fewer units than they require). However, knowing your true EOQ gives you powerful leverage. It allows you to demonstrate to your supplier that their minimum order size is forcing you to hold excess inventory, opening the door to negotiate smaller batch runs, split shipments, or tiered pricing discounts.
How often should I recalculate my EOQ?
You don't need to recalculate every week, but you should review your EOQ values at least once a year—or whenever major business shifts occur. If your supplier raises their shipping fees, your warehouse rent increases, or your product sales velocity changes significantly (up or down), your old EOQ number will no longer reflect reality.
Can I use EOQ for perishable goods or items with expiration dates?
You can use the basic formula to find the mathematical batch size, but you must be extremely cautious. Standard EOQ does not account for product spoilage. If you order large batches of perishable goods to optimize ordering costs, but half of them expire on your shelves before you can sell them, your actual holding and loss costs will skyrocket, wiping out any savings. For perishables, keep your order sizes smaller even if the math suggests otherwise.
Disclaimer: The examples and calculations provided above are for educational purposes and general illustration. Every business has unique operational overhead, tax considerations, and supply chain constraints. Consider consulting with a qualified supply chain or financial professional before making major purchasing changes.
For those who want to run these numbers on the go, check out the free Finlaa app for quick, no-nonsense calculations whenever you need them.
Related calculators
Related articles
Certificate Rate Calculator: How to Figure Out Your True Earnings
Loans
Building Depreciation Calculator: How to Figure Out What Your Property Is Actually Losing in Value
Loans
Wedding Price Estimate: The Real Numbers Behind the Big Day
Loans
Moving Cost of Living Calculator: See If Your Next Move Actually Makes Financial Sense
Loans