Pericarditis can last anywhere from a few days to a few weeks, but the average duration is around two to four weeks.