To provide a container having a sampling function with which sampling of a part of contents may be easily executed while keeping the inside of a storage container in which the contents are stored in a closed space.SOLUTION: There is provided a container having a sampling function, comprising a storage container and a sampling flow path that has a communication port at one end, is communicated with the storage container through the communication port, and whose other end is a closed end. The sampling flow path has a small diameter section on one end side that communicates with the storage container via the communication port and a large diameter section on the other end side including the closed end. When a part of contents stored in the storage container flows to enter the large diameter section via the communication port and the small diameter section of the sampling flow path...