A cavity can take anywhere from six months to three or four years before it needs to be treated. As the state of your mouth changes on a daily basis, a cavity might emerge and then not develop due to different conditioning.