The present invention relates to a method, a device, and a controlprogram for the fluid-tight sealing of capsules containing medicaments,whereinthe capsules consist of at least one capsule body and a capsule cap which aresetone into the other telescopically and provided with a tight band in theabutmentregion on the exterior side of the capsule, wherein the capsule components arefilled with gas which has a changed temperature and/or a changed pressure inrelation to the environment, and wherein a reduction of the difference inpressurein the capsule occurs via gaps between capsule body and capsule cap after thecapsule components have been placed one inside the other. The capsulesproduced via the method according to the invention are disposable capsules andpreferably contain a single dose of an orally administered pharmaceuticalformulation in the form of a powder or a liquid.