Technically formaldehyde is a gas. Formalin is a solution of formaldehyde gas in water. That's what we use in histology. What we usually refer to as "formaldehyde" is more properly called "formaldehyde solution", and the further dilutions of that stock formaldehyde solution is what we usually refer to as "formalin".