There are two types of over-the-counter (OTC) back pain medication available: analgesics (pain relievers) and muscle relaxants.
All analgesics available without a prescription relieve pain. Some, including nonsteroidal anti-inflammatory drugs like ibuprofen and naproxen, also helps reduce the inflammation (swelling).
Muscle relaxants help loosen and relax muscles. Since their effect tends to be limited, they are often used in conjunction with a pain reliever.
Due to the precautions and contraindications associated with pain relievers and muscle relaxants, it is best to consult your pharmacist before using them, especially if you are taking medication for other health problems.
Your pharmacist will assess the cause, severity and time of onset of your pain, and your current state of health, to recommend a product that is suited to your needs and compatible with any other medication you may already be taking. They may refer you to a doctor, as needed.