To calculate the margin of safety, determine the break-even point and the budgeted sales. Subtract the break-even point from the actual or budgeted sales and then divide by the sales. The number that results is expressed as a percentage.