A valve unit includes a valve seat that has a hole provided therethrough, the hole serving as part of a flow path, and a valve body that moves in a first direction relative to the valve seat. In the valve unit, the valve body includes a first portion that opens/closes the hole in collaboration with the valve seat, a second portion that is located inside the hole when viewed in the first direction, and a third portion that is located between the first portion and the second portion in the first direction and is located inside the hole while the hole is closed by the first portion. When viewed in the first direction, a gap between the hole and the third portion is larger than a gap between the hole and the second portion.