Commodity exchange traded funds surged over the last three months after a lackluster 2013. With commodity-related ETFs and exchange traded notes (ETNs) back in the limelight, it is important for investors to understand how these products operate and how the IRS taxes these investment vehicles.

Commodity ETFs and exchange traded notes have been among the best performers year-to-date, with the iPath Dow Jones-UBS Coffee Total Return Sub-Index ETN (NYSEArca: JO) rising 81.6% so far this year on the severe drought conditions in Brazil, the world’s top producer of coffee. [Coffee ETN Gets Hyper as Brazilian Crops Wither]

Additionally, the United States Natural Gas Fund (NYSEArca: UNG) is still up 18.2% year-to-date despite falling prices on warmer weather conditions. Natural gas surged to a 5-year high in February. [Nat Gas ETF Surged on Winter Conditions, But Warmer Weather Ahead]

While it may be fun to play these types of short-term market moves in the commodities market, investors will have to deal with the slightly different taxes associated with the investments.

Commodities ETFs and other funds that use futures contracts to gain exposure to a market are structured as limited partnerships. Consequently, investors may have to fill out a Schedule K-1 instead of Form 1099, and they may incur Unrelated Business Taxable Income (UBTI), which could be taxable in an IRA. However, most ETFs provide K-1s in a timely manner and typically do not generate UBTIs.

Futures-backed ETFs, unlike equities and stock-based ETFs, are based on the so-called 60/40 rule, or 60% long-term gains at a maximum 23.8% rate and a 40% short-term gains at a maximum 43.4% rate, depending on the tax bracket, regardless of how long the investor holds the ETF.

Moreover, at the end of the year, the ETF must “mark to market” all outstanding contracts and treat them as if the fund sold those contracts, and investors would realize those gains for tax purposes.

Taxation of ETNs differs from that of ETFs. ETNs are a type of bond or debt security issued by an underwriting bank and subject to the credit risk of the issuer. Gains in stock, bond and commodity ETNs are taxed at a maximum long-term 23.8% rate and maximum 43.4% rate.

Lastly, physically backed ETFs, like the SPDR Gold Shares (NYSEArca: GLD), which gained 14.6% year-to-date, are treated as if investors held the physical bullion. Physically-backed metal ETFs are taxed as collectibles with long-term gains at a maximum 31.8% tax rate and short-term gains taxed up to a 43.4% rate. [Investors Turn Bullish on Gold ETFs as Crimea Standoff Extends]

For more information on commodities, visit our commodity ETFs category.

Max Chen contributed to this article.