---
name: commodities
description: >
  Commodity investing frameworks — supply/demand analysis, energy markets, metals, agriculture,
  and futures market structure. Reference when analyzing commodity markets, evaluating inflation
  hedges, understanding roll yield, or positioning within the commodity complex.
metadata:
  author: nirav
  version: "1.0"
compatibility: Designed for Claude Code
---

# Commodities — The Real Economy

Commodities are the raw materials of civilization. Unlike stocks and bonds, commodities produce no cash flow — their returns come entirely from price changes and the structure of the futures curve. Commodity investing is fundamentally about supply and demand in physical markets, with a futures market overlay that creates its own dynamics.

## Supply/Demand Framework

### The Iron Law of Commodity Markets

Commodity prices are set at the margin by the cost of producing the next unit. In the long run, prices converge to the marginal cost of production. In the short run, prices can deviate wildly because:
- **Supply is inelastic in the short run**: You cannot build a copper mine in six months. You cannot drill an oil well overnight. Supply responds slowly to price signals, creating sustained periods of surplus or deficit.
- **Demand is inelastic in the short run**: People do not stop driving when gas prices rise 20%. Factories do not stop buying copper when prices spike. Demand adjusts slowly, which amplifies price moves.
- **Inventories are the buffer**: When supply exceeds demand, inventories build. When demand exceeds supply, inventories draw. The rate of inventory change tells you whether the market is tightening or loosening.

### Inventory Cycle Analysis

Inventories are the most important variable in commodity analysis. They tell you what price does next:

**High inventories, building**: Oversupply. Prices under pressure. Contango in futures (more on this below). This is the worst environment for commodity investors.

**High inventories, drawing**: Supply/demand rebalancing. Prices stabilizing. The early sign of a bottom.

**Low inventories, building**: Demand weakening. Prices may be peaking. Watch for demand destruction signals.

**Low inventories, drawing**: Critical tightness. Prices spiking. Backwardation in futures. The best environment for commodity investors — but also the most dangerous because policy intervention (SPR releases, export bans) becomes likely.

**Key inventory metrics by commodity**:
- Oil: US commercial crude inventories (EIA weekly report), OECD commercial stocks, days of forward demand coverage.
- Natural gas: US storage (EIA weekly report), European storage (GIE data), days of heating/cooling demand coverage.
- Metals: LME warehouse stocks, COMEX warehouse stocks, Shanghai Futures Exchange stocks.
- Grains: USDA WASDE (World Agricultural Supply and Demand Estimates) — ending stocks-to-use ratio is the key metric.

### Marginal Cost of Production

The marginal cost is the floor beneath commodity prices in the long run (but not the short run — prices can and do fall below marginal cost during oversupply, destroying high-cost production until the market rebalances).

**Estimating marginal cost**:
- Global cost curves rank production from lowest to highest cost. The cost of the last unit needed to meet demand is the marginal cost.
- For oil: the marginal barrel has been US shale at approximately $50-65/bbl (WTI) since 2020. Below this, shale production declines. Above this, shale production grows.
- For copper: the marginal mine operates at approximately $3.50-4.00/lb. Below this, mine closures accelerate.
- For gold: all-in sustaining costs (AISC) for the average gold miner are approximately $1,200-1,400/oz.

## Energy Markets

### Oil

Oil is the most important commodity in the world. It is also the most geopolitical — OPEC+ controls approximately 40% of global production, and every major conflict has oil implications.

**Supply-side drivers**:
- **OPEC+ production decisions**: The cartel sets production quotas. Compliance varies. Saudi Arabia is the swing producer — the only country with significant spare capacity that can be deployed quickly.
- **US shale**: The marginal producer. Shale wells decline rapidly (60-70% production decline in year one), so the industry must constantly drill new wells to maintain production. The rig count is the leading indicator of future shale production.
- **Non-OPEC, non-shale**: Brazil (pre-salt deepwater), Guyana (massive new discoveries), Canada (oil sands — high cost, long lead time). These sources grow slowly but steadily.
- **Spare capacity**: The buffer between current production and maximum sustainable production. When spare capacity is low (below 2 million barrels/day), any supply disruption causes price spikes.

