The caloric theory is an obsolete scientific theory that heat consists of a self-repellent fluid called caloric that flows from hotter bodies to colder bodies. Caloric was also thought of as a weightless gas that could pass in and out of pores in solids and liquids. The "caloric theory" was superseded by the mid-19th century in favor of the mechanical theory of heat, but nevertheless persisted in some scientific literature--particularly in more popular treatments--until the end of the 19th century.
In the history of thermodynamics, the initial explanations of heat were thoroughly confused with explanations of combustion. After J. J. Becher and Georg Ernst Stahl introduced the phlogiston theory of combustion in the 17th century, phlogiston was thought to be the substance of heat.
There is one version of the caloric theory that was introduced by Antoine Lavoisier. Lavoisier developed the explanation of combustion in terms of oxygen in the 1770s. In his paper "Réflexions sur le phlogistique" (1783), Lavoisier argued that phlogiston theory was inconsistent with his experimental results, and proposed a 'subtle fluid' called caloric as the substance of heat. According to this theory, the quantity of this substance is constant throughout the universe, and it flows from warmer to colder bodies. Indeed, Lavoisier was one of the first to use a calorimeter to measure the heat changes during chemical reaction.
In the 1780s, some believed that cold was a fluid, "frigoric". Pierre Prévost argued that cold was simply a lack of caloric.
The introduction of the caloric theory was influenced by the experiments of Joseph Black related to the thermal properties of materials. Besides the caloric theory, another theory existed in the late eighteenth century that could explain the phenomenon of heat: the kinetic theory. The two theories were considered to be equivalent at the time, but kinetic theory was the more modern one, as it used a few ideas from atomic theory and could explain both combustion and calorimetry.
Quite a number of successful explanations can be, and were, made from these hypotheses alone. We can explain the cooling of a cup of tea in room temperature: caloric is self-repelling, and thus slowly flows from regions dense in caloric (the hot water) to regions less dense in caloric (the cooler air in the room).
We can explain the expansion of air under heat: caloric is absorbed into the air, which increases its volume. If we say a little more about what happens to caloric during this absorption phenomenon, we can explain the radiation of heat, the state changes of matter under various temperatures, and deduce nearly all of the gas laws.
However, one of the greatest apparent confirmations of the caloric theory was Pierre-Simon Laplace's theoretical correction of Sir Isaac Newton's calculation of the speed of sound. Newton had assumed an isothermal process, while Laplace, a calorist, treated it as adiabatic. This addition not only substantially corrected the theoretical prediction of the speed of sound, but also continued to make even more accurate predictions for almost a century afterward, even as measurements became more precise.
In 1798, Count Rumford published An Experimental Enquiry Concerning the Source of the Heat which is Excited by Friction, a report on his investigation of the heat produced while manufacturing cannons. He had found that boring a cannon repeatedly does not result in a loss of its ability to produce heat, and therefore no loss of caloric. This suggested that caloric could not be a conserved "substance" though the experimental uncertainties in his experiment were widely debated.
His results were not seen as a "threat" to caloric theory at the time, as this theory was considered to be equivalent to the alternative kinetic theory. In fact, to some of his contemporaries, the results added to the understanding of caloric theory.
Rumford's experiment inspired the work of James Prescott Joule and others towards the middle of the 19th century. In 1850, Rudolf Clausius published a paper showing that the two theories were indeed compatible, as long as the calorists' principle of the conservation of heat was replaced by a principle of conservation of energy. In this way, the caloric theory was absorbed into the annals of physics, and evolved into modern thermodynamics, in which heat is the kinetic energy of some particles (atoms, molecules) of the substance.
In later combination with the law of energy conservation, the caloric theory still shows a very valuable physical insight into some aspects of heat, for example, the emergence of Laplace's equation and Poisson's equation in the problems of spatial distribution of heat and temperature.