TLDR
Was money invented because barter was deemed impractical?
This is very difficult question to answer because in your question you are asking about whether barter was deemed impractical rather than whether it actually was objectively impractical, and money is literally as old as civilization itself perhaps even older as I will explain below, so we can only conjecture what was going through the heads of people who first used money, but impracticality of barter is very plausible, and by mainstream economists preferred explanation of origin of money, but the way how the question is posed we will likely never know for sure. Furthermore, while this is plausible and preferred explanation in economics, it is by no means the only explanation. Other explanations cannot be readily dismissed in this case, neither they are necessarily mutually exclusive (a phenomenon may have more than one cause).
Full Answer
Part I: What is Money and Barter
First, before going any further let us set our definitions for money straight. laymen often throw economic terms like money or barter without rigorous understanding of definitions (or lack of thereof) of the terms, and that might lead to fallacious assertions such as made in some of the other answers here. Furthermore, note since the sites that were referenced in opening post are economics sites (or purport to be), we need to be using definitions from economics not anthropology or history or other disciplines, otherwise we could easily commit an equivocation fallacy as definitions between these fields are not necessarily uniform.
Money
Money in Economics by definition is something that can fulfill the following functions (See Mankiw 20181):
-
medium of exchange - an item that buyers give
to sellers when they want
to purchase goods and
services
-
unit of account - the yardstick people use
to post prices and record
debts
-
store of value - an item that people can
use to transfer purchasing
power from the present to
the future
This is rigorous definition of money you can find in any economics textbook or generally academic work. It is also widely accepted definition. This is also consistent with the definition used by the sources linked to by original poster (one of the links does not work but the definition of money from Investopedia and owngoldandsilver.com match this textbook definition).
Important takeaway from this definition is to understand that money is not just what laymen think of when they think of money (e.g. coins, notes etc) it can take any form, shells, sacks of grain, small rocks etc as long as it is used as a medium of exchange, store of value and unit of account (oldest recorded money was plant and livestock based cca 9000- 6000BC see Glyn (2002)2).
Barter
Defining barter is slightly more problematic. In mainstream economics* barter was, and to some extent still is (except of some subfields) defined broadly as (Mankiw 2018)3:
the exchange of one good or service for another—to obtain the things
they need.
Mankiw (2018) is undergraduate text, but in graduate texts such as Mas-Colell et al (1995)4 which is more rigorous, in models describing barter economies never makes any other qualification on barter beside requiring exchange be done by trading goods and services directly for each without declaring some good money.
This is also consistent with the definitions of barter mentioned on the site original poster linked. For example the owngoldandsilver.com states:
Most people understand barter. The premise is simple. I work and produce something and then I exchange my production, the fruit of my labour, for someone else's production.
Investopedia defines it as:
Barter is an act of trading goods or services between two or more parties without the use of money —or a monetary medium, such as a credit card. In essence, bartering involves the provision of one good or service by one party in return for another good or service from another party.
However, anthropologist define barter differently, because they contrast barter with gift giving in a way that it is not done in economics.
For example, in Mauss’s analysis of The Gift referenced in Avery's answer gifts are never rigorously defined but he constantly ties it to three features: to reciprocation, to an obligation to give and to the maintenance of social relations (Testart, 1998)5. Well if the gift giving is obligatory reciprocal then under general broad definition of barter in economics mentioned above, the definition that is demonstrably used by linked material by OP, the gift is barter (since there is reciprocal exchange of goods and services), and the so called 'gift-giving economy' is just barter economy as described by general economic models such as those discussed in Mankiw or Mass-Colell et al referenced above.
More generally, we have forensic evidence that exchange of goods and services and some rudimentary division of labor (which by definition requires reciprocal exchanges) was taking place even in prehistory, in upper Paleolithic** (see Villotte et al, 2019)6), even before cca 9000BC when we have evidence for money so it had to involve barter. Anthropologist might call exchanges in these societies gift giving, mainstream economists in general would call this barter. Saying one or the other is perpetuating myth is absurd, its just matter of semantics. Since sources, in OP question use economic semantics answer should use it too.***
To be also fully transparent, recently the anthropological definition influenced some subfields of economics, because in past gift-giving was neglected by economics profession, and if one wants to analyze gift giving broad definition of barter (such as the one used in general economics) can lead to problem as it leaves very little space for defining gift.
However, only very small portion of already niche work on gift giving in economics directly uses anthropological definition of gift. Actually, as discussed by Elder-Vas (2020)7, the gift is poorly defined in economics, (he tries to alleviate that by proposing rigorous definition), but under many including one proposed there, gift giving should not include obligation for reciprocity, and it is incompatible with anthropological work on gift giving economies, which would still be characterized as barter economies in large body of economic literature.
Consequently, in economics, hunter-gatherer societies of past would generally not be considered gift giving economies (perhaps there are some exceptions, but to an extent reciprocity in such societies was obligatory, and average member of such society could not just continue receiving "gifts" without some explicit or implicit obligation of contributing back these were barter economies). This does not mean that anthropology cannot have its own definition, but its wrong to assert that all social sciences have to follow definition set by anthropology, there is no need for such semantic imperialism, different fields have routinely different rigorous definitions. However, here the sources cited by OP use economic definitions, so to address them we have to use economic definitions as well.
So did Money Arise from Barter or Something Else?
Now that we settled definitions of money and barter we can finally attempt to answer the question.
First we have to establish some time-line since if money arisen to solve inefficiencies of barter, barter necessarily has to come first.
This is not difficult, again as mentioned in the previous section we have evidence dating to pre-history that division of labor was taking place in upper Paleolithic (see Villotte et al, 2019)6). When you divide labor, you have to make some exchanges, as that is fundamentally point of division of labor, and as long as these exchanges create even implicit obligation for reciprocity they are barter, under broad definition of barter in economics. As discussed earlier, according to Glyn commodity money was developed cca 9000- 6000BC. So money could arise from barter.
Furthermore, generally economic literature shows that barter is highly inefficient form of exchange (see Mankiw ibid pp 604), due to problem of double coincidence of wants (e.g. with barter you need to find someone else who wants exactly what you offer), so there would definitely exist a motive for society to arrive at some solution (populations that manage their resources more efficient would presumably have evolutionary advantage).
Consequently, it is plausible to describe origin of money was to select one or few items preferred barter items to all others which then became partly accepted because of their qualities in acting as media of exchange. These could be preferred barter items for a number of reasons, some because of convenient and easy storage, some because of high value densities and portability, others for durability. These barter items, being highly and widely desired, would be more easily to exchange, and at some point they would became money.
Nonetheless, as mentioned in the first paragraph we cannot be sure if people deemed barter to be impractical. We know with hindsight that barter is inefficient, but that is easy to say from the vantage point of modern economist (like it is easy to laugh now at ancients thinking earth is center of the universe). Money is older than written language so there is no way for us to know what people were thinking when money was invented, and it is not even clear that money was invented consciously as the explanation by Glyn shows.
However, this is not the only plausible story for origin of money. It is also possible that money arisen from debt. Here dating works as well as for barter since we have some evidence for debt existing in Upper Palaeolithic. This evidence is based on findings of "tally sticks", some of which can be dated as far back as to 44,200 and 43,000 years in the past (see
Francesco d’Errico et al. 2012)8. We cannot be 100% sure what the tally sticks were used for (e.g. they could be used for religious purposes, math etc) but keeping track of debt is one plausible explanation for some of the tally sticks found, since we know that in other historical periods tally sticks, especially split tally sticks were commonly used for tracking debt. However, the earliest references to debt, where we can be 100% sure we are talking about debt date to ancient Sumer (see Ferguson 2008)9
Hence, a possible explanation for money arising is that people at some point decided to trade tally sticks, instead of barter.
This is what creates a difficulty here. Note that by definition money has to be medium of exchange, unit of account and store of value. You cannot just have tally sticks recording debt and call that money if you don't use them as medium of exchange you cannot say that we are dealing with money. If you trade some commodity but do not use it as an unit of account or store of value, again we are not talking about money.
Consequently, since money, by definition requires that the thing you call money is both unit of account and medium of exchange, the moment you "invent" money you solve both problems of barter and tracking debts simultaneously, and it is difficult to clearly pinpoint what exactly was the impetus that compelled society to develop money (possibly it could be even both reason at the same time).
What even worse, these are not the two only explanations that are there. As argued by Glyn:
Money originated very largely from non-economic causes: from tribute as well as from trade, from blood-money and bride-money as well as from barter, from ceremonial and religious rites as well as from commerce, from ostentatious ornamentation as well as from acting as the common drudge between economic men.
In fact Glyn argues that one of the main reason for development of money was neither to solve problem of barter, nor necessarily settle debts, but rather to settle tax obligations (which can be treated separately from debts, even though not all authors make that distinction).
To be perfectly honest, this is not fully settled question, so it is hard to say who is right, but most mainstream economists prefer the barter origin theory (or actually in literature this is known as the metalist view). This is due to heavy influence of Jevons10 who emphasized high transaction costs created by barter, which imply there is a large incentive to solve this issue as soon as possible, and other forerunners of present day mainstream economics such as Schumpeter11 or Samuelson (1967)12. Samuelson was especially influential since he is the 'father' of 21st century modern mainstream economics. This is also the explanation preferred by many standard and widely used economics textbooks such as above mentioned Mankiw's Principles, or Samuelson's Economics etc.
In economics, the main advocates for the debt origin of money (known as chartalist view) come from heterodox and often fringe subfields such as Marxist economists or Modern Monetary Theory advocates such as Randall Wray. As a whole these are very fringe and not widely accepted fields of economics (and I am still being very generous with my language here).
Because these fields have very bad reputations ideas coming from these subfields are sometimes too quickly dismissed. It does not help that these subfields often talk very ideologically about origins of money, to the point where one has an impression that they oppose the barter origins just because they argue its inherently connected to decentralized market exchanges.
Nonetheless, one has to admit that when it comes to the topic of the origin of money these strands of literature might be actually correct and should be taken more seriously. While, the anthropological research is not really applicable here as it simply uses different definition of barter/gift and not consistent definitions of barter (so its conclusions about (non)prevalence/existence of barter have very little to no bearing on the origins of money from barter as defined in economics), there is some evidence that barter might not be as extremely inefficient (and thus high transaction costs) as is often thought as argued by Svizzero and Tisdell (2019)13 who show that there is some archeological evidence for barter persisting in some flexible forms even in some ancient civilizations which shows that barter cannot as extremely inefficient as often thought, as otherwise such civilizations would likely not be able to bear the burden of high transaction costs created by barter.
This being said, this is not completely settled question, I do not think it will even be fully settled in foreseeable future. Since both money and debt likely predate written languages it is extremely difficult to discover what was original impetus for creation of money. Note, there is a consensus that money is both important as a solution to double coincidence of wants, and as a unit of account and ways how to settle debts. And I do not think that anyone doubts that as soon as money was "invented" it was quickly used for both, making this very difficult problem to solve.
* Mainstream economics is the economics taught at most universities and the most widely accepted set of economic theories.
** Paleolithic age was roughly 2.5 million years ago to 10,000 B.C, we are talking about upper Paleolithic so closer to 10,000 B.C, but that is still older than 9000 B.C. for which we have first evidence for money.
*** This is why the answer by the user Avery is highly misleading when the user calls prevalence of barter myth held by social sciences. That is plainly fallacious statement, that would be like if economist would tell to physicists inflation [meaning cosmic inflation] is a myth since we know that inflation is increase in aggregate price level. This is just an fallacy of equivocation.
References
- Mankiw, N. G. (2018). Principles of economics. 8th ed. Cengage Learning. pp 605.
- Davies, Glyn. A history of money from ancient times to the present day, 3rd ed. Cardiff: University of Wales Press, 2002. pp 41-44
- Mankiw, N. G. (2018). Principles of economics. 8th ed. Cengage Learning. pp 604.
- Mas-Colell, A., Whinston, M. D., & Green, J. R. (1995). Microeconomic theory (Vol. 1). New York: Oxford university press.
- Testart, A. (1998), ‘Uncertainties of the “Obligation to Reciprocate”: A Critique of Mauss’, in W. James and N. J. Allen (eds),
Marcel Mauss: A Centenary Tribute, New York: Berghahn Books, pp. 97–110
- Villotte, S., Churchill, S. E., Dutour, O. J., & Henry-Gambier, D. (2010). Subsistence activities and the sexual division of labor in the European Upper Paleolithic and Mesolithic: evidence from upper limb enthesopathies. Journal of Human Evolution, 59(1), 35-43.
- Elder-Vass, D. (2020). Defining the gift. Journal of Institutional Economics, 16(5), 675-685.
- Francesco d’Errico et al. (2012) Early evidence of San material culture represented by organic artifacts from Border Cave, South Africa. Proceedings of the National Academy of Sciences 109(33)
- Ferguson, N. (2008). The ascent of money: A financial history of the world. Penguin. pp 29.
- Jevons, W. S. 1910. Money and the mechanism of exchange. London: Kegan Paul.
- Schumpeter, J. A. (1963). History of economic analysis (No. 330.153 S392). Oxford University Press, New York, NY (EUA).
- Samuelson, P.A. (1967). Economics: An Introductory Analysis, 5th Edn., McGraw-Hill, New York.
- Svizzero, S., & Tisdell, C. (2019). Barter and the Origin of Money and Some Insights from the Ancient Palatial Economies of Mesopotamia and Egypt.