In metallurgy, a flux (derived from Latin fluxus meaning “flow”) is a chemical cleaning agent, flowing agent, or purifying agent. Fluxes may have more than one function at a time. They are used in both extractive metallurgy and metal joining.
Some of the earliest known fluxes were carbonate of soda, potash, charcoal, coke, borax,lime,lead sulfide and certain minerals containing phosphorus. Iron ore was also used as a flux in the smelting of copper. These agents served various functions, the simplest being a reducing agent which prevented oxides from forming on the surface of the molten metal, while others absorbed impurities into the slag which could be scraped off the molten metal. As cleaning agents, fluxes facilitate soldering, brazing, and welding by removing oxidation from the metals to be joined. Common fluxes are: ammonium chloride or rosin for soldering tin; hydrochloric acid and zinc chloride for soldering galvanized iron (and other zinc surfaces); and borax for brazing, braze-welding ferrous metals, and forge welding.
In the process of smelting, inorganic chlorides, fluorides (see fluorite), limestone and other materials are designated as "fluxes" when added to the contents of a smelting furnace or a cupola for the purpose of purging the metal of chemical impurities such as phosphorus, and of rendering slag more liquid at the smelting temperature. The slag is a liquid mixture of ash, flux, and other impurities. This reduction of slag viscosity with temperature, increasing the flow of slag in smelting, is the original origin of the word flux in metallurgy. Fluxes are also used in foundries for removing impurities from molten nonferrous metals such as aluminium, or for adding desirable trace elements such as titanium.