Commodity goods are raw materials, like corn, flour, oil, and metals. Commodities trading is the buying and selling of these raw materials. Sometimes it involves the physical trading of goods. But more often it happens through futures contracts, where you agree to buy or sell a commodity for a certain price at a specified date.

Commodities can add diversification to your portfolio and provide an inflation hedge. However, commodities are highly volatile. Trading commodities is complex because factors like weather events and political strife that are often difficult to predict can have an outsize impact on prices. Keep reading to learn the basics of how commodities trading works and some alternative ways to invest in commodities.

Pile of grain next to several bags of grain.
Image source: Getty Images.

What is commodities trading?

What is commodities trading?

When you buy an ear of corn or a bag of wheat flour at a supermarket, you probably don't pay much attention to where they were grown or milled. That's because both corn and flour are commodities. Commodities trading is the buying and selling of these interchangeable materials in bulk. Often these raw materials are the building blocks of manufactured products.

Commodities traders bet on how the commodity's price will move. If you think the price of a commodity will go up, you buy futures, or go long. If you think the price will drop, you sell futures, or go short.

Although it's possible to trade commodities by buying and selling the physical commodity, trading through futures contracts is far more common. These agreements specify the terms of delivery of an asset for a specified date in the future. They're often used by producers or major industrial consumers as a risk management tool in case prices increase or decrease.

For instance, say you're a corn farmer. You want to be sure that you'll be able to get at least the prevailing market price for your crop. So you sell a futures contract, agreeing to sell 5,000 bushels of corn at $4 each in 90 days. You win if prices drop because you've locked in $4 a bushel. But you miss out on profits if prices rise to $5.

On the other side, say you're a food processing company that needs corn to produce cornmeal for food retailers. You don't want to risk higher prices if there's a smaller crop. So you buy that futures contract for 5,000 bushels of corn at $4 each. If prices fall, you lose because you pay more than the prevailing market price. But if they skyrocket, you're still paying only $4 a bushel.

As an investor, you can also speculate on corn prices. For example, let's say you buy that same futures contract. You have no intention of actually buying 5,000 bushels of corn in 90 days, but you're betting corn prices will rise and you'll be able to sell it for more money. Or you can take a short position if you believe prices will fall.

Futures contracts are typically traded on commodity exchanges. The two largest exchanges in the U.S. are the Chicago Mercantile Exchange and the New York Mercantile Exchange.

Types of commodities

Types of commodities

Investors break down commodities into two categories -- hard and soft. Hard commodities require mining or drilling to find. Soft commodities are grown or ranched. There are four main types of commodities.

  1. Agricultural products: Soft commodities. They include crops like coffee, corn, wheat, soybeans, cotton, and lumber.
  2. Livestock and meat: Soft commodities. They include live cattle, beef, pork bellies, and milk.
  3. Energy products: Hard commodities. They include crude oil, natural gas, unleaded gasoline, propane, ethanol, and coal.
  4. Metals: Hard commodities. They include precious metals like gold and silver and industrial metals like copper, aluminum, and palladium.

Commodities vs. the stock market

Commodities vs. the stock market

Commodity prices often fluctuate wildly because of changes in supply and demand. For example, when there's a big harvest of a certain crop, the price usually goes down. When there's a drought, prices often rise because of fears that the supply will drop.

Similarly, during cold weather, demand for natural gas for heating purposes rises. This causes prices to spike, too. But a warm spell during winter can depress prices.

Still, some commodities are relatively stable, such as gold, which also serves as a reserve asset for central banks. But in general, commodities are significantly more volatile than stocks or bonds

Some investors seek out commodities for diversification. Commodities usually have a negative correlation (their prices move in different directions) or a low correlation (their prices don't move in tandem with each other) with equities.

For example, oil and stocks tend to have a negative correlation. That means rising oil prices have traditionally been linked to a weaker stock market. Likewise, the stock market is often stronger when oil prices are low.

For that reason, commodities are a popular stock market hedge. Many investors flock to gold during a bear market, for example. Commodities are also a common inflation hedge. High inflation often causes commodity prices to soar; stocks and bonds perform better when inflation is lower.

How to invest in commodities

How to invest in commodities

Commodity trading isn't the only way to invest in commodities. Here are four basic ways.

1. Invest directly in the commodity

The most straightforward way to invest in commodities is by physically buying a commodity. One advantage is that you don't have to go through a third party. Typically you can do a simple internet search to find a dealer to sell you a particular good. When you no longer want it, that dealer will often buy it back. But you have to figure out delivery and storage logistics.

If you're buying gold, this may be relatively simple. You can easily find a coin dealer online who can sell you a bar or coin. You can safely store it and later sell it as you wish. 

But it gets a lot harder when you're trying to figure out delivery and storage of cattle, crude oil, or agricultural commodities, like bushels of corn. For that reason, investing in most physical commodities typically takes too much effort for individual investors.

2. Invest in futures contracts

You can trade commodity derivatives, such as futures contracts, as long as you have a brokerage account that allows for it. But futures contracts are largely designed for major companies involved in commodities rather than for individuals.

When you trade futures, you'll be required to maintain a certain amount of capital, known as margin, in your brokerage account. One risk of trading commodities is that the margin requirements are often lower than for stocks.

When you trade on margin, you're trading borrowed money, which can amplify your losses. Given the volatility of commodity prices, it's essential to have enough resources on hand to cover any margin call, which is when your broker requires you to deposit more money.

3. Invest in commodity stocks

Another way to invest in commodities is to buy shares of the companies that produce them. For example, you could buy metal stocks, energy stocks, or meat stocks

A commodity-producing company won't necessarily rise or fall in line with the commodity it produces. Sure, an oil production company will benefit when crude oil prices rise and suffer when they fall. But far more important is how much oil it has in its reserves and whether it has lucrative supply contracts with high-demand purchasers. 

4. Invest in commodity ETFs and mutual funds

Commodity exchange-traded funds (ETFs) and mutual funds offer commodity exposure for those who don't want to buy the commodity directly. You can find an investment fund that invests in physical materials, commodity stocks, futures contracts, or a combination. 

For example, investors who want broad exposure to gold could invest in the SPDR Gold Trust ETF (GLD 0.35%), while those who are bullish on oil prices could buy shares of the United States Oil Fund LP (USO -4.17%). If you want more exposure to commodities in general, you could invest in the iShares S&P Commodity-Indexed Trust (GSG -2.26%). The fund's benchmark index is the S&P GSCI, which includes 24 commodities from all commodity sectors. 

However, commodity funds may not move in sync with the price of the underlying good. That may come as a surprise to new investors.

Related investing topics

Should you trade commodities?

Should you trade commodities?

Commodity trading is a high-risk, high-reward endeavor. It can be an effective means of hedging your portfolio against a bear market or inflation.

But you should consider it only if you have a strong understanding of the supply-and-demand dynamics of the commodity market. That includes knowledge of historical price trends and what's happening in real time. If you're getting started, you can reduce your risk by limiting your use of margin.

Much of commodity trading amounts to speculation, not investing. Unpredictable factors like the weather, disease, and natural disasters can have huge effects on commodity prices in the short term. If you're looking to invest in a commodity for the long term, commodity stocks, mutual funds, and ETFs are a better option for most individuals.

Robin Hartill, CFP® has no position in any of the stocks mentioned. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy.