Disclosed are compositions for transdermal administration of ibuprofen or salts thereof, comprising: ibuprofen in an amount between about 1% and about 30% by weight of the composition; a gelling agent selected from the group consisting of methyl cellulose, ethyl cellulose, hydroxycellulose, hydroxyethyl cellulose, hydroxypropyl cellulose, hydroxypropylmethyl cellulose, and mixtures thereof; water; isopropyl myristate; and a non-volatile solvent, wherein the composition has an apparent pH of 7.0. Also disclosed is the use of the compositions for the preparation of a topical composition for the treatment of pain or inflammation.