You can take painkillers for rib fracture pain, but you should follow your doctor’s instructions and not take them without permission. The main drugs to relieve rib fracture pain are non-steroidal anti-inflammatory and analgesic drugs, which have anti-inflammatory, analgesic and antipyretic effects, including celecoxib capsules, ibuprofen tablets, aspirin, acetaminophen, indomethacin, diclofenac sodium extended-release tablets, etoricoxib tablets, naproxen and other drugs. Since non-steroidal anti-inflammatory and analgesic drugs are more stimulating to the gastrointestinal tract, patients are advised to take them after meals, and they are not recommended for patients with peptic ulcers or active bleeding in the digestive tract. It should be noted that painkillers can only relieve temporary pain and have no effect on the healing of rib fractures. Patients are advised to protect the affected area from excessive activity, and if the pain is mild and the fracture is within 24 hours, they can first try ice packs.