Dear lybrate-user, if you know that their is cavity and its paining now, you should visit dentist
soon. Get checkup and X ray
done if needed. Based on the clinical situation and X ray report your doctor will advice you for the restoration/filling of that tooth or any other treatment to save the tooth. However its difficult for us to comment on the cost of treatment, as it depends on many factors.