A toothache is pain in or around a tooth that may be caused by a number of dental problems including cavities, infected gums, tooth decay, grinding your teeth, or flossing too aggressively. Minor toothaches can come from a temporary gum irritation that you can treat at home.