Trade Balance Visualizer¶
Run the Trade Balance Visualizer MicroSim Fullscreen
Edit in the p5.js Editor
About This MicroSim¶
This MicroSim displays US trade flows with six major trading partners (China, EU, Canada, Mexico, Japan, and South Korea) on an animated map. For each partner, students see export and import amounts in billions of dollars, top traded products, and whether the US runs a trade surplus or deficit. An optional capital flows overlay demonstrates the crucial insight that trade deficits are accompanied by capital surpluses -- dollars spent on imports return as foreign investment. The visualization challenges the common misconception that trade deficits mean a country is "losing."
How to Use¶
- Select a Trading Partner -- Use the dropdown to choose from China, EU, Canada, Mexico, Japan, or South Korea. The selected partner is highlighted in orange on the map.
- Read the Trade Flows -- Observe the animated blue arrows (US exports) and red arrows (US imports) between the US and the selected partner. Arrow thickness indicates the volume of trade.
- Toggle Capital Flows -- Check "Show Capital Flows" to display green arrows showing how dollars from the trade deficit return to the US as foreign investment.
- Review the Info Panel -- The right side panel shows export and import totals, top products traded, the trade balance (surplus or deficit), and key insights about what trade deficits really mean.
- Press Reset -- Click Reset to return to the default view with China selected and capital flows hidden.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://dmccreary.github.io/economics-course/sims/trade-balance/main.html"
height="542px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Grade Level¶
9-12 (High School Economics)
Duration¶
10-15 minutes
Prerequisites¶
- Understanding of imports and exports
- Basic knowledge of trade deficits and surpluses
- Familiarity with the concept of international trade
Activities¶
- Exploration (5 min): Have students click through all six trading partners and record which ones the US has the largest trade deficit with. Ask them to identify what types of products the US exports vs. imports with each partner.
- Guided Practice (5 min): Turn on capital flows for China (the largest deficit). Discuss why the trade deficit is paired with capital inflows, and why "Trade Deficit does not equal losing" as the simulator notes. Have students explain in their own words what happens to the dollars Americans spend on Chinese imports.
- Assessment (5 min): Students respond to the claim "The US trade deficit with China proves that trade is bad for America" by writing a paragraph that uses data from the visualizer and the capital flows concept to evaluate the claim.
Assessment¶
- Can the student read and interpret trade flow data between the US and its trading partners?
- Can the student explain why a trade deficit is accompanied by a capital account surplus?
- Does the student understand that trade deficits are not inherently good or bad without context?