Your dentist finds cavities during a regular dental checkup. Your dentist will probe your teeth, looking for soft spots, or use X-rays to check between your teeth. If you’ve had a cavity for a while, you might get a toothache, especially after you eat or drink something sweet, hot, or cold. Sometimes you can see pits or holes in your teeth.