The present invention relates to a method, a device, and a control program for the fluid-tight sealing of capsules containing medicaments, wherein the capsules consist of at least one capsule body and a capsule cap which are set one into the other telescopically and provided with a tight band in the abutment region on the exterior side of the capsule, wherein the capsule components are filled with gas which has a changed temperature and/or a changed pressure in relation to the environment, and wherein a reduction of the difference in pressure in the capsule to occurs via gaps between capsule body and capsule cap after the capsule components have been placed one inside the other. The capsules produced via the method according to the invention are disposable capsules and preferably contain a single dose of an orally administered pharmaceutical formulation in the form of a powder or a liquid.