You build a margin of safety by asking how wrong your forecast could be, then holding enough slack to survive that error. Most plans rest on a single best guess, so the first surprise lands with nothing to absorb it.
In investing, a margin of safety means buying below what you think something is worth; in accounting, it's how far sales can fall before you stop breaking even. Both are the idea this page applies to any decision: room between your plan and the point where it fails.
Start with the range around the forecast. Picture the bad day, and size it from how far off forecasts like this one have run before rather than from your feeling about this one. The gap between your best guess and that bad day is the size of the margin.
Then put the slack where a miss would hurt most and recovery would take longest. Stock for a part you can replace tomorrow needs little cover; a part that takes months to source needs months. Slack has a price, in cash tied up and capacity sitting idle, so size it to what a shortfall would actually cost you; insuring against the worst case you can imagine is usually too expensive.
The hardest step is defending the margin once it exists. Unused slack looks like waste in every quiet month, and someone will always want to spend it, sell it or trim it to hit a target. Agree in advance what the margin is for and who can release it, so it isn't spent on the first convenient shortfall.
When the shock comes, the margin's job is to buy time. Use that time to change the plan, because a buffer sized for a three-month problem won't carry you through a six-month one.
In early 2021, the company that made just-in-time manufacturing famous kept building cars while a global chip shortage forced its rivals to cut production. The reason went back to the March 2011 earthquake. Production outside Japan took six months to return to normal, and Toyota concluded that its chip lead times were far too long to ride out a shock like that.
Its business continuity plan asked suppliers to hold between two and six months of chips, with more for the parts that took longest to arrive. In February 2021, while Nissan and Honda were cutting output, chief financial officer Kenta Kon said Toyota had up to four months of stock, though "we do see risks of a chip shortage."
The margin bought time, and it had a size. The shortage outlasted it, and in August 2021 Toyota said it would cut September's global production by 40%, the last major carmaker to do so.