The margin of safety formula measures the cushion a business has between its current sales volume and its breakeven point. This financial metric tells you how much revenue can drop before your business starts losing money.
Protecting your business from a sudden decline in revenue poses the ultimate survival test. Data from the Federal Reserve’s Small Business Credit Survey highlights just how thin the line between growth and failure can be: only 47% of small employer firms operate at a profit, meaning 53% of small businesses are either operating at a loss or breaking even. This highlights the danger of operating your business without tracking your breakeven point. Knowing your safety margin ensures you can make smarter decisions about expansion or, if needed, retrenchment.
Learn about the margin of safety formula, how it compares to other profit metrics, and how to use Shopify finance reports to find your data inputs. You will also get a step-by-step calculation example and tips for improving your margin while reducing financial risk.
What is the margin of safety formula?
The margin of safety is a financial metric that represents the difference between actual or budgeted sales and your breakeven point, or when sales cover all your business’s costs. It’s a strategic buffer, showing how much sales can decline before a business begins to lose money. The safety margin tells you how much breathing room your business has during slow seasons or sudden economic shifts.
Although the safety margin concept originated in investing (to measure the difference between a stock’s intrinsic value and its market price), in business, this metric gives insight into operational risk.
You can calculate the margin of safety in three ways: in total sales dollars, in units sold, or as a safety percentage.
To find the dollar amount, use this formula:
Margin of safety = Actual or budgeted sales - Break-even sales
To find the volume cushion, use this formula:
Margin of safety = Actual or budgeted units sold - Break-even units
To express this metric as a safety percentage for easier comparison against other periods or business types, apply this formula:
Margin of safety = (Actual or budgeted sales - Break-even sales / Actual or budgeted sales) x 100
Many businesses confuse these terms, but they measure different aspects of your business’s performance:
-
Margin of safety. Measures the distance between your current sales volume and the point where your business starts losing money.
-
Gross margin. Tracks the percentage of total revenue left after subtracting the cost of goods sold (COGS), such as raw materials and manufacturing labor.
-
Net profit margin. Reveals what percentage of total revenue remains as net income after subtracting all business costs, including fixed overhead, taxes, and interest.
-
Markup. The percentage added to a product’s cost to set its final sales price.
Your margin will usually fall within one of the three following categories:
-
High safety margin. Your business makes substantially more money than it needs to cover its total costs. This position lets you reinvest in growth, test new products, or withstand aggressive competitor pricing.
-
Low margin of safety. Your current sales hover just above your breakeven point. A minor decline in sales volume or a slight increase in raw materials prices might push your company into unprofitable territory, demanding immediate action to adjust pricing or reduce fixed costs.
-
Negative margin. Your actual sales are lower than your breakeven sales, meaning your business loses money on every sale. To survive, you must rapidly cut expenses or increase revenue, or both.
How to use the margin of safety formula
- Determine your actual or budgeted sales
- Categorize your business costs
- Calculate the contribution margin
- Calculate the breakeven point
- Apply the margin of safety formula
To find your safety margin, take your business through the following calculations, using real-time data from your Shopify admin dashboard at each step.
1. Determine your actual or budgeted sales
Determine your total sales revenue and total units sold during a specific period, such as the past quarter or year. To find this data, open your Shopify finance reports under the Analytics tab. Use these reporting summaries to extract current sales, net sales, and total revenue data for your chosen time frame.
2. Categorize your business costs
Separate all operational expenses into fixed and variable costs.
Fixed costs include expenses that remain little changed regardless of sales volume, such as warehouse rent and software subscriptions.
Variable costs fluctuate with production volume. To find your product-specific variable costs, review your Shopify product reports. These reports track data like individual product costs and fulfillment fees, which you can then feed into your overall variable cost calculations.
3. Calculate the contribution margin
Subtract your variable costs per unit from the selling price per unit to determine the contribution margin, or the amount of revenue left over from a single sale to help cover your fixed overhead and generate profit. To determine this, use the following formula:
Contribution margin per unit = Sales price per unit - Variable cost per unit
If you want to test how changing your base numbers affects this step, use the free Shopify Profit Margin Calculator. You can plug in your product costs and target markups to see how shifting a sales price alters your unit contribution margin.
4. Calculate the breakeven point
Divide your total fixed costs by your unit contribution margin to find the break-even units, or the volume of products you must sell in a given period to cover your costs and make a net profit of zero. The formula for this is:
Break-even units = Total fixed costs / Contribution margin per unit
Multiply those break-even units by your sales price to get your total break-even sales, or how much you need to sell in dollars to break even.
5. Apply the margin of safety formula
Subtract your break-even figures from your actual figures:
Margin of safety = Actual sales - Break-even sales
Margin of safety calculation example
An apparel business sells custom T-shirts. By checking its Shopify finance reports and Shopify profit reports, the owner finds the following data points for the quarter:
-
Actual sales: 5,000 shirts
-
Selling price: $25 per shirt
-
Total revenue: $125,000
-
Variable costs: $10 per shirt (raw materials, credit card fees, and fulfillment)
-
Total fixed costs: $30,000 (rent and platform fees)
First, find the contribution margin per unit:
$25 - $10 = $15 per shirt
Next, calculate the breakeven point in units:
$30,000 / $15 = 2,000 units
Calculate the break-even sales in dollars:
2,000 units x $25 = $50,000
Now, apply the margin of safety formula for dollars to find the exact revenue cushion:
$125,000 - $50,000 = $75,000
Apply the formula for units to find the unit volume you need to sell to break even:
5,000 units - 2,000 units = 3,000 units
Finally, calculate the safety percentage to understand the total risk:
($75,000 / $125,000) x 100 = 60%
This high safety margin tells the owner they can lose as much as 60% of their sales volume before the business starts losing money.
Break-even analysis, pricing, and profitability
Entrepreneurs determine their margin of safety as part of a breakeven analysis to guide business choices. Knowing how far sales can drop before you lose money helps you make informed decisions around inventory purchasing, marketing spend, and cash reserves.
This financial analysis drives your product pricing model and long-term profitability. If your safety calculation reveals a narrow buffer, use the Shopify Profit Margin Calculator to experiment with adding a markup percentage to your unit costs. Ensuring your final unit sales price stays comfortably above your combined fixed and variable costs protects your business from changing market conditions or poor decisions, such as underpricing items during an expensive customer acquisition campaign.
How to improve your margin of safety
- Optimize marketing and conversion rates to increase sales volume
- Raise your contribution margin by reducing variable costs
- Lower your overhead costs
- Focus on higher-margin products
If your safety calculation reveals excessive financial risk, expand your buffer by doing the following:
Optimize marketing and conversion rates to increase sales volume
To lift your safety margin without changing prices, focus on increasing total units sold. Optimize your online store design, streamline your checkout process, and run targeted campaigns to convert more existing traffic. Increasing your total sales volume pushes revenue further above your breakeven point.
Raise your contribution margin by reducing variable costs
A higher contribution margin lowers your overall breakeven point. Review your variable expenses and find ways to cut manufacturing and fulfillment costs. Spend time renegotiating contracts with suppliers for lower raw materials prices, buying packaging supplies in bulk, or shifting to a more affordable shipping carrier to save money on every order.
Lower your overhead costs
Look closely at your fixed costs, or overhead, to see what you can trim. Review your monthly software subscriptions, negotiate lower rates on warehouse or office space leases, and automate manual administrative tasks to reduce overhead. Lowering your total fixed costs means your business requires lower total sales to hit its breakeven point.
Focus on higher-margin products
Analyze your Shopify profit reports to identify which products yield the most profit per sale. Adjust your store merchandising, website banners, and email marketing features to highlight these higher-margin products. Shifting your overall sales mix toward items with a stronger contribution margin builds a larger safety buffer for your company.
Margin of safety formula FAQ
What is the margin of safety in simple terms?
The margin of safety is the financial cushion your business has between its actual sales and the point where it breaks even. It tells you how much your sales can fall before your business stops making a profit and begins to lose money.
What is a good margin of safety percentage?
A good margin of safety percentage depends on your business type; companies with low fixed costs can safely operate with a lower percentage, while businesses with heavy overhead need a higher margin to mitigate risk.
How do you find the margin of safety?
Find your margin of safety by calculating your break-even sales point, which is fixed costs divided by your contribution margin ratio, and subtracting that number from your actual or budgeted total sales. You can calculate this metric in total revenue dollars, specific units sold, or as a percentage of your total sales.




