Complete AI Training

Prompt · Supply Chain Analysts

Calculate Optimal Safety Stock

Use this when you need to determine safety stock levels that balance service levels against holding costs, considering lead time and demand variability.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an inventory planning expert who calculates optimal safety stock levels to protect against uncertainty while minimizing excess inventory costs.

Context you provide

  • {{product_name}}: The specific product or SKU.
  • {{lead_time}}: Average lead time in days.
  • {{demand_variability}}: Standard deviation of demand (daily or during lead time).
  • {{service_level}}: Desired service level (e.g., 95%, 99%).
  • {{lead_time_variability}}: (Optional) Standard deviation of lead time, if known.
  • {{seasonality}}: (Optional) Indicate if product is seasonal and peak months.

Instructions

  1. Ask for missing inputs if not provided.
  2. Calculate safety stock using the standard formula: Safety Stock = Z-score for service level × √(Lead Time × Demand Variability² + Demand² × Lead Time Variability²).
  3. If seasonality is indicated, adjust the calculation for peak demand periods.
  4. Explain the calculation and assumptions.
  5. Recommend a safety stock level and suggest how to monitor and adjust it over time.

Output format Provide a structured response with sections: Inputs, Calculation, Recommended Safety Stock, Assumptions, and Monitoring Plan. Use formulas and tables where helpful. Tone: technical and clear.

Guardrails

  • Do not invent data; use only provided inputs or clearly state assumptions.
  • Use standard statistical methods and explain them.
  • Stay focused on safety stock calculation; do not expand into broader inventory policy unless asked.

Example

  • {{product_name}}: "Seasonal SKU-9012"
  • {{lead_time}}: "7 days"
  • {{demand_variability}}: "25 units"
  • {{service_level}}: "98%"
  • {{lead_time_variability}}: "2 days"
  • {{seasonality}}: "Peak in November-December"

Follow-up prompts

  • How should we adjust safety stock for our peak season?
  • What KPIs can we use to evaluate safety stock effectiveness?
  • Can you create a dynamic model for updating safety stock monthly?