Satiation is the process by which eating and drinking reduce appetite. For thirst, oropharyngeal cues have a critical role in driving satiation by reporting to the brain the volume of fluid that has been ingested1-12. By contrast, the mechanisms that relay the osmolarity of ingested fluids remain poorly understood. Here we show that the water and salt content of the gastrointestinal tract are precisely measured and then rapidly communicated to the brain to control drinking behaviour in mice. We demonstrate that this osmosensory signal is necessary and sufficient for satiation during normal drinking, involves the vagus nerve and is transmitted to key forebrain neurons that control thirst and vasopressin secretion. Using microendoscopic imaging, we show that individual neurons compute homeostatic need by integrating this gastrointestinal osmosensory information with oropharyngeal and blood-borne signals. These findings reveal how the fluid homeostasis system monitors the osmolarity of ingested fluids to dynamically control drinking behaviour.