Tooth pain when subjected to cold or heat may be due to damaged tooth enamel and exposed dentin, teeth are more sensitive and prone to pain when subjected to cold, hot, sour or sweet, in this case you need to try to eat less food that is too hot or too cold to reduce the stimulation of dentin. You also need to use anti-allergic toothpaste for your teeth and stick to it for a relatively long period of time, and you will slowly get some effect. If the tooth allergy is more serious, it is necessary to go to a dental institution for desensitization of the teeth. There is another reason for tooth pain from cold and heat, it may be due to tooth decay, the tooth nerve may be exposed in the state of tooth erosion, and pain will be produced when the tooth nerve is stimulated by cold or heat. It is necessary to treat the tooth decay, and ask the doctor to help to check whether to fill the tooth or to carry out root canal treatment, after treating the tooth decay, the problem of tooth pain from cold and heat will be solved.