What is the difference between gypsum and lime?

Gypsum is calcium sulfate, and lime is calcium carbonate. Adding lime increases the pH of the soil. Gypsum is often used as a source of calcium on soils that wouldn’t benefit from increasing the pH.