Ibuprofen is an NSAID used to treat fever and pain from arthritis, menstrual cramps, and muscular aches. It works by reducing inflammation. Ibuprofen is a generic medication, and is available both over-the-counter and by prescription depending on the strength. Prescription Motrin had the same active ingredient, but has been discontinued. Over-the-counter brands include Advil and Motrin IB. Ibuprofen should be used only when needed as it may increase risk of stroke or heart attack and long term use can cause stomach bleeding and ulcers.