Audited 29 Jul 2026·Last updated 29 Jul 2026·4 citations·Tier 2·0 uses

Economic Order Quantity (EOQ) Calculator

Free economic order quantity calculator. Harris's square-root EOQ formula, ordering and holding costs, and what your current order size costs you.

Economic Order Quantity Calculator

What do you want to work out?
Units consumed or sold per year for ONE item. The model assumes this rate is steady and known — if your demand is seasonal or lumpy, the answer is a starting point, not a policy.
units/yr
The fixed cost of placing and receiving one order, whatever its size: purchasing time, approvals, inbound freight that does not scale with quantity, goods-in and inspection. Harris's own warning was that most managers badly underestimate this.
$
The landed cost of one unit. It does not change the total purchase bill across the year, so it only enters the model through the holding cost below.
$
What it costs to carry a unit for a year, as a percentage of its cost: your cost of capital plus warehousing, insurance, shrinkage and obsolescence. Harris assumed 10% in 1913 and said double would often be fairer. There is no universal figure — set it from your own numbers.
%
365 for a calendar year, 360 if your business plans on a commercial year, 250 or so if you only want working days. This scales the cycle length only — it never changes the order quantity.
days
The size you actually order — a pallet, a case pack, a supplier minimum. Used in the second mode to price the gap against the optimum. Ignored in the first mode.
units
Economic order quantity
600
The order size that minimises ordering plus holding cost. It is deliberately not rounded to whole units: rounding it to a case or pallet quantity is your decision, and the cost penalty below tells you exactly what that rounding costs. This figure assumes steady known demand, one whole delivery per order, no stockouts and no quantity discounts — where any of those fail, treat it as a first estimate rather than a policy.
Quantity these costs are based on
600 units
Orders per year
20×
Days between orders
18.3 days
Annual ordering cost
$1,200.00
Annual holding cost
$1,200.00
Total relevant annual cost
$2,400.00
Cost penalty versus the optimum
0.00%

Background.

The economic order quantity answers a question every business holding stock has to answer somehow: how much should you buy at a time? Order in large quantities and you place few orders, but you finance and store a lot of stock. Order in small quantities and stock is cheap to hold, but you pay the fixed cost of ordering over and over. There is a quantity that minimises the sum of the two, and it is the square root of twice annual demand times the cost per order, divided by the annual cost of holding one unit.

That result is not modern. Ford W. Harris published it in Factory, The Magazine of Management in February 1913, in a paper called "How Many Parts to Make at Once", and his own framing has aged remarkably well: "Interest on capital tied up in wages, material and overhead sets a maximum limit to the quantity of parts which can be profitably manufactured at one time; set-up costs on the job fix the minimum." He wrote it as the square root of 240MS/C, where M is monthly movement, S the set-up cost and C the unit cost. The 240 is not a law of nature — it is 24 divided by 0.10, and the 0.10 is an interest and depreciation charge he simply assumed, adding that "it is probable that double this would be fairer in many instances". That rate is an input on this page for exactly that reason.

The model earns its place by being robust rather than precise. MIT's supply chain course puts the sensitivity plainly: a 50% increase in order quantity over the optimum raises total relevant cost by only about 8%. That flatness is the practically useful part of the result. It means you can round the square root up to a pallet, a case pack or a supplier minimum without much loss — and it means the calculation is worth doing mainly to find out whether you are in the right neighbourhood, not to defend the third decimal place. The second mode on this page exists for that: enter the quantity you actually order and it will price the gap for you.

What the model assumes is where it breaks. Demand must be uniform and known. The whole order must arrive at once. There must be no stockouts, no backorders and no quantity discounts, and the cost parameters must not themselves change with order size. Lead time is absent for a reason worth knowing rather than worrying about: it determines when you reorder, not how much, so it has no effect on the answer. Where demand is seasonal or lumpy, or where a supplier's price breaks at 1,000 units, the square root is a starting point and not a policy — with a volume discount the purchase cost stops being constant across order sizes, and this model no longer picks the cheapest option because it never looks at purchase cost at all.

