There is a lack of information regarding the causes of rising inpatient opioid use and how it relates to opioid use that continues following colorectal surgery. A total of five cooperating institutions' patients who had colorectal surgery was tracked down. The American College of Surgeons National Surgical Quality Improvement Initiative recorded information on patient comorbidities, surgical information, and results. We documented the usage of opioids before surgery, while patients were being treated, and for a while afterward. We discovered risk variables for heavy inpatient use, which can be utilized to recognize patients who can profit from opiate sparing tactics. A higher likelihood of continuing opioid usage was also linked to significant postoperative inpatient use.