How long does a dental filling last?

The longevity of a dental filling depends on many factors. 1. the size of the cavity 2. the dental filling material 3. the technique 4. oral hygiene 5. force exerted