In fact, chewing gum is good for your teeth! There have been quite a few studies done on the topic, and some do show that chewing gum can have an indirect positive effect on your teeth. Gum stimulates production of saliva which is a natural buffering agent that washes the teeth and neutralizes some of the acid produced by bacteria which is what erodes enamel and eventually causes cavities.
If you’re one of those people who don’t produce enough saliva in general, gum can help here too! Chew gum for 10 minutes every hour for two weeks and you can actually increase your salivary flow to a functional level which will lead to an increased buffering capacity.
However, it’s important to remember a few guidelines. Since gum typically contains some type of sweetener, be sure to avoid the ones containing sugar. Artificial sweeteners like Xylitol are a much better choice and some can actually prevent cavities. But the better choice: sugar-free gums.