barn, in agriculture, farm building for sheltering animals, their feed and other supplies, farm machinery, and farm products. Barns are named according to their purpose, as hog barns, dairy barns, tobacco barns, and tractor barns.