Non-steroidal anti-inflammatory drugs (NSAIDs) reduce swelling and soreness and are often used alone for mild to moderate pain. To manage the moderate to severe pain after surgery, NSAIDs are often used in combination with opioids.