To calculate the debt-to-GDP ratio, divide a country’s total government debt by its annual nominal gross domestic product and multiply by 100. The result is a percentage showing how large the debt is relative to a full year of economic output. For the United States in early 2026, gross federal debt of about $38.6 trillion against roughly $31.5 trillion in annualized GDP gives a ratio near 123%. Using the narrower measure of debt held by the public, the ratio comes in closer to 98%.
The Formula
The calculation is a single division:
(Total National Debt ÷ Gross Domestic Product) × 100 = Debt-to-GDP Ratio (%)
The numerator is the government’s total outstanding debt. The denominator is the country’s annual GDP, in the same currency and the same units. Multiplying by 100 turns the decimal into a percentage. A result of 100% means the government owes exactly one year’s worth of national output. Above 100%, it owes more than the economy produces in a year.
The formula is straightforward. The work is in picking the right two numbers.
Which Debt Figure to Use
The U.S. government publishes two different debt totals, and the one you pick moves the answer by roughly 25 percentage points.
- Gross federal debt covers everything the government owes, including Treasury securities held by outside investors plus debt the government owes to its own accounts, such as the Social Security and Medicare trust funds. In February 2026, gross federal debt was approximately $38.6 trillion.1U.S. Congress Joint Economic Committee. Debt Dashboard
- Debt held by the public is only the portion owed to outside investors, foreign governments, mutual funds, and anyone else who bought Treasury securities on the open market. It excludes roughly $7.6 trillion in intragovernmental holdings. In February 2026, debt held by the public was about $31 trillion.1U.S. Congress Joint Economic Committee. Debt Dashboard
Most economists and the Congressional Budget Office use debt held by the public as the more meaningful measure, because that’s the debt competing with private borrowers for capital and influencing interest rates.2Congressional Budget Office. The Budget and Economic Outlook: 2026 to 2036 International comparisons from the IMF, however, often use gross debt. Whichever you pick, be consistent, and know which one a published figure is using before you compare it to yours.
The U.S. Treasury publishes both figures monthly in the Monthly Statement of the Public Debt, which breaks down marketable and non-marketable securities and separates public holdings from government account holdings.3U.S. Treasury Fiscal Data. U.S. Treasury Monthly Statement of the Public Debt (MSPD) The face amount of federal obligations is capped by the statutory debt limit in 31 U.S.C. 3101, though Congress routinely raises or suspends that ceiling.4Office of the Law Revision Counsel. 31 USC 3101 – Public Debt Limit
Which GDP Figure to Use
Gross domestic product measures the market value of all finished goods and services produced within a country’s borders during a specific period. The Bureau of Economic Analysis calculates U.S. GDP using the expenditure approach, adding up consumer spending, business investment, government spending, and net exports.5U.S. Bureau of Economic Analysis. The Expenditures Approach to Measuring GDP
Use nominal GDP, not inflation-adjusted “real” GDP. The debt figure is in current dollars, so the GDP figure needs to be in current dollars too. Mixing the two produces a ratio that means nothing. As of the fourth quarter of 2025, annualized nominal U.S. GDP was approximately $31.5 trillion.6St. Louis Fed. Gross Domestic Product (GDP)
GDP data arrives with a lag. The BEA releases three estimates for each quarter: an advance estimate roughly four weeks after the quarter ends, a second estimate at about eight weeks, and a third estimate at around twelve weeks.7U.S. Bureau of Economic Analysis. Release Schedule If you’re calculating a ratio for the most recent quarter, expect the GDP figure to be revised later.
A Worked Example With 2026 U.S. Numbers
Running the calculation both ways with actual data from early 2026:
Using gross federal debt:
Gross debt: $38.6 trillion. GDP: $31.5 trillion.
$38.6 ÷ $31.5 = 1.225
1.225 × 100 = 122.5%
Using debt held by the public:
Public debt: $31.0 trillion. GDP: $31.5 trillion.
$31.0 ÷ $31.5 = 0.984
0.984 × 100 = 98.4%
The CBO’s baseline projection for 2026 puts debt held by the public at 101% of GDP, which lines up with this back-of-the-envelope calculation once you account for GDP growth over the year.2Congressional Budget Office. The Budget and Economic Outlook: 2026 to 2036 The gap between the two versions is why specifying your debt measure matters. A headline saying “U.S. debt exceeds 120% of GDP” and one saying “U.S. debt reaches 100% of GDP” can both be accurate. They’re using different numerators.
Where to Pull Official Data
For U.S. numbers:
- U.S. Treasury Fiscal Data. The Monthly Statement of the Public Debt provides the current breakdown of federal liabilities, updated on the fourth business day of each month.3U.S. Treasury Fiscal Data. U.S. Treasury Monthly Statement of the Public Debt (MSPD)
- FRED. The St. Louis Fed’s Federal Reserve Economic Data database aggregates GDP series, debt series, and hundreds of other economic indicators in downloadable formats.8St. Louis Fed. Federal Reserve Economic Data – FRED
- Bureau of Economic Analysis. The BEA publishes the official GDP estimates as part of the National Income and Product Accounts.7U.S. Bureau of Economic Analysis. Release Schedule
For international figures, the IMF’s World Economic Outlook database includes debt and GDP data for most countries, updated twice a year.9International Monetary Fund. IMF Data The World Bank maintains its own debt statistics with quarterly external debt breakdowns.10World Bank. Debt Statistics Both apply standardized reporting frameworks, which makes cross-country comparisons more reliable than pulling numbers from individual national sources.
Reading the Result
A ratio below 100% means the economy produces more in a year than the government owes. Above 100%, the debt exceeds one year of total output. That doesn’t automatically signal insolvency. Plenty of nations carry ratios above 100% for extended periods, and Japan has operated above 200% for years. But the number is large enough at that point to warrant attention from credit markets and policymakers.
There’s no universally agreed threshold at which a ratio becomes “dangerous.” A widely cited 2010 study suggested growth slows sharply when debt exceeds 90% of GDP, but subsequent research from the IMF found little evidence of any clean threshold above which growth deteriorates.11International Monetary Fund. No Magic Threshold – Finance and Development, June 2014 What matters more than the level on any given day is the trajectory. A ratio rising steadily over a decade signals that borrowing is growing faster than the economy. A stable or declining ratio, even a high one, suggests the debt load is being managed relative to growth.
Comparing Ratios Across Countries
Ratios only compare cleanly when the underlying definitions match. Some datasets report general government debt, which includes state and local obligations, while others report only central government debt. Setting Japan’s general government ratio of roughly 228% against a central-government-only figure for another country would mislead you. The GDP figures should also cover the same time period; mixing a year-end debt snapshot with a mid-year GDP estimate introduces a timing mismatch that distorts the ratio. And countries that borrow in their own currency face different risks than those borrowing in foreign currencies, even at similar ratios. The number is a starting point, not a verdict.