Continuous wound infusion with local anesthesia is an effective method for reducing postoperative pain after laparoscopic colorectal surgery. However, most subcutaneous local anesthesia is delivered through continuous injection, which can be inconvenient for patients. This study compared the effectiveness of postoperative pain relief from the application of a local poloxamer 407-based ropivacaine hydrogel (Gel) to the incision site with continuous infusion-type ropivacaine administration (On-Q) in patients undergoing laparoscopic colorectal surgery. This prospective, randomized, non-inferiority study included 61 patients who underwent laparoscopic colorectal surgery with an incision length of 3-6 cm. All 61 patients were randomly assigned to the Gel group (poloxamer 407-based 0.75% ropivacaine, 22.5 mg) or the On-Q group (0.2% ropivacaine, 4 mg/hour for two days). Postoperative analgesia was induced in all patients with intravenous patient-controlled analgesia (IV-PCA). The outcome measures, which were assessed for 72 h after surgery, included the total amount of fentanyl consumed via IV-PCA (primary endpoint), and the amount of rescue analgesia (pethidine) and postoperative pain intensity assessed using a numeric rating scale (NRS) [secondary endpoints]. The Gel was administered to 31 patients and On-Q was used for 30 patients. There was no significant difference in the total usage of fentanyl between the two groups (Gel group, 1623.98 mcg; On-Q group, 1595.12 mcg; P = 0.806). There was also no significant difference in the frequency of analgesic rescue medication use (P = 0.213) or NRS scores (postoperative 6 h, P = 0.860; 24 h, P = 0.333; 48 h, P = 0.168; and 72 h, P = 0.655) between the two groups. The Gel, which continuously delivers a local anesthetic to operative sites, can thus be considered an effective device for analgesia and pain relief for midline incisions in laparoscopic colorectal surgery.