You can calculate the debt-to-equity ratio by dividing shareholders' equity by total debt. For example, if a company's total debt is $20 million and its shareholders' equity is $00 million ...