Introduction Drug utilization research (DUR) is "the marketing, distribution, prescription, and use of drugs in a society, with special emphasis on the resulting medical, social, and economic consequences" as per the definition of the World Health Organization (WHO). The ultimate goal of DUR is to evaluate whether the drug treatment is rational or not. Various gastroprotective agents are available today, such as proton pump inhibitors, antacids, and histamine 2A receptor antagonists (H2RAs). Proton pump inhibitors block the gastric H+/K+-adenosine triphosphatase (ATPase) via covalent binding to cysteine residues of the proton pump to inhibit gastric acid secretion. Antacids are compounds containing different combinations, such as calcium carbonate, sodium bicarbonate, aluminum, and magnesium hydroxide. Histamine 2A receptor antagonists (H2RAs) decrease gastric acid secretion by reversibly binding to histamine H2 receptors located on gastric parietal cells, thereby inhibiting the binding and action of the endogenous ligand histamine. A recent literature review has shown that inappropriate use of gastroprotective agents has increased the risk for adverse drug reactions (ADRs) and drug interactions. Methods A total of 200 inpatient prescriptions were analyzed. The extent of prescribing, dosing information given, and cost incurred on the use of gastroprotective agents in both surgery and medicine inpatient departments was assessed. Prescriptions were also analyzed using WHO core indicators and for drug-drug interactions. Results Proton pump inhibitors were prescribed to 112 male patients and 88 female patients. The most common diagnosis was diseases of the digestive system with 54 (27.5%) cases, followed by diseases of the respiratory tract with 48 (24%) cases. Out of 200 patients, 51 comorbidities were reported from 40 patients. Among all prescriptions, injection of pantoprazole was the most common route of administration (181 (90.5%)), followed by tablets of pantoprazole (19 (9.5%)). The most common dose prescribed of pantoprazole was 40 mg in 191 (95.5%) patients in both departments. The frequency of therapy was also most commonly prescribed twice daily (BD) in 146 (73%) patients. Potential drug interaction was most commonly found with aspirin in 32 (16%) patients. The total cost incurred on proton pump inhibitor therapy of the medicine and surgery departments was 20,637.4 Indian Rupees (INR). Of this, the cost for patients admitted in the medicine ward was 11,656.12 INR and in the surgery department was 8,981.28 INR. Conclusion Gastroprotective agents are a group of drugs that are used to protect the stomach and the gastrointestinal tract (GIT) from acid-related injury. Our study found that proton pump inhibitors were the most commonly prescribed gastroprotective agents among inpatient prescriptions, with pantoprazole being the most frequently used. The most common diagnosis among patients was diseases of the digestive system, and most of the prescriptions were for injection administration at a dose of 40 mg twice daily. These findings suggest that there may be opportunities for improvement in the rational use of gastroprotective agents to reduce the risk of adverse drug reactions and interactions and lower healthcare costs. Overall, the study highlights the need for healthcare providers to be aware of the appropriate use of gastroprotective agents to minimize irrational prescriptions and reduce polypharmacy.