One cost is deliberately left out of every figure below. The purchase price of the goods, annual demand times unit cost, is identical whatever quantity you order in, so including it would swamp a comparison it cannot affect. On the worked example the goods cost $240,000 a year and the ordering and holding costs together come to $2,400 — one per cent of it. That ratio is worth keeping in mind before spending a week optimising the smaller number.

What is economic order quantity calculator?

The economic order quantity is the replenishment lot size that minimises the sum of annual ordering cost and annual inventory holding cost for a single item under constant, known demand. Ford W. Harris derived it in 1913 in "How Many Parts to Make at Once", concluding that "the value for X that will give the minimum value to Y, reduces to the square root of (240MS divided by C)", with M the units used per month, S the set-up cost of an order and C the unit cost. In modern notation the same result is written Q* = √(2DS/H), where D is annual demand, S is the fixed cost per order and H is the annual cost of holding one unit — the two forms are algebraically identical once D is written as 12M and H as the interest rate times C.

The two cost curves the model balances move in opposite directions. Annual ordering cost is S × D/Q, which falls as Q rises. Annual holding cost is H × Q/2, taking average stock as half the order quantity because inventory is drawn down linearly between deliveries, which rises as Q rises. Their sum, the total relevant cost, has a single minimum, and at that minimum the two components are exactly equal. Substituting Q* back gives the minimum attainable relevant cost as √(2SHD).

The model is sometimes called the Harris-Wilson or simply the Wilson formula, after R. H. Wilson's 1934 Harvard Business Review treatment, which popularised it for stock control in the years after Harris's original paper had been forgotten. Harris himself was clear about its limits, writing that "the method given is not rigorously accurate, for many minor factors have purposely been left out", and that no formula "should be depended upon entirely for determining the amount of stock that should be carried".

How to use this calculator.

  1. Work on one item at a time. The model describes a single stock-keeping unit with its own demand and its own ordering cost — it says nothing useful about a basket of items ordered together on one purchase order.
  2. Enter annual demand in units. If you only have monthly movement, multiply by twelve; that is exactly what Harris's original formula did internally.
  3. Enter the cost per order — the part that does not scale with quantity. Purchasing time, approvals, goods-in, inspection and any fixed inbound freight. Harris's warning still applies: most managers underestimate this badly, and in a large factory he found it could exceed a dollar an order in 1913 money.
  4. Enter the unit cost and the annual holding cost rate. The rate should cover your cost of capital plus storage, insurance, shrinkage and obsolescence. Do not take a number off the internet for this — it is the input the answer is most sensitive to, and it is specific to your business.
  5. Read the optimum, then switch to the second mode and enter the quantity you actually order. The cost penalty tells you whether the gap is worth an argument with your supplier or not.
  6. Round the answer to something you can actually buy. The cost curve is flat near the optimum, so a case or pallet quantity close to it costs almost nothing extra — and the penalty figure will tell you exactly how much.
  7. Check the assumptions before acting. Steady demand, one whole delivery, no stockouts, no volume discount. If a supplier offers a price break at a quantity above your EOQ, this model cannot compare the two — you need to price both options including the purchase cost, which this page excludes by design.

The formula.

Q* = √( 2 · D · S ⁄ H ) H = C · i TRC = S·D⁄Q + H·Q⁄2

Holding cost per unit per year is the unit cost multiplied by the holding rate: at $20 a unit and 20% a year, $4.00. The economic order quantity is then the square root of twice annual demand times cost per order, divided by that figure. With 12,000 units of annual demand and $60 an order, that is the square root of 2 × 12,000 × 60 ÷ 4, which is the square root of 360,000, which is exactly 600 units.

