
More than 1 million people in the United States undergo a total hip or total knee replacement each year. Since both procedures typically involve weeks of pain and recovery, surgeons often prescribe medication to help relieve discomfort.
Historically, opioids were a primary choice for controlling pain. But in more recent years, a “multimodal” approach with other, non-opioid pain relievers has become widely used.
“While opioids definitely have a role during and immediately after surgery, some patients can begin to take too much and become dependent on the narcotic medication,” says Cameron Ledford, MD, an orthopedic surgeon in Jacksonville, Florida. “But if you rely on several other alternative forms of pain-relieving medications to help, you can significantly reduce the amount of opioids in both the short and long term.”
With that in mind, here are some ways a multimodal approach works to ease pain.
Medication before surgery
Pain relief begins well before surgery starts.
“We give patients several medications such as acetaminophen, anti-inflammatories, and gabapentin (a nerve pain medication) a few hours before surgery, while they are sitting in the preoperative room,” explains Ledford. “It’s thought that taking them before the operation can blunt or even prevent the inflammatory cascade and pain reaction that occurs after the soft tissue injury or surgery. As a result, it can help proactively reduce some of the pain.”
Medication during surgery
General anesthesia is used to put a person in a state of deep sleep during a medical procedure, so they don’t feel pain. For hip and knee surgery, rather than relying strictly on general anesthesia, “we like to utilize spinal and regional anesthesia, since they can reduce the amount of opioids required during the procedure,” says Ledford.
He also recommends some form of local anesthetic, which involves an injection around the surgical joint area to block pain.
Medication after surgery
There are several types of pain medication a healthcare provider (HCP) might consider for recovery. They include the following.
Over-the-counter (OTC) acetaminophen and nonsteroidal anti-inflammatory drugs (NSAIDs)
NSAIDs are pain-relief medications that include OTC options like ibuprofen and naproxen, as well as prescription drugs like meloxicam and diclofenac.
Acetaminophen and NSAIDs are often used together as first-line treatment for mild to moderate acute pain, says Ledford. Frequently, a patient is put on a schedule alternating use of one or the other every few hours. “They have a synergistic effect as both have different mechanisms of action,” explains Ledford. “The acetaminophen is a general pain reliever, while the NSAID is an anti-inflammatory.”
COX-2 inhibitors
COX-2 inhibitors are more selective forms of NSAIDs with potentially fewer side effects. These prescription medications work by blocking a specific enzyme, COX-2, which is responsible for making prostaglandins, chemicals that trigger inflammation or pain.
They can be used in place of the non-selective NSAID in an acetaminophen-NSAID combination. Generally, you alternate the use of a COX-2 inhibitor with acetaminophen.
Nerve pain medications
Drugs such as gabapentin (Neurontin) or pregabalin (Lyrica) can help calm neuropathic, or nerve-related, pain stemming from the surgery. “This isn’t something we routinely schedule, like acetaminophen and NSAIDs, but it’s there if patients need it,” says Ledford.
Opioids
If other medication options don’t effectively manage pain, HCPs commonly prescribe opioids.
Some patients will need to be on opioids for severe pain for a little while after surgery, explains Ledford, “but some won’t require them after that if they rely on the tiers of drugs described above.”
Opioids are not intended for long-term use after knee and hip surgery. To prevent dependence, HCPs typically prescribe the lowest effective dose and then, if needed, take care to wean patients off the drugs.
Staying as active as possible post-surgery
Before you leave the hospital, you’ll need to show you can do certain things such as getting in and out of bed alone and walking with an assistive device like a cane or walker.
“Ideally, you want to be standing and even taking a few steps the same day, after having your surgery,” says Ledford.
Once you’re home, it’s important to follow any prescribed exercises and to start physical therapy as soon as your surgeon tells you to.
“The more you get up and move safely within reason, the more you’ll start building muscle strength and endurance again,” adds Ledford.
Sources: MedlinePlus. Knee Replacement. December ... + 17
- MedlinePlus. Knee Replacement. December 26, 2023.
- MedlinePlus. Hip replacement – discharge. November 7, 2024.
- American College of Rheumatology. Joint Replacement Surgery. March 2025.
- Hannon CP, Hamilton WG, et al. Multimodal Analgesia and Small Opioid Prescriptions are the New Standard in Total Joint Arthroplasty: A Survey of the American Association of Hip and Knee Surgeons Membership. J Arthroplasty. 2025 Mar;40(3):566-572.e4.
- MedlinePlus. Opioids and Opioid Use Disorder (OUD). March 27, 2024.
- Hannon CP, Fillingham YA, et al. Opioids in Total Joint Arthroplasty: The Clinical Practice Guidelines of the American Association of Hip and Knee Surgeons, American Society of Regional Anesthesia and Pain Medicine, American Academy of Orthopaedic Surgeons, Hip Society, and Knee Society. J Arthroplasty. 2020 Oct;35(10):2709-2714.
- Fillingham YA, Hannon CP, et al. Acetaminophen in Total Joint Arthroplasty: The Clinical Practice Guidelines of the American Association of Hip and Knee Surgeons, American Society of Regional Anesthesia and Pain Medicine, American Academy of Orthopaedic Surgeons, Hip Society, and Knee Society. J Arthroplasty. 2020 Oct;35(10):2697-2699.
- American Society of Anesthesiologists. Outpatient Surgery. Accessed August 14, 2026.
- American Academy of Orthopaedic Surgeons. AAOS Updates Clinical Practice Guideline for Surgical Management of Osteoarthritis of the Knee. January 10, 2023.
- American Association of Hip and Knee Surgeons. How to Relieve Pain After Hip Surgery. Accessed August 14, 2026.
- Queremel Milani DA, Davis DD. Pain Management Medications. 2023 Jul 3. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2026 Jan–.
- Qureshi O, Dua A. COX Inhibitors. 2024 Feb 28. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2026 Jan–.
- MedlinePlus. Gabapentin. May 15, 2020.
- Hannon CP, Fillingham YA, et al. Corticosteroids in Total Joint Arthroplasty: The Clinical Practice Guidelines of the American Association of Hip and Knee Surgeons, American Society of Regional Anesthesia and Pain Medicine, American Academy of Orthopaedic Surgeons, Hip Society, and Knee Society. J Arthroplasty. 2022 Sep;37(9):1684-1687.
- Dowell D, Ragan KR, et al. CDC Clinical Practice Guideline for Prescribing Opioids for Pain — United States, 2022. MMWR Recomm Rep 2022;71(No. RR-3):1–95.
- MedlinePlus. Safe Opioid Use. March 27, 2024.
- MedlinePlus. Hip or knee replacement – in the hospital after. September 2, 2025.
- American Academy of Orthopaedic Surgeons. Total Knee Replacement. Accessed August 14, 2026.

