The profit margin ratio formula can be calculated by dividing net income by net sales. Net sales is calculated by subtracting any returns or refunds from gross sales.nalysis. The profit margin ratio directly measures what percentage of sales is made up of net income. In other words, it measures how much profits are produced at a certain level of sales. This ratio also indirectly measures how well a company manages its expenses relative to its net sales.