The invention relates to a device and a method for determining the weight of product (2), in particular a pharmaceutical product, which is located in a container (3). The device comprises at least one x-ray source (28), which produces a radiation path (18), for passing radiation through the container (3), and a sensor (14), which detects the radiation of the container (3) through which radiation is passed in the form of an image (12), wherein an evaluating apparatus (14), is provided, which divides the image (12) of the container (3) through which radiation is passed into at least one evaluation region (21) in which there is no product (2).