The present invention provides a measurement method, a measurement device, and a program capable of non-destructively measuring a volume of a drug in each needle-shaped recess of a mold with high accuracy. In a measurement method according to a preferred aspect of the present invention, a reference surface height that is a height between a reference surface determined in advance with respect to a first surface on the side on which a drug is filled in a mold or a second surface opposite to the first surface, and the second surface is acquired. A first detection result obtained by detecting, for each needle-shaped recess, a measurement wave emitted from a drug surface that is a surface of the drug according to incidence of the measurement wave on the drug in the needle-shaped recess is acquired. A first height between the reference surface and the drug surface is detected for each needle-shaped recess on the basis of the first detection result. A second height from the second surface to the drug surface is detected for each needle-shaped recess from the reference surface height and the first height of each needle-shaped recess. A volume of the drug in the needle-shaped recess is calculated for each needle-shaped recess on the basis of the second height of each needle-shaped recess and a known shape of the needle-shaped recess.