A pillow for automatically adjusting a height of the pillow is provided. The pillow includes a pillow cover including a pressure sensor to sense pressure applied when a user puts a head of the user on the pillow, a plurality of air pockets positioned inside the pillow cover, an air injection unit to adjust an amount of air inside the air pocket, and a controller. The control unit senses pressure of a contact region between a body of the user and the pillow cover when the user puts the head of the user on the pillow, and controls the air injection unit to adjust the air amount inside at least one of the plurality of air pockets such that distribution of the pressure of the contact region is within a preset range, when the distribution of the pressure of the contact region is out of the preset range.