**Demand-side drivers**:
- **Economic growth**: Global GDP growth of 1% historically translates to approximately 0.5% oil demand growth.
- **China**: China accounts for roughly half of global oil demand growth. Chinese economic activity (PMI, property construction, transportation data) is the single most important demand variable.
- **Transportation**: Road transport, aviation, and shipping account for approximately 60% of oil demand. EV adoption is slowly eroding road transport demand but remains a small share of the global vehicle fleet.
- **Petrochemicals**: The fastest-growing source of oil demand. Plastics, fertilizers, and chemicals use oil as a feedstock, not a fuel — this demand is not affected by the energy transition.

**Energy transition implications**: Peak oil demand is a question of when, not if. But "when" matters enormously for pricing. Current estimates range from 2027 (IEA aggressive scenario) to 2040+ (OPEC view). The investment implications depend entirely on the timeline — underinvestment in new supply + delayed peak demand = commodity supercycle; rapid transition + demand destruction = stranded assets.

### Natural Gas

Natural gas is in a structural transition from a regional commodity (priced locally due to pipeline constraints) to a global commodity (priced on LNG shipping economics).

**Key dynamics**:
- **LNG globalization**: LNG export capacity has roughly doubled since 2015 and continues to grow. This links previously disconnected markets (US Henry Hub, European TTF, Asian JKM). Price convergence is underway but incomplete.
- **Storage as the key variable**: Gas cannot be stored as easily as oil. Storage levels heading into winter (for heating demand) and summer (for cooling/power generation) determine seasonal price patterns.
- **Volatility**: Natural gas is one of the most volatile major commodities. European TTF gas prices went from 15 EUR/MWh in 2020 to 340 EUR/MWh in August 2022 and back to 30 EUR/MWh by 2024. This volatility creates opportunities but demands rigorous risk management.
- **Role in energy transition**: Gas is the "bridge fuel" — cleaner than coal for power generation, available now, and abundant. But methane emissions and long-term climate goals create uncertainty about the bridge's length.

### Precious Metals

### Gold

Gold is unique among commodities — it is not consumed, it is hoarded. Nearly all gold ever mined still exists. This makes gold fundamentally different from industrial commodities.