Everything else follows from the quantity. Orders per year is demand divided by the order quantity, here 12,000 ÷ 600 = 20. The cycle length is the year divided by that, 365 ÷ 20 = 18.25 days. Annual ordering cost is $60 × 20 = $1,200. Annual holding cost is $4 × 600 ÷ 2 = $1,200, taking average stock as half the order quantity. Their sum, $2,400, is the total relevant cost — and it matches the closed form √(2 × 60 × 4 × 12,000) = √5,760,000 = $2,400, which is the check that the quantity really is the minimum.

The equality of those two cost figures is not a coincidence of these numbers. At the economic order quantity, annual ordering cost always equals annual holding cost, for every set of inputs. That is the simplest way to sanity-check any EOQ answer by hand.

Rounding stage: nothing is rounded part-way through. The square root, every cost and the penalty are carried at full decimal precision and rounded exactly once, at the point the result is returned, to ten decimal places. The order quantity in particular is not rounded to whole units. That is deliberate — rounding to a practical pack size is your decision, and the cost of it is precisely what the penalty figure measures.

The penalty comes from the sensitivity relation, total relevant cost at any quantity divided by total relevant cost at the optimum, which equals one half of the optimum over your quantity plus your quantity over the optimum. Ordering the 1,000-unit pallet instead of the 600-unit optimum means 12 orders a year at $720 of ordering cost, average stock of 500 units at $2,000 of holding cost, and $2,720 in total — 13.33% above the $2,400 minimum, or $320 a year. Ordering 50% above the optimum, 900 units, would cost only 8.33% more; doubling to 1,200, or halving to 300, both cost exactly 25% more. The penalty can never be negative, because the optimum is a genuine minimum, and a test sweeps hundreds of quantities to prove it.

Invalid states are refused rather than returned. A zero cost per order would make ordering one unit at a time optimal, and a zero holding cost would make ordering a lifetime's supply optimal; both are degenerate rather than useful, so both are rejected with a message naming the field. Zero or negative demand, unit cost, holding rate, days in the year, or current order quantity are refused the same way.

A worked example.

Example

A distributor sells 12,000 units a year of one component. Each unit lands at $20. Placing and receiving an order — the buyer's time, the approval, the goods-in booking and the inspection — costs about $60 whatever the order size. The company reckons carrying stock costs it 20% a year of the value held, once its cost of capital, warehouse space, insurance and obsolescence risk are counted, so holding one unit for a year costs $4. The economic order quantity is the square root of 2 × 12,000 × 60 ÷ 4, which is the square root of 360,000: exactly 600 units. That means 20 orders a year, one every 18.25 days. Ordering costs $60 × 20 = $1,200 a year and holding costs $4 × 300 average units = $1,200 a year, for $2,400 of total relevant cost. The two halves being equal is the signature of the optimum. Today the company orders a pallet of 1,000 units. Switching to the second mode prices that: 12 orders a year at $720 of ordering cost, average stock of 500 units at $2,000 of holding cost, $2,720 in total. That is 13.33% above the minimum — $320 a year. Worth knowing, and worth a conversation with the warehouse, but it is not an emergency, and that is the model's most useful lesson. Ordering 900 units, 50% above the optimum, would cost only 8.33% more. Doubling to 1,200 or halving to 300 both cost exactly 25% more. The curve near the bottom is very flat. Keep the scale in view. The goods themselves cost 12,000 × $20 = $240,000 a year. The entire ordering-and-holding argument is over $2,400, one per cent of that. If the supplier would shave 1% off the unit price for taking pallets, that $2,400 saving is $2,400 against $320 of extra ordering-and-holding cost, and the pallet wins easily — but this model cannot tell you that, because it excludes purchase cost by design. As a check that this is the same model Harris published, run his own first example through it. He describes an article with a movement of 1,000 units a month, a set-up cost of two dollars and a unit cost of ten cents, at his assumed 10% annual charge on stock, and prints "the theoretical economical size of lot is 2,190 units". Entering 12,000 units a year, $2.00 an order, $0.10 a unit and a 10% holding rate returns 2,190.89 — his printed figure, from a paper published in 1913.

annual Demand12,000
ordering Cost60
unit Cost20
current Order Quantity1,000
holding Cost Rate Percent20
days In Year365
solve Foreoq

