Introduction Although the effect of rectal indomethacin in post-endoscopic retrograde cholangiopancreatography pancreatitis is well established, the effect of aspirin on acute pancreatitis (AP) is not well studied. We investigate the effect of aspirin on AP. Methods We collected data from the National Inpatient Sample database from 2016 to 2020, to identify adult patients with acute pancreatitis. Patients were stratified into 2 groups, based on the presence of aspirin use. The primary outcome was mortality, while other outcomes were sepsis, shock, acute kidney injury (AKI), ICU admission, deep venous thrombosis (DVT), pulmonary embolism (PE), portal vein thrombosis (PVT), pseudocyst and ileus. Results A total of 2.09 million patients met the inclusion criteria, of which 197 170 (9.41%) had long-term aspirin use. The majority of the patients with aspirin use were aged >65 years, male, White and had Medicare insurance. There was a higher incidence of biliary pancreatitis while rates of alcohol-induced pancreatitis were lower in patients with aspirin use. There was a lower incidence of mortality, sepsis, shock, PE, DVT, PVT and pseudocyst in patients with aspirin use. There was no difference in the incidence of ileus, while the incidence of AKI was higher. After adjusting for confounding factors, patients with aspirin use had a 23.6% lower risk of mortality. Discussion Our results reveal a significant finding of aspirin's protective effect on AP in the US population. Our study is the largest study revealing an association between aspirin and AP. Further studies assessing the role of aspirin use in AP are warranted.