**What drives gold prices**:
- **Real interest rates**: The most important driver. Gold pays no yield, so the opportunity cost of holding gold is the real yield on bonds. When real yields fall (or go negative), gold becomes more attractive. When real yields rise, gold becomes less attractive. The correlation between gold and real yields has been strong historically but broke down in 2022-2024 as central bank buying overwhelmed the rate signal.
- **Central bank buying**: Central banks (particularly China, India, Turkey, Poland) have been buying gold at record rates since 2022 — over 1,000 tonnes per year. This is a structural shift driven by de-dollarization, sanctions risk (Russia's frozen reserves were a wake-up call), and reserve diversification. Central bank demand has become the dominant price driver.
- **Dollar**: Gold is priced in dollars. A weaker dollar makes gold cheaper for non-dollar buyers, increasing demand. But this relationship is less stable than the real yield relationship.
- **Fear/uncertainty**: Gold spikes during geopolitical crises, financial panics, and periods of extreme policy uncertainty. This safe-haven demand is real but transient — it drives short-term spikes, not long-term trends.
- **Supply**: Gold mine production is approximately 3,500 tonnes/year and is relatively stable. Recycling adds another 1,200 tonnes. Supply is not the driver of gold prices — demand is.

**Gold's role in a portfolio**: Gold is not an investment in the traditional sense — it generates no cash flow. It is a hedge against monetary regime change, currency debasement, and tail risks. A 5-10% portfolio allocation to gold has historically improved risk-adjusted returns by reducing drawdowns without significantly reducing long-term returns.

### Silver

Silver has a dual nature — it is both a monetary metal (like gold) and an industrial metal.

**Industrial demand**: Solar panels, electronics, medical applications, and water purification account for roughly 55% of silver demand. Solar panel demand alone has surged due to the energy transition.

**Monetary/investment demand**: Coins, bars, and ETFs account for roughly 25% of demand. Silver tends to track gold with higher beta — it outperforms gold in precious metal bull markets and underperforms in bear markets.

**Gold/silver ratio**: The ratio of gold price to silver price. The long-term average is approximately 60-65. When the ratio exceeds 80, silver is historically cheap relative to gold. When it falls below 50, silver is relatively expensive. The ratio spiked to 120 during March 2020 (flight to quality into gold, industrial demand collapse for silver) and has since normalized.

### Industrial Metals

**Copper ("Dr. Copper")**: Copper is called "the metal with a PhD in economics" because its price historically correlates with global economic growth. Copper is used in construction, electrical wiring, electronics, EVs (an EV uses 3-4x more copper than an ICE vehicle), and renewable energy (wind turbines and solar installations are copper-intensive).

**Supply challenge**: Copper mine development takes 10-15 years from discovery to first production. Current mine supply growth is insufficient to meet projected demand from electrification and the energy transition. This supply-demand gap is the foundation of the structural bull case for copper.

**Aluminum**: The most abundant metal in Earth's crust but energy-intensive to produce (smelting requires enormous amounts of electricity). Aluminum prices are therefore closely tied to energy costs. China produces roughly 60% of global aluminum.

**Lithium and battery metals**: Lithium, cobalt, nickel, and manganese are critical inputs for EV batteries. Lithium prices have been extremely volatile — surging 10x from 2020 to 2022, then crashing 80% by 2024 as supply caught up with demand. The long-term thesis remains intact (EV penetration growing from ~20% to 50%+ of new car sales), but the path is not linear.

## Agricultural Commodities

### Grain Markets

Grains (corn, wheat, soybeans, rice) are the foundational agricultural commodities. Key drivers:

**Weather**: The dominant short-term driver. Droughts, floods, and extreme temperatures in key growing regions (US Midwest, Brazil cerrado, Black Sea region, Australian wheat belt) can cause sharp price spikes. El Nino/La Nina cycles affect global weather patterns and agricultural output.

**Stocks-to-use ratio**: The key fundamental metric. This ratio measures how many months of consumption are covered by existing inventories. Low ratios (below 15% for corn, below 20% for wheat) indicate tight supply and support high prices. High ratios indicate comfortable supply.

**Ethanol mandate**: Approximately 40% of US corn production goes to ethanol. This links corn prices to energy policy and oil prices.

**Food security**: Grain export restrictions (India banning wheat exports in 2022, various countries banning rice exports) demonstrate that food security trumps free trade during supply crises. This creates tail risk for importing nations and price spikes for global markets.

**Protein-feed complex**: As emerging market incomes rise, meat consumption increases. It takes 7-8 kg of grain to produce 1 kg of beef. Rising protein demand amplifies grain demand — this is a long-term structural tailwind for grain prices.

## Futures Market Structure

### Contango and Backwardation

Commodity investors typically gain exposure through futures contracts, not physical commodities. The shape of the futures curve determines whether holding futures generates positive or negative "roll yield."

**Contango (upward sloping futures curve — future prices higher than spot)**:
- What it means: The market expects prices to be higher in the future, OR storage costs and financing costs exceed the convenience yield of holding physical inventory.
- Impact on investors: Negative roll yield. When you roll an expiring front-month contract into the next month, you sell low (front month) and buy high (next month). This drag can be 5-10% per year and is the primary reason commodity ETF returns often diverge dramatically from spot price changes.
- When it occurs: Oversupplied markets with ample inventories. The most common state for oil markets.

**Backwardation (downward sloping futures curve — future prices lower than spot)**:
- What it means: The market is currently tight — spot demand exceeds immediate supply. The "convenience yield" of holding physical inventory (because you need it now) exceeds storage and financing costs.
- Impact on investors: Positive roll yield. You sell high (front month) and buy low (next month) when rolling. This is a tailwind that adds to returns on top of any spot price appreciation.
- When it occurs: Tight markets with low inventories and strong immediate demand. Backwardation is the signal that the physical market is stressed.

**The roll yield lesson**: Over the long term, roll yield has been a more important driver of commodity futures returns than spot price changes. Commodities in persistent backwardation (often energy during tight markets) have generated much higher total returns than commodities in persistent contango (often agricultural commodities post-harvest).

### Practical Implications for ETF Investors

- Commodity ETFs that hold front-month futures and roll monthly suffer the most from contango drag.
- Some ETFs use "optimized roll" strategies, holding contracts further out on the curve or timing rolls to minimize drag. These have historically outperformed naive front-month strategies by 2-4% annually.
- Physical-backed ETFs (like gold ETFs — GLD, IAU) avoid roll yield entirely because they hold the physical commodity. This is feasible for gold and silver but not for oil, natural gas, or grains.

## Commodity Supercycle Thesis

### The Structural Underinvestment Argument

The bull case for a multi-year commodity supercycle rests on a supply-demand mismatch:

**Supply side**: Capital expenditure in commodity production has been below replacement levels since 2015. Mining capex peaked in 2012 and has not recovered. Oil and gas capex peaked in 2014 and has been disciplined since. This underinvestment means the supply response to rising demand will be slower than in past cycles.

**Demand side**: The energy transition requires enormous quantities of copper, lithium, cobalt, nickel, aluminum, silver, and rare earths. Electrification, grid build-out, EV manufacturing, and renewable energy installation are commodity-intensive activities. The irony: going green requires mining more, not less.

**The greenflation paradox**: Environmental regulations and permitting requirements make it harder and slower to open new mines and develop new resources — precisely when more supply is needed. This extends the timeline for supply to respond to price signals, potentially sustaining higher prices for longer.

**Counter-arguments**: Technology improvements reduce commodity intensity over time. Substitution (aluminum for copper, lithium iron phosphate for cobalt-heavy chemistries) reduces bottleneck risk. Recycling will eventually provide significant supply (urban mining). Demand destruction from high prices is real — $100+ oil causes behavioral and investment shifts that reduce demand growth.

## Practical Framework: Commodity Portfolio Positioning

### Step 1: Identify the Macro Regime

Commodities outperform in reflationary and inflationary regimes. They underperform in deflationary regimes. Check: is global growth accelerating? Is inflation rising? Is the dollar weakening? If yes to all three, commodity positioning should be overweight.

### Step 2: Assess the Supply/Demand Balance

For each commodity you are considering, ask:
- Are inventories above or below average?
- Is the futures curve in contango or backwardation?
- Is marginal cost of production above or below the current price?
- Are there supply disruptions or expansion projects changing the balance?

### Step 3: Choose the Right Vehicle

- **Broad commodity index** (Bloomberg Commodity Index, S&P GSCI): Diversified exposure. BCOM is more balanced; GSCI is energy-heavy.
- **Sector-specific ETFs**: Energy (XLE for equities, USO/BNO for futures), metals (GDX for gold miners, COPX for copper miners), agriculture (DBA).
- **Physical-backed ETFs**: For gold and silver (GLD, SLV). No roll yield issue.
- **Commodity equities**: Mining and energy companies provide leveraged exposure to commodity prices plus the ability to return cash to shareholders. Better for secular bull markets. Worse for short-term trading because company-specific risks (management, cost overruns, jurisdiction) add noise.

### Step 4: Manage Roll Yield

If using futures-based exposure, check the term structure. Prefer commodities in backwardation. Use optimized-roll ETFs when available. Understand that contango will eat your returns even if spot prices rise — a 10% spot price increase with 8% roll yield drag gives you 2% total return.

### Step 5: Size Appropriately

A 5-15% allocation to commodities in a diversified portfolio provides meaningful inflation protection and diversification without dominating the portfolio's risk profile. Within that allocation:
- Gold: 3-5% for monetary hedge and tail risk protection.
- Broad commodities or energy: 5-10% for inflation hedging and growth exposure.
- Industrial metals (copper, lithium): 0-3% for energy transition exposure.

### Step 6: Monitor for Regime Change

The two biggest regime changes for commodities:
1. Dollar direction: A sustained dollar weakening cycle is the single best environment for broad commodities.
2. China policy: China consumes 40-60% of most industrial commodities. A Chinese stimulus program is the most powerful short-term catalyst for commodity prices.

## Related Skills

- **energy-security** — Energy is a commodity sub-class with geopolitical premium. For oil/gas/uranium positioning, energy-security adds the strategic/geopolitical overlay that pure commodity supply-demand analysis misses.
