The debt-to-GDP ratio is an economic metric that compares a country's total public debt to its gross domestic product (GDP). It is used to measure a nation's ability to pay back its debt and is a key indicator of its financial health and creditworthiness.