The duration of endodontic treatment depends on the severity of the problem and the type of procedure required. In most cases, root canal therapy can be completed in one or two appointments, while endodontic surgery may require multiple visits.