Frequently asked questions.

What is the EOQ formula?
The economic order quantity is the square root of two times annual demand times the cost per order, divided by the annual cost of holding one unit: Q* = √(2DS/H). The holding cost per unit is usually expressed as the unit cost multiplied by an annual carrying rate, so H = C × i. Ford W. Harris derived exactly this in 1913, writing it as the square root of 240MS/C with M as monthly movement — the 240 being 12 months × 2 (average stock is half a lot) divided by the 10% carrying charge he assumed. The two forms are the same equation. At the resulting quantity, annual ordering cost and annual holding cost are exactly equal, which is the quickest way to check any EOQ answer by hand.
What holding cost rate should I use?
One you have worked out for your own business, because no defensible universal figure exists and this page will not invent one. The rate should cover the cost of the capital tied up in stock, plus warehouse space, handling, insurance, shrinkage and — usually the largest and most neglected component — obsolescence. Harris assumed 10% a year in 1913 and immediately added that "it is probable that double this would be fairer in many instances". A business holding fashion or electronics stock faces obsolescence that a business holding steel fasteners does not, and their rates should not be within sight of each other. If you are unsure, run the calculator at two rates and look at how much the answer moves: the order quantity varies with the inverse square root of the rate, so doubling the rate divides the quantity by about 1.41.
How accurate does the EOQ have to be?
Much less accurate than people expect, and this is the model's most useful property. The total cost curve is very flat near its minimum. MIT's supply chain course states that a 50% increase in order quantity over the optimum raises total relevant cost by only about 8%, and this calculator reproduces that exactly: at the worked example's 600-unit optimum, ordering 900 costs 8.33% more. Doubling or halving the optimum both cost precisely 25% more. Harris noticed the same thing in 1913, observing that his 2,190-unit answer could vary between 1,000 and 5,000 units for a very small change in cost per piece. The practical consequence is that you should round to a case, pallet or supplier minimum near the optimum and stop worrying — but that being an order of magnitude out does cost real money.
Why doesn't lead time appear in the EOQ calculation?
Because it does not affect how much to order, only when to order. MIT's course notes make the point directly: lead time "does not influence the Order Size, Q". Lead time sets the reorder point — the stock level at which you place the next order so that it arrives as the last of the previous one is used — which is demand per day multiplied by lead time in days, plus whatever safety stock your service level requires. Harris called this the "safe stock minimum" and made exactly the same observation, that it "does nothing of the kind" to the interest charges. Order quantity and reorder point are two separate decisions, and this page answers only the first.
What happens when the supplier offers a quantity discount?
The model stops being able to answer your question, because it never looks at purchase cost. Total relevant cost here is ordering plus holding only, and the purchase price of the goods is excluded on the grounds that annual demand times unit cost is the same at every order quantity. A volume discount breaks that assumption: the unit price now depends on the order size, so the comparison has to include the purchase bill. The practical approach is to price each price break separately — total purchase cost plus ordering cost plus holding cost at that quantity — and pick the cheapest, remembering that the discounted holding cost also falls slightly because the units are cheaper to hold. On the worked example the goods cost $240,000 a year against $2,400 of relevant cost, so a 1% discount is worth ten times the entire ordering-and-holding argument.
Does the EOQ work if my demand is seasonal or unpredictable?
Not as a policy, though it remains a reasonable first estimate. The model's first assumption is that demand is uniform and deterministic, and MIT's course flags it plainly as a strength-and-weakness pair: robust and simple, but with strong assumptions. Where demand is seasonal, the average stock of Q/2 is wrong in both the peak and the trough. Where demand is genuinely uncertain, the model has no way to price a stockout, because it assumes stockouts never happen — which is why real replenishment policies bolt safety stock and a service level onto the EOQ rather than replacing it. Use it for items with reasonably stable demand, and treat it as a back-of-the-envelope check elsewhere.
Why is average inventory half the order quantity?
Because under the model's assumptions stock falls linearly from Q to zero and is then instantly replenished to Q, so the time-weighted average over a cycle is Q/2. Harris set this out explicitly: "it will be found that the stock consists of additions in lots of X and a gradual exhaustion of the stock to nothing. The average stock, if the movement is regular, it will be evident, is one-half of X." He also noted immediately that "if the movement is irregular, and it generally is, there is introduced an additional complication" — which he chose to leave as a correction factor rather than model. In practice, a business carrying safety stock has an average inventory of Q/2 plus that safety stock, and the extra carrying cost of the safety stock is the same at every order quantity, so it does not move the optimum.
How much does demand have to change before I should change my order size?
By a lot, because the quantity moves with the square root of demand. Harris put the rule memorably: "having once determined that it is wise to put in orders for lots of one hundred, based on a certain consumption, it is of value to know that this consumption must increase four fold to warrant doubling the manufacturing quantities." This calculator reproduces that exactly — quadrupling the worked example's 12,000 units of annual demand doubles the 600-unit optimum to 1,200. The same square-root damping applies to every input: doubling the cost per order raises the quantity by only about 41%, and doubling the holding rate cuts it by about 29%. It is a strong argument against re-running your order quantities every time a forecast twitches.

