Gastritis duration varies based on its cause and severity. Acute gastritis may last for a short period, typically a few days to a week, while chronic gastritis can persist for months or even years. The key to a faster recovery often involves identifying and addressing the underlying factors triggering gastritis, such as bacterial infections or long-term use of certain medications.