Adam Smith, the father of modern economics, sought to demonstrate that markets (and economies) pre-existed the state, and hence should be free of government regulation[citation needed]. He argued (against conventional wisdom) that money was not the creation of governments. Markets emerged, in his view, out of the division of labour, by which individuals began to specialize in specific crafts and hence had to depend on others for subsistence goods. These goods were first exchanged by barter. Specialization depended on trade, but was hindered by the "double coincidence of wants" which barter requires, i.e., for the exchange to occur, each participant must want what the other has. To complete this hypothetical history, craftsmen would stockpile one particular good, be it salt or metal, that they thought no one would refuse. This is the origin of money according to Smith. Money, as a universally desired medium of exchange, allows each half of the transaction to be separated.[3] 

Bartering is based on a simple concept: Two individuals negotiate to determine the relative value of their goods and services and offer them to one another in an even exchange. It is the oldest form of commerce, dating back to at time before hard currency even existed. (Learn more about how bartering evolved, read The History of Money: From Barter To Banknotes.)
He would have heard of channels and sandbanks, of natural features of the land useful for sea-marks, of villages and tribes and modes of barter and precautions to take: with the instructive tales about native chiefs dyed more or less blue, whose character for greediness, ferocity, or amiability must have been expounded to him with that capacity for vivid language which seems joined naturally to the shadiness of moral character and recklessness of disposition.
On paper, this sounds a bit like delayed barter, but it bears some significant differences. For one thing, it’s much more efficient than Smith’s idea of a barter system, since it doesn’t depend on each person simultaneously having what the other wants. It’s also not tit for tat: No one ever assigns a specific value to the meat or cake or house-building labor, meaning debts can’t be transferred.
And that means everything from tuna to stamps to cigarettes has its own unique value in a trade and barter market. — Alexandra Cardinale, Vox, "Why ramen is so valuable in prison," 14 Nov. 2018 European officials were also looking at a barter system that would allow Iran to sell oil, for example to China, and use the proceeds from that sale to purchase goods or technology from Europe. — Laurence Norman, WSJ, "Europe’s Payment Channel to Salvage Iran Deal Faces Limits," 25 Sep. 2018 With unemployment around 9 percent and consumer prices surging, some Argentines are again turning to barter clubs, which first emerged during the collapse nearly two decades ago. — Almudena Calatrava, Fox News, "Argentines seek soup kitchens, barter markets amid crisis," 10 Sep. 2018 This particular search insired Gellar and Laibow to hop on the phone and barter. — Colleen Leahey Mckeegan, Marie Claire, "Sarah Michelle Gellar's Second Act? Disrupting the Food Industry," 18 Apr. 2017 Choco Pies became so prevalent for sale or barter on the streets that North Korea reportedly banned their import to Kaesong in 2014. — Brian Murphy, Washington Post, "The Choco Pie dividend: South Korean firms are drooling at the prospect of business in the North," 17 June 2018 In 1996, amid crippling famine, Ji tried to steal a few pieces of coal from a rail yard to barter for food. — Brian Murphy,, "Could these outspoken North Korean defectors return home?," 11 June 2018 In 1996, amid crippling famine, Ji tried to steal a few pieces of coal from a rail yard to barter for food. — Brian Murphy,, "Could these outspoken North Korean defectors return home?," 11 June 2018 Instead, like many early civilizations, they were thought to mostly barter, trading items such as tobacco, maize, and clothing. — Joshua Rapp Learn, Science | AAAS, "The Maya civilization used chocolate as money," 27 June 2018

Another advantage of bartering is that you do not have to part with material items. Instead, you can offer a service in exchange for an item. For instance, if your friend has a skateboard that you want and their bicycle needs work, if you are good at fixing things, you can offer to fix their bike in exchange for the skateboard. With bartering two parties can get something they want or need from each other without having to spend any money.
Other countries though do not have the reporting requirement that the U.S. does concerning proceeds from barter transactions, but taxation is handled the same way as a cash transaction. If one barters for a profit, one pays the appropriate tax; if one generates a loss in the transaction, they have a loss. Bartering for business is also taxed accordingly as business income or business expense. Many barter exchanges require that one register as a business.