Ibuprofen is what I usually use to treat a sunburn. It takes away both the pain and the redness because it is an anti-inflammatory. You'd think that the sunburn would come back once the medication wore off, but usually I just take one dose and my sunburn is gone completely.