Why is mathematics important in retail planograms? A shelf may look like a row of packages, but fitting products into it is a constrained allocation problem. Width, height, depth, facings, capacity, demand and replenishment interact. Arithmetic and geometry establish what physically fits; statistics estimate how quickly it moves; optimisation compares layouts without pretending that one score captures every customer or business goal.
GS1's retail strategy emphasises shared identification and data standards across retail, while peer-reviewed research on real-time planogram compliance shows that an expected shelf layout can be compared with observed shelf images. This article uses fictional products and stores. Actual merchandising, accessibility, safety, commercial and supplier decisions belong to authorised retailers and current specifications.
Choose a Reading Route
- Measure the shelf for usable dimensions and orientations.
- Count facings and capacity with integer constraints.
- Connect sales to replenishment using rates and safety stock.
- Audit compliance with transparent scores and uncertainty.
- Practise with fictional data using paper packages and spreadsheets.
A Planogram Is a Geometric Packing Model
A planogram represents where products should appear on a fixture. At minimum, each product has width, height and depth; each shelf has usable width, height clearance and depth. A package fits only when every relevant dimension satisfies the chosen orientation and any spacing rules.
Suppose a shelf is 120 cm wide, 35 cm deep and has 28 cm of vertical clearance. A box measuring 8 cm wide, 20 cm high and 15 cm deep fits upright geometrically. A bottle 31 cm high does not fit that clearance even if its width is small.
Nominal and usable dimensions differ
The metal shelf may be 120 cm wide, but label rails, brackets, dividers and safety gaps can reduce usable width. If 2 cm must remain clear at each end, the model has 116 cm, not 120 cm.
Record whether dimensions are external package size, maximum bulge, tray size or shelf opening. Mixing definitions can turn an apparently valid layout into a physical failure.
Orientation is a decision variable
A rectangular package can be front-faced on different sides only when labelling, stability and retailer rules allow it. Rotating an 8×5 cm footprint changes how many facings fit across and how many units fit in depth.
Geometry generates candidates; commercial and safety rules decide which orientations are admissible. Do not rotate products in a real store merely because a spreadsheet says more will fit.
Facings Turn Continuous Width into Discrete Capacity
A facing is one visible product position across the shelf front in the teaching model. If a package needs width w and there are f facings, the horizontal allocation is fw plus any gaps or dividers.
With 116 cm usable width and an 8.2 cm package, the theoretical maximum number of adjacent facings is floor(116/8.2)=14. The floor function is essential because 14.146 packages is not physically meaningful.
Leftover width is not automatically waste
Fourteen facings use 114.8 cm, leaving 1.2 cm. That remainder may be needed for tolerance, separators or handling. A model that forces an extra package by rounding up violates the constraint.
For several products, the shelf-width condition is the sum of fiwi plus gaps no greater than usable width. Every fi is a non-negative integer, often with a minimum or maximum.
Width errors accumulate
If a measured package width is understated by 1 mm, twelve facings create a 12 mm discrepancy. Record packaging variation and use a suitable allowance. A single sample may not represent flexible bags or slightly changing cartons.
Depth and Stacking Determine Shelf Capacity
Front facings alone do not tell how many units the shelf holds. If the shelf is 35 cm deep and a product is 15 cm deep, a simple model fits floor(35/15)=2 units behind each facing. With 6 facings, single-layer capacity is 12 units.
If products can safely stack two high within the clearance and retailer rules, the capacity might be 24. That multiplication is valid only if stacking is permitted, stable and accessible.
Capacity formula
A basic rectangular model is capacity = facings × units in depth × units in height. Each factor is an integer produced by a floor calculation or a rule.
Real shelves can have sloped trays, pushers, pegs or nested packages. The rectangular formula is a first model, not a universal store truth.
Product access can reduce geometric capacity
A final unit may fit numerically but be hard to remove or replenish. Hand clearance and visibility are constraints. Accessibility is not captured by volume alone.
Students should distinguish “fits inside the bounding box” from “works as a usable display.”
Replenishment Links Space to Time
Let demand rate be d units per hour and on-shelf capacity be C units. A simple depletion time is C/d hours when demand is constant and the shelf begins full.
If C=24 and average demand is 6 units per hour, the mean depletion time is 4 hours. That does not mean the shelf will be empty exactly four hours later; arrivals and purchases vary.
Replenishment interval
If staff inspect every three hours, a capacity below expected three-hour demand creates a high risk of an empty shelf before the next visit. A simple deterministic condition is C≥dT, where T is the interval.
Add a safety allowance for variability: C≥expected demand during T plus safety stock. The safety stock method must match the data and service objective rather than being invented as a decorative percentage.
Facings and replenishment are coupled
More facings can increase capacity, but the added width displaces another product. Shelf allocation and replenishment frequency are therefore interdependent decisions.
This is a central optimisation insight: treating layout and restocking as separate problems can miss better combined solutions.
Demand Is a Distribution, Not One Average
Suppose hourly sales over ten comparable periods are 2, 4, 3, 8, 5, 4, 7, 3, 5 and 9 units. The mean is 5 units, but the range is 2 to 9. Planning only for five can create shortages in busy periods.
Calculate median, quartiles and time-of-day patterns. A promotion, holiday or weather event can change the distribution. Recent observations may not represent the next campaign.
Poisson is a model, not a label
For count data, a Poisson model may be a first approximation when events occur independently at a roughly constant rate. Retail purchases often violate those assumptions through bursts, group shopping, promotions and stockouts.
Check whether variance resembles the mean and whether rate is stable. If not, use a richer model or empirical percentiles rather than forcing the distribution.
Lost sales hide demand
When a shelf is empty, recorded sales fall to zero even though customers may still want the product. Sales data then understate unconstrained demand. A replenishment model trained only on observed sales can reinforce the shortage.
Record stockout intervals and interpret low sales with availability data.
Reorder Points Combine Lead Time and Uncertainty
A simple reorder point is expected demand during lead time plus safety stock. If mean daily demand is 20 units, lead time is 3 days and safety stock is 15, the teaching reorder point is 75 units.
That number may refer to on-hand plus on-order inventory depending on the system. Define the inventory position before applying the formula.
Lead time can vary
If delivery takes two to five days, using exactly three days hides risk. Model lead time as a distribution or test scenarios. Demand and lead time may also be correlated during peak seasons.
Scenario analysis can compare ordinary, promotion and disruption conditions without claiming a single forecast is certain.
Shelf and backroom are different locations
The store may own inventory that is not on the shelf. On-shelf availability depends on moving units from backroom to display. A planogram capacity calculation does not automatically solve the last few metres of replenishment.
Keep shelf capacity, backroom stock and total inventory as separate variables.
Allocation Becomes an Integer Optimisation Problem
Let fi be the number of facings for product i. A basic model might maximise a score such as expected contribution, availability or service subject to shelf width, minimum facings and capacity constraints.
The decision variables are integers. A solution with 2.6 facings is not implementable. Integer programming searches combinations while respecting discrete choices.
A simple two-product example
Product A is 8 cm wide and Product B is 12 cm wide. A 60 cm shelf requires at least two facings of each. The width condition is 8a+12b≤60, with a≥2, b≥2 and both integers.
The minimum uses 40 cm. Candidate additions can be enumerated: two more A facings use 16 cm; one more B uses 12 cm; one A plus one B uses 20 cm exactly. An objective is needed to choose among feasible options.
The objective encodes values
Maximising sales, margin, availability, assortment, accessibility or fairness among suppliers can produce different layouts. There is no value-neutral “optimal planogram.”
State the objective and constraints. Do not present a commercial choice as if it emerged from geometry alone.
Multi-Objective Decisions Need Trade-Offs
A retailer may want strong availability, variety, visual clarity, safe weight placement and low replenishment workload. These aims can conflict.
Create a table of candidate layouts and score each criterion with defined units. A weighted sum can combine them, but the weights are judgements. Test how rankings change when weights vary.
Pareto thinking
A layout is Pareto-dominated if another layout is at least as good on every chosen criterion and better on one. Removing dominated layouts can simplify discussion without choosing the final weights.
Several non-dominated options may remain. That is an honest result: mathematics narrows choices but may not select one universal winner.
Compliance Needs a Defined Denominator
Planogram compliance compares an observed shelf with an expected layout. A simple position score might count correctly placed facings divided by expected facings. If 42 of 50 expected positions are correct, the score is 84%.
But what counts as correct? Exact slot, correct shelf, correct sequence, correct number of facings, correct orientation and label visibility are different tests. A single percentage without definition is ambiguous.
Weighted compliance
Some positions may be operationally more important. A weighted score assigns weights wi and computes the sum of weights for correct positions divided by total expected weight.
Weights should be declared before reviewing the result. Choosing them afterward can manipulate the score.
Computer vision adds uncertainty
An image system may fail to detect occluded, reflective or visually similar packages. Compare its classifications with human-reviewed ground truth on a representative sample. Report precision, recall and confusion, not just overall accuracy.
The peer-reviewed compliance research linked above demonstrates that shelf images and expected layouts can be compared algorithmically, but deployment conditions and error rates still matter.
Coordinate Systems Make Layouts Reproducible
Define the origin at the lower-left of a fixture, with x across width, y upward and z into depth. A product slot can be represented by a bounding box and a shelf identifier.
Coordinates reduce ambiguity in instructions such as “near the middle.” They also allow collision checks: two boxes should not overlap unless stacking is intended.
Tolerances prevent brittle layouts
If every product is placed with zero gap in the model, tiny measurement errors can make the real plan impossible. Include clearance and packaging tolerances.
A robust plan remains feasible across plausible dimension ranges. Optimising to the final millimetre may look efficient while being operationally fragile.
Experiment Design for Shelf Changes
Suppose a store changes facings and later sees higher sales. The change does not prove causation. Price, promotion, season, competitor activity and stock availability may also have changed.
A stronger test uses comparable stores or time periods, pre-specified outcomes and enough duration to observe variation. Randomisation is valuable when practical and ethical.
Measure service as well as sales
Track stockout minutes, replenishment trips, customer substitutions and waste where relevant. A layout that raises one metric can worsen another.
Preserve null or negative results. Removing inconvenient periods after seeing them biases the conclusion.
Common Misconceptions
More facings always cause more sales
No. Association can reflect demand, placement or promotion, and the effect may saturate.
If packages fit by total width, the planogram is feasible
Not necessarily. Height, depth, gaps, orientation, access and fixture rules also constrain it.
Average sales determine a safe replenishment interval
No. Variation, stockouts and lead-time uncertainty matter.
A 90% compliance score has one universal meaning
No. The denominator and correctness criteria must be defined.
Optimisation produces an objective answer
It produces the best answer for stated objectives, constraints and data. Change them and the solution can change.
A Student Learning Plan
Make a paper shelf 60 cm wide on a grid. Create five fictional products with widths, heights and depths. Choose minimum facings and list which orientations are allowed.
First enumerate feasible layouts by hand. Then write the width inequality and use a spreadsheet to reject combinations that exceed the shelf. Calculate unused width and front-facing capacity.
Add synthetic hourly sales and a three-hour replenishment interval. Estimate depletion risk with scenarios: quiet, typical and busy. Keep sales, shelf capacity and backroom inventory in separate columns.
Create an expected layout and an observed layout with three deliberate errors. Calculate exact-position, correct-shelf and weighted compliance scores. Explain why the three percentages differ.
Parents and teachers can ask: What is the usable dimension? Why is the floor function needed? Which demand data are censored by stockouts? What objective is being optimised? What does the compliance denominator count? These questions build practical numeracy without turning the activity into commercial advice.
Did You Know?
A shelf layout can be represented as a packing problem, an inventory problem and a computer-vision matching problem at the same time. Each mathematical lens answers a different question.
Frequently Asked Questions
Why is mathematics important in planograms?
It tests physical fit, converts facings into capacity, links demand with replenishment and makes layout trade-offs auditable.
What mathematics matters most?
Geometry, floor functions, integer constraints, rates, probability, statistics, optimisation and coordinate systems all contribute.
Does more shelf space guarantee more demand?
No. Placement and availability can influence observed sales, but demand also depends on price, preference, promotion and many other factors.
Can a simple spreadsheet optimise a shelf?
It can enumerate small teaching examples. Real assortments and operational rules may require specialised systems and authorised data.
Is a planogram-compliance photo always reliable?
No. Occlusion, lighting, similar packaging and image quality can create classification errors that need validation.
Useful Next Reading
For product-identification geometry, read Why Mathematics? | Barcode Geometry, Module Width and Quiet Zones. For capacity and movement rates, continue with Why Mathematics? | Conveyor Belts, Throughput, Speed and Material Loading. The Mathematics Learning Hub connects these applications to numeracy, data and problem-solving.
A Practical Mathematics Studio
Use fictional, synthetic or openly released teaching data. Each investigation connects a calculation to a verification step and names the boundary beyond which authorised rules, measurements or professional judgement are required.
Investigation 1: Usable shelf
Subtract end gaps and hardware from a nominal shelf width. Record which dimension is measured rather than assumed. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 2: Single-SKU facings
Apply the floor function to package width and usable width. Keep leftover space visible. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 3: Mixed shelf
Enumerate integer facing combinations for two product widths. Reject decimals and every combination above capacity. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 4: Depth capacity
Count units in depth for three package sizes. Do not round up a partial package. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 5: Stacking scenario
Compare one and two safe layers in a fictional model. A retailer's real stacking rule controls practice. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 6: Tolerance stack
Increase every package width by one millimetre. Show how error accumulates across many facings. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 7: Demand rate
Calculate mean, median and range for hourly synthetic sales. Keep stockout intervals marked. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 8: Depletion time
Divide capacity by constant demand in a first model. Label the result as an expectation, not an exact empty time. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 9: Busy scenario
Recalculate under quiet, typical and peak rates. Do not hide the scenario assumptions. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 10: Replenishment interval
Compare expected demand with capacity over three hours. Add any safety allowance explicitly. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 11: Reorder point
Combine lead-time demand and declared safety stock. Define whether inventory position includes units on order. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 12: Variable lead time
Test delivery times from two to five days. Show the range of resulting reorder points. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 13: Objective comparison
Score layouts for availability, variety and workload. Weights are judgements and require sensitivity analysis. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 14: Pareto screen
Remove candidate layouts dominated on every chosen criterion. Do not force one winner when several remain non-dominated. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 15: Compliance variants
Calculate exact-slot, correct-shelf and correct-sequence scores. Give each score a defined denominator. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 16: Weighted compliance
Assign declared weights to expected positions. Choose weights before inspecting outcomes. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 17: Image errors
Build a small confusion matrix for fictional shelf detections. Report precision and recall with sample sizes. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
Investigation 18: Audit record
Archive dimensions, orientations, demand window, layout, score rules and limitations. Keep the exercise fictional and outside real commercial decisions. Begin with a prediction, write every unit and retain unrounded working until the final line. Test one boundary case, compare the answer with a hand estimate, and ask a peer to reproduce one row from the recorded assumptions. Preserve unexpected results instead of cleaning them away. Change one assumption at a time and graph the result where that makes the pattern clearer. Label facts from the source, calculations from the model and interpretations in separate sentences. Add a short caption that explains the strongest limitation. Finish by stating what evidence would be needed before the model could inform a real decision.
