The duration for which a drainage bag is needed varies based on the type of surgery and individual patient recovery. It can range from a few days to several weeks. The healthcare provider will determine the appropriate time to remove the drainage bag based on the healing process and fluid output.