Pelvic pain is considered chronic if it lasts more than 6 months and affects a patient's quality of life.