Calculate your fill rate and OTIF
The calculator works out six rates from the same deliveries: unit, line and order fill rates, OTD (on-time delivery, the share of lines delivered on time), then line OTIF and order OTIF. Paste the order lines due over the period, exported from your ERP (order, quantity ordered, quantity delivered, days late, negative if early). The sample values come from a fictional distributor (6 orders, 13 lines).
Paste columns copied straight from Excel or an ERP export (separated by semicolons or tabs). Days late: 0 if delivered on the promised date, negative if early. 13 lines read.
Across 13 lines and 6 orders, your fill rate ranges from 50.0% to 93.1% depending on the definition: always state which one you report. 4 lines out of 13 are not OTIF: 3 incomplete, 2 late or not delivered. One missed line is enough to fail its whole order (order OTIF: 33.3%).
What is OTIF?
OTIF is the logistics KPI that checks the promise made to the customer: a line succeeds only if it arrives complete and on the promised date. On time but incomplete, or complete but late, it fails.
A typical scenario at a distributor: the warehouse reports a 93% fill rate, while customer service counts only two perfect orders out of six. Both are right, because they are not counting the same thing: the first counts units, the second counts whole orders.
The same KPI is also called DIFOT (delivered in full, on time). The acronym OTIF also refers to the Intergovernmental Organisation for International Carriage by Rail, which has nothing to do with this KPI.
The SCOR model from ASCM (the Association for Supply Chain Management), the international reference framework for supply chains, groups these measures under reliability: delivering on time, in the right quantity and at the right quality. Its top-level metric, Perfect Order Fulfillment (RL.1.1), adds the condition of the goods to OTIF.
OTIF differs from two related metrics. OTD (on-time delivery) measures punctuality only; the fill rate measures completeness only. OTIF requires both at once, on the same line.
The distributor in our example is fictional. Its deliveries for one day are the ones preloaded in the calculator: 6 orders, 13 lines, 1,529 units ordered.
What are the formulas for fill rate, OTD and OTIF?
Six formulas cover the essentials: three fill rates (by order, by line, by unit), OTD, and OTIF counted by line or by order. They all divide what succeeded by what was due.
The fill rate is calculated as follows: orders, lines or units delivered complete ÷ orders, lines or units due × 100. For the distributor in the example, it is 50.0%, 76.9% or 93.1% depending on the level chosen.
| KPI | Formula | Note |
|---|---|---|
| Order fill rate | Orders delivered complete ÷ orders due | One short line fails the whole order |
| Line fill rate | Lines delivered complete ÷ lines due | Each line counts once, whatever the quantity |
| Unit fill rate | Units delivered, capped at the quantity ordered ÷ units ordered | Case fill rate when orders are counted in cases |
| OTD | Lines delivered no later than the promised date ÷ lines due | On-time delivery |
| Line OTIF | Lines delivered on time and in full ÷ lines due | On time in full |
| Order OTIF | Orders whose lines are all on time and in full ÷ orders due | Perfect order, without the quality condition |
Multiply each rate by 100 to express it as a percentage. A line that is never delivered counts as both late and incomplete.
The stockout rate, often quoted alongside, is the complement of the fill rate: 1 − fill rate, with the same definition (order, line or unit). At the same level (line or order), OTIF is always lower than or equal to both the fill rate and OTD, since it adds a condition to each.
Worked example: 6 orders, 13 lines
For the same deliveries, the distributor’s six KPIs range from 33.3% to 93.1% depending on what is counted. All six calculations start from a single table, with no tolerance on lateness or quantity.
Lateness is the gap in days between delivery and the date promised to the customer.
| Order | Ordered | Delivered | Days late | Complete | On time |
|---|---|---|---|---|---|
| C1 | 100 | 100 | 0 | yes | yes |
| C1 | 50 | 50 | 0 | yes | yes |
| C2 | 200 | 180 | 0 | no | yes |
| C2 | 40 | 40 | 0 | yes | yes |
| C3 | 120 | 120 | 2 | yes | no |
| C3 | 60 | 60 | 0 | yes | yes |
| C3 | 30 | 30 | 0 | yes | yes |
| C4 | 500 | 500 | 0 | yes | yes |
| C5 | 80 | 0 | not delivered | no | no |
| C5 | 24 | 24 | 0 | yes | yes |
| C5 | 10 | 10 | 0 | yes | yes |
| C6 | 300 | 295 | 0 | no | yes |
| C6 | 15 | 15 | −1 | yes | yes |
C2 is short by 20 units, C5 by 80 (the line never shipped) and C6 by 5. One line of C3 arrives 2 days late.
Unit fill rate
= 1,424 ÷ 1,529 = 93.1%
Line fill rate
= 10 ÷ 13 = 76.9%
Order fill rate
= 3 ÷ 6 = 50.0% (C1, C3, C4)
OTD
= 11 ÷ 13 = 84.6%
Line OTIF
= 9 ÷ 13 = 69.2%
Order OTIF
= 2 ÷ 6 = 33.3% (C1, C4)Ranked from most flattering to strictest, the six figures show the gap.
The unit rate is the highest because C4’s 500-unit line, delivered complete, carries a lot of weight, and a 5-unit shortfall out of 300 barely counts. The C6 customer, however, received an incomplete order.
Why you cannot multiply your way to OTIF
OTIF is counted line by line: it cannot be derived from OTD and the fill rate. Multiplying the two rates assumes that late lines and short lines are independent, which is rarely the case: they often fall on the same lines.
In the example, 84.6% × 76.9% = 65.1%, while the true line OTIF is 69.2%. The C5 line, never delivered, is both late and incomplete: the two failures overlap, which the product ignores.
The 4.1-point gap comes from that overlap. If the late lines and the short lines never coincided, OTIF would drop to 61.5% (8 out of 13), below the product. Over a month of several thousand lines, the gap can flip the verdict against a contractual target.
The effect of a quantity tolerance
A quantity tolerance written into a contract raises OTIF without a single delivery changing. With a 2% tolerance, C6’s 295 units delivered out of 300 count as complete: the shortfall is only 1.7%.
Only the unit rate does not move: it counts units, not lines. Enter 2 as the quantity tolerance in the calculator to check. A tolerance belongs in the contract, set once, not in the monthly calculation.
Line OTIF or order OTIF: which one should you track?
Order OTIF reflects what the customer experiences: one missing line fails the whole order. Line OTIF, more stable, does a better job of pointing to the items at fault. Track both; report the one in the contract.
The gap between the two depends mainly on the number of lines per order. If each line had, independently of the others, a 95% chance of being perfect, a one-line order would be OTIF 95 times out of 100; a 10-line order, only 60 times (0.95 to the power of 10 = 59.9%).
That is why the order OTIF of a distributor shipping many SKUs per order is mechanically lower than that of a manufacturer shipping a single item per order. Comparing the two compares order sizes, not performance.
Which rules should you write down before calculating?
Two companies with the same deliveries can report very different OTIF figures: the reference date, the delivery window, tolerances and exclusions move the figure as much as real progress does. These choices should be written down before the first calculation.
In France, the 2019 good-practice guide on logistics penalties from the CEPC (the French commission that reviews commercial practices) takes the same view: it defines the fill rate as conforming products delivered over products ordered, and recommends a tolerance in suppliers’ favor.
- The reference date. The date requested by the customer, or the date you confirmed? Measuring against the confirmed date, which can be moved, gives a better figure and a poorer picture of what the customer experiences.
- The delivery window. The exact date, the next day, a time slot? Does an early delivery count as on time? Some customers refuse it (full docks, unplanned stock). The calculator counts early as on time.
- The point of measurement. Leaving your warehouse (shipped on time) or arriving at the customer (delivered on time)? The second includes transport and requires proof of delivery.
- Back orders. The remainder of a line, delivered later, forms a back order. A line delivered in two shipments is complete on the date of the last one, so often late. It counts only once.
- Over-deliveries. 110 units for 100 ordered: complete or not? The calculator applies the tolerance in both directions and caps the unit rate at the quantity ordered.
- Rejections and returns. A line rejected at receiving for a defect or a wrong item is delivered, but not “in full” for the customer.
- Exclusions. Orders canceled, postponed at the customer’s request, or on credit hold: remove them from the denominator, and count them separately to make sure they are not hiding late deliveries.
The reference date is the rule that matters most, and the easiest to game.
Against the rescheduled date, everyone is on time. Keep the first confirmed date, and track the gap to the requested date separately.
How do you read the result, and what is a good OTIF?
Read OTIF against OTD and the fill rate, which tell you where to look, and against the target in the customer contract: there is no public, sourced industry average for France.
| What you see | Where to look |
|---|---|
| Low OTD, decent fill rate | Transport, missed departures, promised lead times too short |
| Low fill rate, decent OTD | Stockouts, picking errors, forecasts |
| Decent line OTIF, low order OTIF | Orders with many lines; one or two items chronically out of stock |
| Very high unit rate, low line rate | Small lines left behind, masked by large complete lines |
In the example, OTD (84.6%) is above the line fill rate (76.9%): the distributor has a quantity problem first, not a transport problem.
The best-known public benchmark is a customer requirement. Walmart introduced its supplier OTIF program in 2017.
The US retailer required 98% from September 15, 2020, with a penalty of 3% of the cost of goods. The threshold, previously 85%, had been raised to 95% for non-food products and 97.5% for food. In February 2024, Walmart lowered its targets to 90% on time (for suppliers who arrange their own freight) and 95% in full, with the same 3% penalty.
The “95%” often cited as a good level has no source. The right target is the one in your contracts, measured with their definition and their tolerances.
OTIF on its own does not tell you what to do: broken down by cause (stockout, picking, transport, customer), by customer and by item, it points to the few lines behind most of the shortfalls.
Which mistakes distort OTIF?
The mistakes that distort OTIF almost all come from the definition, not the arithmetic: an unnamed rate, a multiplication, a date that can be moved, an incomplete extract.
| Mistake | What it does in the example | The fix |
|---|---|---|
| Reporting a “fill rate” without saying which | The same day comes out at 50.0%, 76.9% or 93.1% | Name the level: order, line or unit |
| Multiplying OTD by completeness | 65.1% instead of 69.2%: late and short lines overlap on the C5 line | Test each line, then count |
| Letting an over-delivery offset a shortfall | 120 units on one line and 80 on another seem to make 100%; capped, they make 180 ÷ 200 = 90% | Cap each line at the quantity ordered |
| Measuring against a date that can be moved | The line rescheduled to the 14th is “on time,” yet 4 days late for the customer | Keep the first confirmed date |
| Leaving out lines never delivered | Without the C5 line, line OTIF goes from 69.2% to 75.0% (9 out of 12) | Start from lines due, not lines shipped |
| Averaging the OTIF of two sites | 90% on 1,000 lines and 60% on 100 lines do not make 75%, but 960 ÷ 1,100 = 87.3% | Add up the lines, then divide |
| Recalculating by hand every month | The rules change with whoever does the calculation | Write the rules once, in the tool |
How do you track OTIF every week without recalculating it?
A useful OTIF is tracked every week, with rules written down once and failed lines classified by cause: that is the job of a Power BI dashboard connected to the ERP, not of a spreadsheet.
The dashboard reads orders from the ERP and shipments from the WMS (warehouse management system). It applies the rules written before the calculation: the reference date, the tolerances, the exclusions.
It shows line and order OTIF, the fill rate and OTD. Under each figure, it lists the failed lines by cause, by customer and by carrier.
Logistics KPIs in detail, with a calculator on aggregated data, are in the logistics dashboard guide. To place OTIF among management KPIs, see the management dashboard guide. OTIF, fill rate and supplier OTIF each have their own sheet in the KPI library.
In the end, the warehouse and customer service in the scenario read the same figure, with the same definition. The Monday meeting no longer argues about the right rate: it looks at the four failed lines and decides who deals with the C5 line, still sitting on the dock.
Frequently asked questions
How do I calculate OTIF in Excel?
Add a column that tests each line: =AND(C2>0,D2<=0,C2=B2), where B is the quantity ordered, C the quantity delivered and D the days late. Line OTIF is =COUNTIF(E2:E14,TRUE)/COUNTA(E2:E14). For order OTIF, an order is perfect if COUNTIFS(A:A,A2,E:E,FALSE)=0; then divide the number of perfect orders by the number of distinct orders.
What is the difference between OTD and OTIF?
OTD (on-time delivery) measures punctuality only: lines delivered no later than the promised date ÷ lines due × 100. OTIF adds completeness. A line that is never delivered counts as late in both. In the example, OTD reaches 84.6% and line OTIF 69.2%: a high OTD with a low OTIF points to quantity shortfalls, not to transport.
What is the difference between fill rate and in-stock rate?
Fill rate assumes an order: it measures what was delivered against what was requested. The in-stock rate (product availability) applies when the customer does not order ahead, in a store or on an e-commerce site: it measures the share of items in stock at the moment the customer could buy them.
What is the difference between customer OTIF and supplier OTIF?
Customer OTIF measures your deliveries; supplier OTIF measures what you receive, against the date the supplier confirmed: same formula, opposite direction. Keep the first confirmed date: the last rescheduled date makes everyone look punctual.
Can the fill rate exceed 100%?
Not if it is calculated correctly. An over-delivery does not make up for a shortfall: each line is capped at the quantity ordered. A rate above 100% almost always means deliveries were counted without a cap, or back orders were counted twice.
Other calculators for the warehouse and the shop floor: inventory turnover for days in inventory and days of cover, OEE for the performance of a production line, and MTBF and MTTR for equipment reliability and availability.
