Hemorrhoids are a common anorectal disease. Epidemiological studies on medication trends and risk factors using information from real-world databases are rare. Our objective was to analyze the relationship between hemorrhoid treatment prescription trends and several risk factors using the National Database of Health Insurance Claims and Specific Health Checkups of Japan (NDB) Open Data Japan and related medical information datasets. We calculated the standardized prescription ratio (SPR) based on the 2nd NDB Open Data Japan from 2015. The correlation coefficients between the SPR of antihemorrhoidals and those of "antispasmodics," "antiarrhythmic agents," "antidiarrheals, intestinal regulators," "purgatives and clysters," "hypnotics and sedatives, antianxietics," "psychotropic agents," and "opium alkaloids preparations" were 0.7474, 0.7366, 0.7184, 0.6501, 0.6320, 0.4571, and 0.4542, respectively. The correlation coefficient between the SPR of antihemorrhoidals and those of "average annual temperature," "percentage of people who were smokers," and "percentage of people who drank regularly" were 0.7204, 0.6002, and 0.3537, respectively. The results of cluster analysis revealed that Hokkaido and Tohoku regions tended to have low average annual temperature values and high percentage of people who were smokers and had comparatively high SPRs of "antispasmodics," "antiarrhythmic agents," "antidiarrheals, intestinal regulators," "purgatives and clysters," "hypnotics and sedatives, antianxietics," "psychotropic agents," and "opium alkaloids preparations." Antihemorrhoidals are frequently used in Hokkaido and Tohoku, Japan; thus, it is important for these prefectural governments to focus on these factors when taking measures regarding health promotion.