References& sources.

  1. [1]Ford W. Harris, "How Many Parts to Make at Once", Factory, The Magazine of Management, Vol. 10, No. 2, February 1913, pp. 135–136, 152; reprinted in Operations Research, Vol. 38, No. 6, November–December 1990, pp. 947–950 (retrieved 2026-07-29). The original derivation and the source of every Harris quotation and worked example on this page, including "the value for X that will give the minimum value to Y, reduces to the square root of (240MS divided by C)", the assumed ten per cent carrying charge, and the three printed examples (2,190 units; 6,850 pieces; 48.5 pieces). The INFORMS landing page carrying the citation and abstract is open; the reprint body text was read from a course-hosted scan of the same Operations Research reprint at brooklyn.cuny.edu.
  2. [2]MITx CTL.SC1x "Supply Chain & Logistics Fundamentals", Key Concepts, Week 5 Lesson 2: Economic Order Quantity, MIT Center for Transportation & Logistics (retrieved 2026-07-29). Independent second authority. Source for the modern form Q* = √(2 ct D / ce), the total relevant cost expression, the closed form TRC(Q*) = √(2 ct ce D), the sensitivity relation TRC(Q)/TRC(Q*) = ½(Q*/Q + Q/Q*), the stated assumptions ("Demand is uniform and deterministic", "Lead time is instantaneous (0) — although this is not restrictive at all since the lead time, L, does not influence the Order Size, Q", "Total amount ordered is received"), and the robustness claim that "a 50% increase in Q over the optimal quantity (Q*) only increase the TRC by ~ 8%". Open access.
  3. [3]Donald Erlenkotter, "Ford Whitman Harris's economical lot size model", International Journal of Production Economics, Vol. 155(C), September 2014, DOI 10.1016/j.ijpe.2013.12.008; open-access author copy at eScholarship, University of California (retrieved 2026-07-29). Peer-reviewed source for the provenance of the model: the paper "was published in the A. W. Shaw Company's magazine Factory, The Magazine of Management in February 1913", that "the square-root formula derived by Harris has become one of the most cited and applied results in production and operations management", and that Harris's foundation paper "was lost from sight for many years and was finally rediscovered 75 years later". Open access.
  4. [4]R. H. Wilson, "A Scientific Routine for Stock Control", Harvard Business Review, Vol. 13, No. 1, 1934, pp. 116–128. PRINT, BIBLIOGRAPHIC ONLY — deliberately shipped without a URL because none was retrieved. This is the paper that popularised the square-root lot-size rule for purchasing and gave the model its common alternative name, the Wilson formula. No figure, quotation or constant on this page is attributed to it.

Embed

Quanta Pro

Paid features are coming later.

  • All 762 calculators remain free
  • No billing is enabled
Coming soon