Home / Supply Chain / Service Level Calculator
Supply Chain and Inventory
Service Level & Fill Rate Calculator
In short: cycle service level is the probability a cycle avoids a stockout and maps to a Z-score; fill rate is the fraction of demand units shipped from stock. Enter a target for either below, plus your demand variability and order quantity, and this tool returns the other, the Z-score, and the safety stock, in both directions.
Relate service level and fill rate
Safety stock = Z × σ · Fill rate = 1 − (σ / Q) × G(Z)
Fill rate
99.83%
- Cycle service level
- –
- Fill rate
- –
- Z-score (service factor)
- –
- Safety stock
- –
- Expected units short / cycle
- –
Enter a target and the demand variability and order quantity to relate service level and fill rate.
What service level and fill rate mean, and why they differ
Service level and fill rate are the two ways to put a number on how reliably you satisfy demand from stock, and confusing them is one of the most common mistakes in inventory planning. Cycle service level asks a yes-or-no question about each replenishment cycle: did you get through it without ever running out? It is the probability of no stockout per cycle, and it is the figure that classical safety-stock formulas are built around, because it maps cleanly to a Z-score. Fill rate asks a different question: of all the units customers demanded, what fraction did you ship from stock? It counts units, not cycles.
The two diverge because a stockout is rarely total. When stock runs out, it usually runs out near the end of a cycle, after most demand has already been met, so only a handful of units go unfilled. That cycle counts as a failure for cycle service level, which is all-or-nothing, but it barely dents the fill rate, which weighs the shortage by size.
The practical consequence is that fill rate is almost always higher than cycle service level, often much higher: a 95 percent cycle service level commonly delivers a 99 percent or better fill rate.
Knowing which metric a target refers to matters, because setting inventory to a 98 percent cycle service level is a very different, and more expensive, decision than setting it to a 98 percent fill rate.
This calculator makes the relationship explicit and works in both directions. Enter a cycle service level and it returns the Z-score, the safety stock, and the fill rate that level actually delivers; enter a fill-rate target and it solves for the cycle service level and safety stock you need to hit it. It also reports the expected units short per cycle, the raw shortage behind the fill rate, and charts how safety stock climbs as the service level rises, so the cost of reliability is visible before you commit.
How this calculator works, step by step
First choose the direction. In the default mode you enter a target cycle service level and the tool tells you the fill rate it produces; switch modes to enter a fill-rate target instead and get the cycle service level required. This two-way conversion is the heart of the tool, because in practice teams set targets in one metric but need the other to size inventory or judge customer experience.
Then provide two figures the relationship needs: the standard deviation of demand over the lead time, which measures how much demand can swing during the replenishment window, and the order quantity, the number of units in a typical order. The demand variability drives the safety stock and the size of shortages; the order quantity determines how a given shortage translates into a fill rate, because the same expected shortage spread over a larger order is a smaller fraction of unfilled units. Keep both in the same units.
The result panel then shows the whole conversion. The large figure is the metric you did not enter, the fill rate in service-level mode or the cycle service level in fill-rate mode. Below it, both metrics appear together with the Z-score, the safety stock the service level implies, and the expected units short per cycle. The chart plots safety stock against cycle service level across the full range, so the steepening curve near 100 percent is visible. Download a PDF or CSV or share the result; everything runs in your browser and nothing you enter is stored.
The formulas behind the two metrics
Cycle service level connects to inventory through the Z-score. Because demand over the lead time is modeled as a normal distribution, a target service level is a point on that distribution measured in standard deviations, the Z-score, and safety stock is simply Z times the standard deviation of demand over the lead time. A 95 percent service level gives a Z of about 1.65, so the buffer is 1.65 standard deviations of lead-time demand. That is the entire link between the service-level policy and the inventory it costs.
Fill rate needs one more ingredient: the standard normal loss function, written G(Z). This function gives the expected shortage, expressed in standard deviations, when demand overshoots a reorder level set Z standard deviations above the mean.
The expected units short in a cycle is the standard deviation of lead-time demand times G(Z), and the fill rate is one minus that shortage divided by the order quantity: fill rate = 1 – (sigma / Q) x G(Z). The order quantity appears because fill rate is a per-unit measure, so spreading the same shortage over a bigger order raises it.
This calculator computes G(Z) directly and, in the reverse direction, solves the equation for the Z that hits a target fill rate, which has no closed form and must be found numerically.
Five worked examples you can follow
Example 1: service level to fill rate
An item has a demand standard deviation over the lead time of 40 units and an order quantity of 500. Targeting a 95 percent cycle service level gives a Z of about 1.65, so safety stock is 1.65 times 40, about 66 units. The loss function G(1.65) is about 0.021, so the expected shortage is 40 times 0.021, about 0.84 units per cycle. Fill rate is one minus 0.84 divided by 500, which is 99.83 percent. A 95 percent cycle service level delivers a 99.8 percent fill rate here, because each stockout cycle loses under one unit on average.
Example 2: fill rate to service level
Now work backward. Suppose the target is a 99.5 percent fill rate with the same 40-unit standard deviation and 500-unit order quantity. The required expected shortage is one minus 0.995, times 500, which is 2.5 units, so G(Z) must equal 2.5 divided by 40, about 0.0625. Solving the loss function gives a Z of about 1.15, a cycle service level of about 87 percent, and safety stock of 1.15 times 40, about 46 units. A high fill rate needs a surprisingly modest cycle service level here, because the large order quantity dilutes each shortage.
Example 3: a smaller order quantity needs more service
Keep the 99.5 percent fill-rate target and the 40-unit standard deviation but cut the order quantity to 100. The required expected shortage is now one minus 0.995, times 100, which is 0.5 units, so G(Z) must be 0.5 divided by 40, about 0.0125, a much smaller shortage. That requires a Z of about 1.95, a cycle service level near 97.5 percent, and safety stock of about 78 units. The same fill rate demands far more service and buffer when orders are small, because each cycle passes more often and each shortage is a bigger share of a small order.
Example 4: the cost of the last few points
Take the base item and compare service levels. At 95 percent, Z is 1.65 and safety stock is 66 units. At 98 percent, Z is 2.05 and safety stock is 82 units, a 25 percent increase for three points. At 99.5 percent, Z is 2.58 and safety stock is 103 units, another 25 percent on top for a point and a half. The fill rate barely moves across these, from 99.83 to well over 99.9 percent, which shows that chasing cycle service level into the high nineties buys almost no additional fill rate at steeply rising cost.
Example 5: sizing the shortage in units
Return to the base case at a 90 percent cycle service level: Z is about 1.28, G(1.28) is about 0.047, so the expected shortage is 40 times 0.047, about 1.9 units per cycle. If the item runs 26 cycles a year, that is roughly 49 units short annually. At a 95 percent service level the per-cycle shortage falls to 0.84 units, about 22 a year. The difference, 27 units a year, is what the jump from 90 to 95 percent service buys in avoided shortages, which you can value directly against the extra 15 units of safety stock it costs.
Three expert tips for using these metrics
Say which metric your target is
A 98 percent target means very different inventory depending on whether it is a cycle service level or a fill rate. Always state which one, because the fill-rate version is far cheaper to hit. Most customer commitments are really fill-rate targets.
Set fill rate for the customer, service level for the model
Fill rate reflects what customers actually experience, so set service commitments in fill rate. Then convert to a cycle service level to drive the safety-stock formula. This tool does that conversion both ways.
Watch the order quantity’s effect
Fill rate depends on the order quantity, not just the service level. Large orders inflate fill rate for free; small, frequent orders need more service to hit the same fill rate. Include Q when you reason about fill rate.
The service factor and the steepening cost of reliability
The Z-score, or service factor, is where a service-level policy turns into an inventory cost, and its behavior is the single most important thing to understand about service levels. As the target cycle service level rises, the Z-score rises with it, but not proportionally: the increments get larger and larger as you approach 100 percent, because you are reaching further into the thin tail of the demand distribution where each additional slice of probability is rarer. Going from 90 to 95 percent adds about 0.37 to Z; 95 to 98 adds 0.40; 98 to 99.5 adds 0.53; and the last stretch toward 99.9 adds a full point or more.
Since safety stock is Z times the demand variability, the buffer, and the cash it ties up, climbs the same steepening curve. This is the mathematical reason the last few points of service are the expensive ones, and why a blanket 99 percent target across every item wastes inventory on products that do not need it.
The chart on this page draws this curve directly, plotting the safety stock required at each service level for your demand variability, so you can see where the cost starts to accelerate.
The right target sits before that acceleration for most items, high enough to meet the service commitment but not so high that you are paying steeply for reliability the item does not warrant, and the fill-rate view often shows you are already near the top of the useful range at a much lower cycle service level.
Why fill rate is usually the better customer metric
For judging the experience customers actually receive, fill rate is almost always the more honest measure, because it captures the size of shortages, not merely their occurrence. Cycle service level treats a cycle that missed one unit the same as a cycle that missed a hundred; both are simply a stockout. Fill rate distinguishes them, counting the one-unit miss as a tiny dent and the hundred-unit miss as a serious failure. Since customers feel the units they could not get, not the abstract cycles, fill rate lines up with satisfaction far better.
This is also why service commitments in contracts and service-level agreements are usually stated as fill rates, even when they are loosely called service levels. A promise to fill 98 percent of ordered units is a fill-rate target; a promise that stock is available 98 percent of cycles is a cycle-service-level target, and the two require very different inventory.
Confusing them leads either to over-investment, when a fill-rate promise is mistakenly sized as a cycle service level, or to broken commitments, when the reverse happens.
The safe practice is to define the customer promise as a fill rate, use this calculator to convert it to the cycle service level that drives the safety-stock math, and hold both numbers so everyone knows which is which.
Setting the target to the cost of a stockout
Neither metric has a universally right value; the correct target is the one where the marginal cost of more buffer equals the marginal cost of the shortages it prevents. On the cost side, each increment of service level adds safety stock along the steepening curve, and that inventory carries a holding cost. On the benefit side, higher service prevents shortages, each of which costs a lost sale, an expedite, or eroded goodwill. The optimum is where those marginal costs meet, and it varies enormously by item.
A high-margin or strategically critical product, where a stockout loses a valuable sale or damages a key account, justifies a high service target and the buffer that comes with it. A low-margin, easily substituted, or quickly replenished item does not, and setting it to 99 percent wastes cash that would do more good elsewhere.
The expected-units-short figure this calculator reports makes the benefit side concrete: multiply it by cycles per year and by the margin lost per unit, and you have the annual stockout cost of a given service level, which you can weigh against the safety-stock cost the tool also shows.
Sizing service levels is ultimately about allocating a finite inventory budget across items by the value each one’s reliability protects, not about applying a single number everywhere.
Segmenting targets across a catalog
The biggest gains from these metrics come not from perfecting one item but from setting targets sensibly across a whole catalog, and that means differentiating. A flat target applied to every product is almost always wrong: it lavishes buffer on cheap, non-critical items that would barely be missed in a stockout, while sometimes under-protecting the few products that drive revenue or anchor key accounts. The steepening safety-stock curve makes the waste concrete, because the money spent dragging a trivial item from 97 to 99.5 percent could lift several important items well clear of their service floors.
The disciplined approach ties the target to the item’s importance, which is exactly what an ABC classification captures. The A items, few in number but large in value or strategic weight, earn high service targets and the buffer that comes with them; the C items, many but individually minor, run on lower targets and lean stock.
Within that, express the customer-facing goal as a fill rate, since that is what buyers feel, and let this calculator translate each tier’s fill-rate goal into the cycle service level and safety stock it requires.
Sizing service item by item, guided by segmentation rather than a single blanket number, is where a service-level policy stops being a slogan and starts freeing real capital.
When lead time is variable too
The formulas on this page assume the variability you enter already captures demand over the lead time. When the lead time itself varies, that variability must be folded into the standard deviation before it reaches this tool, because a wobbling delivery date exposes you to more uncertainty than demand swings alone. The combined standard deviation of demand over a variable lead time blends two sources: the demand variance accumulated across the average lead time, and the demand-rate squared times the lead-time variance. The safety stock calculator computes that combined figure directly from separate demand and lead-time inputs.
The practical workflow, then, is to size the demand-over-lead-time standard deviation where both sources are handled, and bring that single sigma here to relate it to service level and fill rate. Doing it in that order avoids a common trap: entering only the day-to-day demand standard deviation and forgetting the lead-time contribution, which understates the sigma and quietly inflates the fill rate this tool reports. When a supplier’s delivery time is erratic, its variance often dominates, so the sigma you should feed in can be much larger than demand alone would suggest, and the service level that looked cheap becomes markedly more expensive once the lead-time uncertainty is included.
From a target to a working policy
A service level or fill rate is only useful once it becomes the parameters that actually run replenishment, and the path from target to policy is short but must be followed in order. Start from the customer commitment, ideally a fill rate, and convert it here to the cycle service level and the Z-score behind it. Feed that Z into the safety-stock calculation with your demand-over-lead-time variability to get the buffer, add lead-time demand to reach the reorder point, and load that trigger into your inventory system. The service target has now propagated all the way to an actionable order point.
Then close the loop with measurement. Track the fill rate you actually achieve against the target, because the model’s assumptions, normal demand, a stable order quantity, a correctly estimated sigma, are approximations that reality tests.
If realized fill rate consistently beats the target, your sigma may be overstated or the order quantity larger than modeled, and you can safely trim buffer; if it falls short, the variability is higher than assumed and the buffer or target needs raising.
Re-running this calculator with updated figures each review cycle keeps the service commitment honest and the inventory sized to current conditions rather than to a stale estimate, which is what turns a one-time calculation into an ongoing control.
Common mistakes when working with service levels
A handful of errors cause most service-level and fill-rate figures to mislead. Watch for these before acting on a number.
- Confusing the two metrics. A 98 percent cycle service level and a 98 percent fill rate are different, and costly to mix up. Always state which one a target is.
- Ignoring the order quantity in fill rate. Fill rate depends on Q. Quoting a fill rate without the order quantity behind it is meaningless, since a bigger Q raises it for free.
- Using a lookup table instead of the exact Z. Rounded service-factor tables introduce error, especially in the high tail. This tool computes the exact Z for any service level.
- Chasing 100 percent. A 100 percent service level needs infinite safety stock. Target a high but finite level whose marginal cost is justified.
- Setting one target for all items. A blanket service level over-buffers cheap items and under-serves critical ones. Segment the target by the cost of a stockout.
- Measuring variability wrong. The sigma here is the standard deviation of demand over the lead time, not per day. Scale a daily figure by the square root of the lead time first.
- Treating fill rate as fixed. Fill rate moves with both the service level and the order quantity, so it changes when either does. Recompute it when the order policy changes.
Where these metrics fit in inventory policy
Service level and fill rate are the targets that drive the rest of the inventory toolkit. The service level sets the Z-score, which sizes the safety stock, which feeds the reorder point; and the order quantity that shapes fill rate is what the economic order quantity determines. In other words, this tool sits at the policy layer: it translates a service commitment into the parameters the other calculators consume. Choose a service level or fill rate here, and the safety stock and reorder point follow from it.
That makes the workflow a chain. Decide the customer promise, ideally as a fill rate, and convert it to a cycle service level with this calculator.
Feed that service level into the safety stock calculator to size the buffer against your demand and lead-time variability, then into the reorder point calculator to set the trigger.
Use the EOQ calculator for the order quantity that appears in the fill-rate formula, and the inventory turnover calculator to check that the resulting stock is not excessive. This page is where the service commitment enters that chain and becomes a number the rest of the tools can act on.
Reading this calculator’s results panel
The panel is built to show the conversion at a glance. The large figure is the metric you did not enter, so in service-level mode it is the fill rate that your chosen cycle service level actually delivers, and in fill-rate mode it is the cycle service level your fill-rate target requires. Directly below, both metrics are listed together so you always see the pair, alongside the Z-score that links them to inventory.
The safety-stock line shows what the service level costs in buffer units, computed from your demand variability, and the expected-units-short line shows the raw shortage per cycle that underlies the fill rate. Read together, these let you judge a service decision from three angles at once: the reliability it targets, the inventory it costs, and the shortage it still leaves.
The chart reinforces the cost side, plotting safety stock against the full range of cycle service levels so the steepening curve is visible and you can see how much more buffer each extra point of service would take.
A result where the fill rate is already very high at a moderate cycle service level is the tool telling you that pushing the service level higher would add cost for almost no gain.
Cycle service level, fill rate, and the order cycle
To use these metrics well it helps to picture the order cycle they describe. Between replenishments, stock draws down as demand arrives, and the danger window is the lead time just before the next delivery, when inventory is lowest. Cycle service level is the probability that demand during that window stays below the stock on hand, so no stockout occurs; it depends only on how far the reorder level sits above expected lead-time demand, which is the Z-score. It says nothing about what happens if a stockout does occur.
Fill rate fills that gap by asking how bad the stockouts are when they happen. Averaged over many cycles, most pass with no shortage, a few end with a small shortage, and rarely one ends with a large shortage; the expected units short per cycle averages those outcomes, and dividing by the order quantity turns it into the fraction of demand missed. This is why the two metrics answer complementary questions: cycle service level is about how often you stock out, fill rate about how much you fail to deliver when you do. A complete picture needs both, which is why this calculator always reports them side by side rather than forcing a choice between them.
The normal assumption and when it strains
Both metrics here rest on modeling demand over the lead time as a normal, bell-shaped distribution, which is what lets a service level map to a Z-score and a loss function. For many items this is a reasonable approximation, especially fast movers whose demand is the sum of many small independent orders, which tends toward normal by the central limit theorem. When the assumption holds, the figures this calculator produces are accurate enough to drive real policy, and the convenience of closed-form Z-scores and a tabulated loss function is well worth it.
The assumption strains in two common cases. Slow-moving items with sporadic, lumpy demand, long stretches of zero punctuated by occasional orders, are poorly described by a symmetric bell curve, and their real demand is better modeled by a Poisson or negative-binomial distribution; for these, a normal-based service level can misestimate the buffer, usually understating it.
Highly seasonal or promotion-driven items also break the assumption within a period, though they can be handled by segmenting the year into stable stretches. The practical guidance is to trust the normal model for steady, higher-volume items, treat its output as an approximation for lumpy or intermittent ones, and lean on the fill-rate view there, since fill rate degrades more gracefully than cycle service level when the distribution is skewed.
Knowing where the model is solid and where it is a rough guide is part of using it well, and it keeps the precise-looking percentages this tool returns from being trusted beyond what the underlying assumption supports.
Units and quick reference
Enter the demand standard deviation and the order quantity in the same units; the service level and fill rate are percentages, the Z-score is unitless, and safety stock and expected shortage come back in units. The reference below shows how cycle service level, its Z-score, and the resulting fill rate relate for a demand standard deviation of 40 and an order quantity of 500. Notice how the fill rate is already very high at a 90 percent cycle service level and barely rises after 95 percent, while the safety stock keeps climbing, the core lesson of the two metrics.
| Cycle service level | Z-score | Safety stock | Units short / cycle | Fill rate |
|---|---|---|---|---|
| 90% | 1.28 | 51 | 1.9 | 99.63% |
| 95% | 1.65 | 66 | 0.8 | 99.83% |
| 98% | 2.05 | 82 | 0.3 | 99.94% |
| 99% | 2.33 | 93 | 0.2 | 99.97% |
| 99.5% | 2.58 | 103 | 0.1 | 99.98% |
Service level and fill rate frequently asked questions
What is service level in inventory?
Service level is a target for how reliably you meet demand from stock. The most common form, cycle service level, is the probability that a replenishment cycle passes without a stockout. It is expressed as a percentage, such as 95 percent, and it maps directly to a Z-score that scales the safety stock. A higher service level means more buffer and fewer stockouts, at a higher inventory cost.
What is the difference between service level and fill rate?
Cycle service level counts events: the fraction of cycles with no stockout. Fill rate counts units: the fraction of demand shipped from stock. They differ because a stockout cycle usually loses only a few units, not the whole cycle. So a 95 percent cycle service level often delivers a 99 percent or higher fill rate. Fill rate is usually the better measure of customer experience because it reflects the magnitude of shortages, not just their frequency.
How is fill rate calculated?
Fill rate equals one minus the expected shortage per cycle divided by the order quantity. The expected shortage is the standard deviation of demand over the lead time times the standard normal loss function G(Z), where Z comes from the service level. So fill rate = 1 – (sigma / Q) x G(Z). A larger order quantity Q raises fill rate for the same service level, because the same shortage is spread over more units.
What is the Z-score for a 95 percent service level?
A 95 percent cycle service level corresponds to a Z-score of about 1.65. Other common values are 1.28 for 90 percent, 1.88 for 97 percent, 2.05 for 98 percent, 2.33 for 99 percent, and 2.58 for 99.5 percent. The Z-score is the number of standard deviations of demand you hold as buffer, and this calculator computes it exactly for any service level using the inverse normal distribution.
Why can fill rate be higher than service level?
Because a stockout does not empty the whole cycle. When stock runs out late in a cycle, only the last few units of demand go unmet, so the fraction of units filled stays high even though that cycle counts as a stockout for cycle service level. When demand and lead time are stable and the order quantity is large relative to the variability, the gap is wide: a 95 percent cycle service level can yield a 99.5 percent fill rate.
What service level should I target?
It depends on the cost of a stockout versus the cost of carrying inventory. Many consumer-goods operations aim for a 95 to 98 percent cycle service level, or often a fill rate target of 98 to 99.5 percent. Critical or high-margin items go higher, low-value items lower. Because safety stock rises steeply near 100 percent, the last points are the most expensive, so set the target to the real cost of a shortage rather than a round number.
How does service level relate to safety stock?
Safety stock equals the Z-score, which comes from the service level, times the standard deviation of demand over the lead time. So the service level is the policy choice, and safety stock is what it costs in inventory. Raising the service level raises the Z-score and therefore the safety stock, non-linearly: moving from 95 to 98 percent adds roughly a quarter to the buffer, and 98 to 99.5 percent adds another quarter.
What is the standard normal loss function?
The standard normal loss function, written G(Z), gives the expected shortage, in standard deviations, when demand exceeds a reorder level set Z standard deviations above the mean. It equals the normal density at Z minus Z times the upper tail probability. It is the piece that converts a service level into a true unit fill rate, and few calculators implement it, which is why fill-rate figures are often approximated poorly.
Can I set a fill rate target and find the service level?
Yes. This calculator works in both directions. Enter a target cycle service level to get the resulting fill rate, or switch modes and enter a target fill rate to find the cycle service level and safety stock required to achieve it. The reverse direction solves the loss-function equation numerically, which is tedious by hand, so the tool does it for you.
Does a higher order quantity improve fill rate?
Yes, at a given service level. Fill rate is one minus the expected shortage divided by the order quantity, so a larger order quantity spreads the same expected shortage over more units and lifts the fill rate. This is why bulk-ordered, slow-moving items often show very high fill rates even at modest cycle service levels, while small, frequent orders need a higher service level to reach the same fill rate.
What is expected units short per cycle?
It is the average number of demand units that go unmet during a replenishment cycle, equal to the standard deviation of demand over the lead time times the loss function G(Z). It is the raw shortage behind the fill rate, and it is useful for costing stockouts directly: multiply it by the number of cycles a year and by the margin lost per unit to estimate the annual cost of the chosen service level.
Are 100 percent service levels possible?
Not in practice under uncertainty. Reaching 100 percent cycle service level would require infinite safety stock, because demand has no strict upper bound in the normal model. Real targets top out around 99.5 to 99.9 percent, and the safety stock needed climbs sharply as you approach that ceiling. The practical goal is a high but finite service level whose marginal buffer cost matches the value of avoiding the rare remaining stockout.
Do these calculators store the numbers I enter?
No. This calculator runs entirely in your browser. The values you enter are never sent to our servers, stored, or shared. You can download a PDF or CSV of your result locally, and nothing leaves your device. See our Privacy Policy for details.
Is the service level calculator free?
Yes. The service level and fill rate calculator is completely free, with no account, sign-up, or paywall, and no limit on how many times you can run it. It converts between service level, Z-score, safety stock, and fill rate in both directions, and includes a chart and PDF and CSV export at no cost.
Related supply chain calculators
Pair service level with the rest of the toolkit. Return to the Supply Chain hub for the full set.
Sources, disclaimer, and editorial transparency
The service-level-to-Z-score relationship, the standard normal loss function, and the fill-rate formula used here follow recognized operations-management sources, including Peter King’s treatment of safety stock and service, the APICS/ASCM body of knowledge, and standard inventory-theory texts. This calculator and guide are built and reviewed by the OpsCalculators team; see our Editorial Policy for how each tool is researched, built, and tested.
Results are accurate estimates for planning and education, not certified engineering advice. Validate outputs against your own measured demand variability and service data before changing inventory policy or committing capital. See our full Disclaimer. OpsCalculators.com is operated by MAFHH INTERNATIONAL LTD. Your inputs are processed in your browser and are never stored; see our Privacy Policy.