To calculate your debt-to-income ratio, divide your total monthly debt payments by your gross monthly income and multiply by 100 to get a percentage.