Every time a politician invokes the US trade deficit, every time a newspaper leads with “US goods shortfall widens to record,” the underlying number traces back to a single federal data release: the Bureau of Economic Analysis International Transactions Accounts. The ITAs are the US Balance of Payments — the comprehensive accounting of every economic transaction between US residents and the rest of the world. Understanding the BOP framework is prerequisite knowledge for anyone analyzing US trade policy, exchange rates, capital flows, or macroeconomic imbalances.
The Balance of Payments framework
The Balance of Payments is a double-entry accounting system. Every international transaction generates two entries of equal value with opposite signs, so the BOP always sums to zero in principle. In practice, data imperfections produce a statistical discrepancy line item, but the conceptual framework is symmetrical: if the US runs a current account deficit, it must be financed by a corresponding net inflow in the financial account.
BEA publishes the ITAs quarterly, roughly 85–90 days after each quarter ends. Monthly goods trade data come from the Census Bureau Foreign Trade Division (the FT-900 release, published about five weeks after each month ends). Monthly services trade is published quarterly by BEA based on surveys of transactions with foreign persons. The quarterly BEA ITA release integrates both into the full BOP framework.
BEA follows the IMF Balance of Payments and International Investment Position Manual, Sixth Edition (BPM6), adopted in 2014. BPM6 harmonizes BOP definitions across countries and aligns the financial account sign convention: a positive financial account balance means net capital inflows (foreigners are net buyers of US assets), which finances a current account deficit. The three BOP accounts are:
- Current account: trade in goods and services, primary income (investment income), and secondary income (transfers such as remittances and foreign aid).
- Capital account: a small account covering capital transfers (debt forgiveness, migrants' transfers of assets) and non-produced, non-financial assets. For the US this account is typically under $1 billion per year and rarely discussed.
- Financial account: net acquisition of financial assets and net incurrence of liabilities. Includes foreign direct investment (FDI), portfolio investment, other investment (loans and deposits), and reserve assets. Under BPM6 sign convention, a financial account surplus (net inflows) offsets a current account deficit.
The current account: goods, services, and income
The current account is the most-watched BOP component because it measures the broadest flow of cross-border income and trade. In 2023 the US current account deficit was approximately $905 billion, or about 3.3 percent of GDP — large by historical standards but smaller than the 2022 peak near $971 billion. The current account has four sub-accounts:
- Goods trade: the most familiar component. US goods exports minus US goods imports. In 2023 the goods deficit was approximately $1.06 trillion. Goods include merchandise: capital goods (aircraft, machinery), consumer goods (electronics, apparel), industrial supplies (petroleum, chemicals), automotive vehicles and parts, and foods and feeds.
- Services trade: travel, financial services, intellectual property royalties, education, telecommunications, and transportation. The US runs a persistent services surplus. In 2023 it was approximately $293 billion. The US is a globally competitive exporter of financial services, IP licensing income, and higher education — categories that rarely appear in political discussions of “trade.”
- Primary income: investment income flowing across borders — dividends, interest, and reinvested earnings on direct investment. In 2023 the US ran a primary income surplus of approximately +$196 billion, meaning US residents earned more on their overseas investments than foreigners earned on their US investments. This positive primary income partially offsets the goods deficit.
- Secondary income: current transfers with no quid pro quo: government grants to foreign governments, personal remittances sent abroad by immigrants, US contributions to international organizations. The US consistently runs a secondary income deficit. In 2023 it was approximately −$222 billion. The US government is by far the largest single contributor to multilateral institutions and foreign aid budgets globally.
Adding the four components: −$1,060B (goods) + $293B (services) + $196B (primary income) − $222B (secondary income) ≈ −$793B to −$905B, depending on the data vintage and rounding. The current account deficit is often described as the “trade deficit” in shorthand, but strictly it is broader: it includes services trade and income flows that the goods-only headline misses.
Petroleum and the composition of goods trade
Within goods trade, BEA and Census separate petroleum from non-petroleum goods because energy trade behaves differently — driven by commodity price cycles, domestic production capacity, and geopolitical supply disruptions rather than pure competitiveness. The US shale revolution fundamentally altered the petroleum trade picture: the US went from a chronic petroleum deficit of $300–$400 billion per year before 2014 to near petroleum trade balance or small surplus by the early 2020s as domestic crude production surpassed Saudi Arabia and Russia to make the US the world's largest oil producer.
The non-petroleum goods deficit, by contrast, reflects the structural pattern of the US economy: high domestic consumer demand, relatively high manufacturing labor costs, and a decades-long shift toward services-sector production. Capital goods (aircraft, semiconductors, scientific instruments) represent the largest US goods export category. Consumer goods (electronics, apparel, furniture) represent the largest import category and the primary driver of the China bilateral deficit.
Bilateral trade balances: Canada, Mexico, China, and the EU
BEA publishes bilateral goods trade balances by country, and Census provides the underlying data in its USA Trade Online database. Bilateral balances are politically salient but economically less significant than the overall current account, which reflects the aggregate savings-investment balance.
The four largest bilateral goods trade relationships:
- Canada: the largest US trading partner by two-way volume. The US runs a goods deficit with Canada driven by energy (Canadian crude), vehicles (integrated North American auto supply chains under CUSMA/USMCA), and forestry products. The bilateral deficit fluctuates with energy prices but is typically $60–$80 billion per year.
- Mexico: the second-largest trading partner. USMCA and its predecessor NAFTA restructured production across the border, with deep supply chain integration in autos, electronics, and agriculture. The US goods deficit with Mexico was approximately $150 billion in 2023 and has grown as manufacturing investment shifted from China to Mexico.
- China: the largest bilateral goods deficit by far. In 2023 the US–China goods deficit was approximately $279 billion, down sharply from the 2018 peak of $418 billion following Section 301 tariffs imposed beginning in 2018. The composition shifted: Chinese consumer electronics, solar panels, and electric vehicle components faced tariffs; some supply chains rerouted through Vietnam, Mexico, and other countries rather than disappearing entirely.
- European Union: the US runs a goods deficit with the EU of roughly $180–$220 billion, driven by German machinery and vehicles, Irish pharmaceuticals, Italian luxury goods, and French aerospace components. The US runs a services surplus with the EU that partially offsets the goods deficit.
A methodological caution: bilateral goods balances can be distorted by trade entrepots. When Chinese goods are re-exported through Hong Kong or Vietnamese assembly operations incorporate Chinese components, the bilateral Census figures may not capture the ultimate country of origin. The value-added trade framework developed by the OECD and WTO (TiVA — Trade in Value Added) attempts to measure where the value in trade actually originates, often showing a smaller effective US deficit with China than the gross bilateral figures suggest.
The financial account: FDI, portfolio flows, and reserves
The financial account records the mirror image of the current account. A current account deficit means the US is spending more than it earns from the rest of the world; it must finance this by selling US assets to foreigners (net capital inflow) or by running down foreign assets. The financial account has four main components:
Foreign direct investment (FDI) is defined as cross-border investment where the investor acquires 10 percent or more of a foreign enterprise, establishing a lasting interest with management influence. The 10 percent threshold is the BPM6 standard; below that, an investment is portfolio investment regardless of intent.
In 2023, US direct investment abroad (USDIA) was approximately $500 billion in net capital outflows — US multinationals expanding overseas operations, making acquisitions, and reinvesting earnings in foreign affiliates. Foreign direct investment into the US (FDIUS) was approximately $350 billion in net inflows — foreign companies acquiring US businesses, expanding US plants, and reinvesting affiliate earnings. The US is simultaneously the world's largest outward FDI investor and one of the largest recipients of inward FDI.
Portfolio investment covers cross-border purchases of equities and debt securities where the investor holds less than 10 percent. This includes foreign purchases of US Treasury securities, corporate bonds, and equities, as well as US purchases of foreign stocks and bonds. Portfolio flows are more volatile than FDI because they can be reversed quickly; they are the primary channel through which the US finances its current account deficit on a monthly basis.
Other investment covers cross-border loans, deposits, and trade credit — flows between banks and non-bank financial institutions that do not qualify as FDI or portfolio investment.
Reserve assets: the Federal Reserve holds foreign exchange reserves of approximately $35 billion, a modest figure compared with other major economies. The US can afford small reserves because the dollar is the world's reserve currency: global demand for dollar-denominated assets means the US rarely needs to intervene to support the exchange rate. The Fed's reserve assets include foreign currency holdings, gold, IMF Special Drawing Rights (SDRs), and the US reserve position in the IMF.
Treasury TIC data and foreign holdings of US securities
The most granular data on foreign portfolio investment in the US comes not from BEA but from the Treasury International Capital (TIC) system, a separate monthly release from the Treasury Department. TIC tracks foreign holdings of US Treasuries, agency securities, corporate bonds, and equities by country.
As of 2024, foreign official and private holders own approximately $7.8 trillion of US Treasury securities — roughly 30 percent of the outstanding stock. The two largest national holders are Japan (~$1.1 trillion) andChina (~$780 billion, having peaked near $1.3 trillion in 2013 and declining as China has diversified reserves). The United Kingdom appears as a very large holder (~$700 billion) partly due to the custodian banking role of London-based institutions holding securities on behalf of third-country clients — the custody problem in TIC data that makes country-of-holder attribution imprecise.
Foreign central bank demand for US Treasuries is a key reason US interest rates are lower than they would otherwise be — a subsidy sometimes called “exorbitant privilege,” a term coined by French Finance Minister Valery Giscard d'Estaing in the 1960s critiquing the Bretton Woods system. The US borrows cheaply in its own currency while foreigners hold dollar reserves that earn modest returns. The flip side: this structural demand creates dollar appreciation pressure that makes US exports less competitive, widening the goods deficit.
The International Investment Position
The International Investment Position (IIP)is the stock measure that complements the flow measure of the BOP. Where the ITA records quarterly flows, the IIP records the accumulated result: the dollar value of all US assets held abroad versus all foreign assets held in the US at a point in time. BEA publishes the IIP annually (and with a quarterly update).
As of year-end 2023, the US net IIP was approximately −$20.6 trillion — meaning foreign-owned assets in the US exceeded US-owned assets abroad by $20.6 trillion. This is the largest negative net IIP of any country in the world. It reflects decades of current account deficits financed by net capital inflows, accumulated into a massive stock of foreign claims on US assets.
The IIP produces what economists call the “dark matter” paradox or the return differential puzzle. Despite a negative net IIP of $20+ trillion, the US consistently earns positive net primary income. In 2023 this was +$196 billion. How can the US owe more than it owns yet earn more than it pays?
The answer is a structural return differential. US investments abroad — predominantly FDI equity stakes in foreign multinationals, earning high returns — generate higher yields than foreign investments in the US, which are heavily weighted toward low-yield US Treasury securities held as reserve assets by foreign central banks. The US effectively borrows short-term (low-yield Treasuries that foreigners hold as safe havens) and invests long-term (high-yield FDI equity abroad) — a global carry trade embedded in the structure of the international monetary system.
The savings-investment identity and trade deficit misconceptions
The most important analytic insight about trade deficits is the savings-investment identity. From the national income accounts:
Current Account = National Saving − National Investment
Or equivalently: CA = (Private saving − Private investment) + (Government saving − Government spending) = S − I. A country runs a current account deficit when it invests more than it saves domestically — the gap must be filled by net capital inflows from abroad. This identity does not say what causes what; it is an accounting constraint. But it reframes the trade deficit debate: a persistent current account deficit reflects a structural domestic savings shortfall and/or investment boom, not simply a failure of trade policy.
The political claim that tariffs reduce the trade deficit conflates bilateral goods balances with the overall current account. Section 301 tariffs on Chinese goods imposed beginning in 2018 did reduce the US–China bilateral goods deficit. But the overall US current account deficit continued to widen through 2022, because the savings-investment gap widened (fiscal deficits increased, domestic investment remained strong). Trade diverted from China to Vietnam, Mexico, and other third countries, shifting bilateral balances without changing the aggregate. Exchange rate appreciation driven by the tariff shock also made US exports more expensive, partially offsetting any trade-diversion gain.
The services surplus is the most underappreciated element of US trade competitiveness. The US comparative advantage in financial services, IP licensing, cloud computing infrastructure, higher education, and professional services produces a $293 billion annual surplus that offsets about 28 percent of the goods deficit. US financial firms, technology companies, and universities earn substantial foreign revenue that never appears in goods trade headlines.
Census FT-900: the monthly goods trade release
The FT-900 is the monthly Census Bureau release, formally titled “U.S. International Trade in Goods and Services,” published jointly by Census and BEA roughly 35 days after the reference month. This release is the most market-moving international trade data point because it comes first: full BOP data comes quarterly, but the monthly FT-900 provides a faster read on goods and services trade.
The FT-900 presents:
- Goods trade balance (seasonally adjusted and not seasonally adjusted) — the headline number.
- End-use categories: capital goods (aircraft, computers, semiconductors, other machinery), consumer goods (electronics, apparel, toys, pharmaceutical preparations), industrial supplies and materials (petroleum, chemicals, steel), automotive vehicles, engines and parts, and foods, feeds, and beverages.
- Services trade balance: BEA's monthly services estimate, with more detail in the quarterly ITA release.
The Census Bureau also publishes the Advance Economic Indicators report about three weeks before the full FT-900. The Advance release covers only goods trade (not services) and is subject to larger revision, but its earlier timing makes it an input to BEA's advance GDP estimate.
FRED series for the goods and services trade balance:
BOPGSTB— US trade balance: goods, seasonally adjusted, millions of dollarsBOPBCA— US current account balance, not seasonally adjusted, millions of dollars, quarterlyNETFI— US net financial investment (financial account balance), millions of dollarsIEABCAA— current account balance as a percent of GDP, annual
BEA API access: the ITA dataset
The BEA API at apps.bea.gov/api exposes international transactions data through the ITA dataset (separate from the NIPA dataset used for GDP). Registration for a free API key is required. Key parameters for ITA queries:
DataSetName=ITAIndicator: the specific ITA line, e.g.BalCurrentAcct(current account balance),DefGoods(goods deficit),SurServices(services surplus),BalPrimInc(primary income balance),BalSecInc(secondary income balance),BalFinAcct(financial account balance)AreaOrCountry:ALLfor aggregate, or a specific country code for bilateral data (e.g.China,Canada)Frequency:Q(quarterly) orA(annual)Year:ALLfor full history (quarterly data back to 1960)
The BEA provides a method GetParameterValues to enumerate valid indicator names for the ITA dataset: method=GetParameterValues&DataSetName=ITA&ParameterName=Indicator. This returns all available indicator strings with descriptions, essential for exploring the dataset beyond the most common aggregates.
Python: querying BEA ITA for current account components
The script below queries the BEA ITA API for all five current account component series (total, goods, services, primary income, secondary income), assembles a combined DataFrame spanning 2003 onward, computes a four-quarter rolling average of the overall current account balance, and identifies the widest-deficit quarter in the series.
import requests
import pandas as pd
BEA_API = "https://apps.bea.gov/api/data"
API_KEY = "YOUR_BEA_API_KEY" # free registration at apps.bea.gov/api/signup
def fetch_bea_ita(indicator, frequency="Q", year="ALL"):
"""
Query the BEA International Transactions Accounts (ITA) dataset.
indicator: BEA ITA indicator name, e.g. 'BalCurrentAcct', 'DefGoods',
'SurServices', 'BalPrimInc', 'BalSecInc'
frequency: 'Q' for quarterly, 'A' for annual
year: 'ALL' for full history, or comma-separated years e.g. '2015,2020,2023'
"""
params = {
"UserID": API_KEY,
"method": "GetData",
"DataSetName": "ITA",
"Indicator": indicator,
"AreaOrCountry": "ALL",
"Frequency": frequency,
"Year": year,
"ResultFormat": "JSON",
}
resp = requests.get(BEA_API, params=params, timeout=30)
resp.raise_for_status()
result = resp.json()
if "BEAAPI" not in result or "Results" not in result["BEAAPI"]:
raise ValueError("Unexpected BEA ITA response: " + str(result))
data = result["BEAAPI"]["Results"].get("Data", [])
rows = []
for obs in data:
try:
value = float(obs["DataValue"].replace(",", ""))
except (ValueError, AttributeError):
value = float("nan")
rows.append({
"indicator": obs.get("Indicator"),
"area_country": obs.get("AreaOrCountry"),
"time_period": obs.get("TimePeriod"),
"value_millions": value,
})
df = pd.DataFrame(rows)
if df.empty:
return df
# Filter to the aggregate (not bilateral) series
df = df[df["area_country"] == "All countries"].copy()
df = df.sort_values("time_period").reset_index(drop=True)
return df
# --- Pull quarterly series for current account components ---
indicators = {
"current_acct": "BalCurrentAcct",
"goods_balance": "DefGoods",
"svcs_surplus": "SurServices",
"prim_income": "BalPrimInc",
"sec_income": "BalSecInc",
}
series = {}
for label, ind in indicators.items():
df = fetch_bea_ita(ind, frequency="Q", year="ALL")
if not df.empty:
series[label] = df.set_index("time_period")["value_millions"]
combined = pd.DataFrame(series)
# Filter to 2003 onward for a 20-year view
combined = combined[combined.index >= "2003Q1"].copy()
# Compute 4-quarter rolling average of total current account balance
combined["ca_4q_avg"] = (
combined["current_acct"].rolling(window=4, min_periods=4).mean()
)
print("Quarterly current account components, millions USD (last 12 quarters):")
print(
combined[["current_acct", "goods_balance", "svcs_surplus", "prim_income", "sec_income"]]
.tail(12)
.round(0)
.to_string()
)
# Most negative quarter (widest deficit)
worst = combined["current_acct"].idxmin()
print("\nWidest quarterly current account deficit: "
+ str(worst) + " value: "
+ str(round(combined.loc[worst, "current_acct"], 0)) + " M USD")
# Most recent 4-quarter rolling average
latest_avg = combined["ca_4q_avg"].dropna().iloc[-1]
print("4-quarter rolling avg (latest): " + str(round(latest_avg, 0)) + " M USD")
Implementation notes. ITA values are denominated in millions of dollars; divide by 1,000 to convert to billions for presentation alongside other BEA series that use billions. The DefGoods indicator is published as a negative value (deficit convention in the BOP); SurServices is positive. Bilateral country queries use the AreaOrCountry parameter with BEA's country names (verify exact strings via GetParameterValues). The API imposes rate limits; for production pipelines, cache the JSON response locally and parse multiple indicators from a single large request where possible.
Policy context and the limits of the trade balance as a policy target
The trade deficit has been a persistent focus of US trade policy across administrations, but the empirical evidence for trade-balance-targeting policies is mixed. Section 232 tariffs on steel and aluminum (2018) and Section 301 tariffs on Chinese goods (2018–present) succeeded in reducing specific bilateral deficits and protecting certain domestic producers. But the current account deficit continued to widen through 2022 for macroeconomic reasons unrelated to tariff policy: the 2017 tax cuts boosted investment while reducing national saving, and strong domestic demand growth pulled in imports.
The exchange rate mechanism also matters. Trade deficits create dollar demand (foreigners must sell their currencies to buy US goods and assets), and capital inflows from deficit financing similarly strengthen the dollar. A stronger dollar makes US exports more expensive abroad and imports cheaper domestically, widening the deficit even as trade barriers rise. This self-reinforcing mechanism — sometimes called the “Triffin dilemma” in its reserve-currency form — makes sustained current account balance difficult to achieve through trade barriers alone while the dollar remains the global reserve currency.
The services surplus is also a policy counter-argument frequently overlooked. US financial services exports (Goldman Sachs advisory fees collected from foreign clients, BlackRock managing foreign pension assets, Citi's foreign corporate banking income), IP royalties (Microsoft, Qualcomm, and Hollywood licensing income from abroad), and higher education exports (tuition paid by foreign students at US universities) contribute to a $293 billion annual services trade surplus that partially offsets the goods deficit. Restricting immigration or student visas can reduce this surplus, as can digital services taxes imposed by trading partners on US technology companies.
Connecting BOP data to other federal datasets
The BOP does not exist in isolation. The goods trade data originates from Customs and Border Protection entry documents, processed and reconciled by the Census Bureau into the FT-900. Services data come from BEA surveys: the Survey of Cross-Border Transactions in Selected Services (quarterly, BE-125 form), the annual benchmark survey of transactions with unaffiliated foreigners (BE-120), and surveys of multinational operations (BE-10, BE-11, BE-12) that capture intra-company flows within FDI relationships.
FDI data feeds into BEA's annual Survey of US Direct Investment Abroad (BE-10) and Survey of Foreign Direct Investment in the US(BE-12). These benchmark surveys, conducted every five years with annual updates, capture the operations of US multinational affiliates abroad and foreign affiliate operations in the US — employment, capital expenditure, R&D, and sales by industry and country. This data is used to analyze offshoring, supply chain geography, and the real economic substance behind gross FDI flow numbers.
The Treasury TIC system provides monthly updates on the portfolio investment components of the financial account, with country-level breakdowns not available in the quarterly ITA. TIC data is published with a 45-day lag and is the primary source for tracking which countries are buying or selling US government securities in near-real time. Changes in Chinese or Japanese Treasury holdings are watched as signals of reserve management strategy and geopolitical posture.
Data quality, revisions, and vintage considerations
BOP data is subject to substantial revision. The advance quarterly ITA release relies on incomplete source data; subsequent revisions incorporate fuller survey responses, revised Census goods data, and updated financial account estimates. Annual revisions in June update the prior three years; comprehensive revisions (roughly every five years) can revise the full history. The current account deficit for a given year may be revised by $30–$100 billion between the initial release and the final vintage.
The statistical discrepancy — the residual that forces the BOP to balance — averages tens of billions of dollars per year and occasionally exceeds $100 billion. It reflects unrecorded capital flows, timing mismatches between goods shipment and payment, and survey non-response. A large statistical discrepancy on the capital inflow side often signals unreported financial account inflows (capital flight into US assets not captured by TIC surveys). Researchers studying capital flight or offshore wealth accumulation use the discrepancy as a rough signal of unmeasured flows.
For research requiring real-time vintage data — studying how the BOP appeared at the time a policy was made rather than in its finally-revised form — ALFRED (Archival FRED) stores historical vintages of FRED series including trade balance data. BEA also maintains an archive of its own historical press releases.
For the GDP and national accounts framework that provides the denominator for current account as a share of GDP: BEA GDP and National Accounts: the federal dataset that measures the US economy →
For the Treasury TIC system that tracks foreign holdings of US securities underlying the financial account: Treasury TIC: foreign ownership of US securities and the federal capital flow dataset →