Economists since the times of Adam Smith (1723-1790), looking at non-specific pre-modern societies as examples, have used the inefficiency of barter to explain the emergence of money, of "the" economy, and hence of the discipline of economics itself. However, ethnographic studies have shown that no present or past society has used barter without any other medium of exchange or measurement, nor have anthropologists found evidence that money emerged from barter, instead finding that gift-giving (credit extended on a personal basis with an inter-personal balance maintained over the long term) was the most usual means of exchange of goods and services.
As Orlove noted, barter may occur in commercial economies, usually during periods of monetary crisis. During such a crisis, currency may be in short supply, or highly devalued through hyperinflation. In such cases, money ceases to be the universal medium of exchange or standard of value. Money may be in such short supply that it becomes an item of barter itself rather than the means of exchange. Barter may also occur when people cannot afford to keep money (as when hyperinflation quickly devalues it).
When two people each have items the other wants, both people can determine the values of the items and provide the amount that results in an optimal allocation of resources. Therefore, if an individual has 20 pounds of rice that he values at $10, he can exchange it with another individual who needs rice and who has something that the individual wants that's valued at $10. A person can also exchange an item for something that the individual does not need because there is a ready market to dispose of that item.
Communities of Iroquois Native Americans, for instance, stockpiled their goods in longhouses. Female councils then allocated the goods, explains Graeber. Other indigenous communities relied on “gift economies,” which went something like this: If you were a baker who needed meat, you didn’t offer your bagels for the butcher’s steaks. Instead, you got your wife to hint to the butcher’s wife that you two were low on iron, and she’d say something like “Oh really? Have a hamburger, we’ve got plenty!” Down the line, the butcher might want a birthday cake, or help moving to a new apartment, and you’d help him out.