Sources of hydrogen and nitrogen
Hydrogen is commonly produced on an industrial large scale by the catalytic reforming of methane (natural gas). Although hydrogen can also be produced by catalytically reforming methanol or by the electrolysis of water, neither of those processes are currently practiced on a large scale.
- CH4 (g) + H2O (g) → CO (g) + 3H2 (g)
- CO (g) + H2O (g) → CO2 (g) + H2 (g)
- CH4 (g) + 2H2O (g) → CO2 (g) + 4H2 (g)
The reforming of methanol involves vaporizing a mixture of liquid methanol and water, and then using a catalyst to help break down the methanol molecules into carbon monoxide and hydrogen. The water vapor then reacts with the carbon monoxide to produce carbon dioxide and more hydrogen:
- CH3OH (g) → CO (g) + 2H2 (g)
- CO (g) + H2O (g) → CO2 (g) + H2 (g)
- CH3OH (g) + H2O (g) → CO2 (g) + 3H2 (g)
Electrolysis of water
Electrolysis of water is the decomposition of water (H2O) into gaseous oxygen (O2) and hydrogen]] (H2) due to an electric current being passed through the water. This electrolytic process is currently used to produce hydrogen on a relatively very small scale compared to the large scale usage of the Haber process in the manufacture of ammonia.
An electrical power source is connected to two electrodes, or two plates, (typically made from some inert metal such as platinum or stainless steel) which are placed in the water. Hydrogen will appear at the cathode (the negatively charged electrode, where electrons are pumped into the water), and oxygen will appear at the anode (the positively charged electrode). The generated amount of hydrogen is twice the amount of oxygen, and both are proportional to the total electrical charge that was sent through the water.
The reaction between nitrogen and hydrogen gases is reversible , meaning that some ammonia will be formed, but not all will react. The yield of ammonia depends upon the conditions: temperature, pressure and the presence of a catalyst. 
- N2 (g) + 3H2 (g) ↔ 2NH3 (g)
Each of the reactants and the products is gaseous at the conditions used in ammonia production plants. One mole of any gas uses the same volume (24L at room temperature and pressure), so the total volume of gas decreases as the reaction goes to the right.
Le Chatelier's principle explains the effects of changing the temperature and pressure on a reversible reaction, as well as showing the effects of a catalyst.
Increasing the temperature breaks bonds apart, so increasing the temperature will force the equilibrium to the side with more molecules, thus decreasing the yield of ammonia. Furthermore, the higher the temperature, the higher the cost and also the higher the danger, so factory owners may not wish to make the temperature too high for economic and safety considerations. However, increasing the temperature will mean that the particles have more energy, so the rate of reaction will increase, so the ammonia will be made more quickly. In industry, the Haber process is usually carried out at a "compromise temperature" of between 400°C and 450°C. 
Increasing the pressure will cause the particles to be compressed together more. This means that the equilibrium will be forced to the side with fewer molecules, so the yield will increase. Higher pressures will also increase the rate of reaction, so the ammonia will be produced quicker. However, creating and maintaining a high pressure is very expensive, thus factory owners must find a "compromise pressure". In industry, this is about 200 atmospheres. 
A catalyst is a substance that lowers the activation energy required for a reaction to take place. In a reversible reaction, a catalyst will have no effect on the direction of the reaction, but instead makes it reach equilibrium more quickly. Catalysts are used as they do not get used up, thus they only need to be bought once, and allow more ammonia to be produced in a fixed period of time, increasing the efficiency of the factory.
The Haber process is still used today to make ammonia. Ammonia is one of the most abundantly-produced inorganic chemicals. There are literally dozens of large-scale ammonia production plants throughout the industrial world, some of which produce as much as 2,000 to 3,000 tons per day of ammonia in liquid form. The worldwide production in 2006 was 122,000,000 metric tons. China produced 32.0% of the worldwide production followed by India with 8.9%, Russia with 8.2%, and the United States of America with 6.5%. Without such massive production, our agriculturally-dependent civilization would face serious challenges.
Ammonia prices are expected to increase due to the rising prices of methane, which is used to produce the hydrogen required in the process.
Uses of ammonia
The various use of ammonia include:
- Producing fertilizers
- Manufacture of urea
- Manufacture of nitric acid
- pH control
- Cleaners and detergents
- Nitrate-containing explosives
- United States Geological Survey publication