The duration of gas bubbles in fish can vary depending on the severity of the condition and the underlying cause. In mild cases, gas bubbles may dissipate on their own within a few days. However, in more severe cases, treatment may be required to alleviate the symptoms and prevent further complications.