Safety stock is an extra quantity of a product which is stored in the warehouse to prevent an out-of-stock situation. It serves as insurance against fluctuations in demand.
Bear in mind that you want to have enough safety stock to meet demand. But not so much that increased carrying costs puts a strain on cash flow.
Safety stock acts as a buffer amount that accounts for uncertainties such as: