A commodity index fund is a pooled investment vehicle whose objective is to reproduce the return of a commodity index. It does not buy barrels of oil or bushels of grain. It gains exposure by buying a futures contract on each commodity in the index, or by entering a commodity index swap with a bank, and it keeps most of its cash in short-term government securities as collateral. The fund is passive: it holds long positions in the proportions set by the index and replaces contracts as they near expiry.
Such funds are offered as mutual funds, as exchange-traded funds and as private pools. In the United States a fund that trades futures is generally a commodity pool. Investors use them for diversification and as a hedge against inflation. Returns can differ sharply from the change in spot prices, because rolling contracts in a rising futures curve erodes value, and fees and tax treatment vary by structure.