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. Net income equals total revenues minus total expenses and is usually the last number reported on the income statement.