The prognosis depends on the etiology, size, severity, overall condition of the patient and location of the ulcer. In general, superficial ulcers have a better prognosis compared to deep ulcers.