According to WebMD, aloe vera, cold compresses and over-the-counter medications for pain can help relieve the pain of a sunburn. It is important to drink plenty of water after getting a sunburn to treat dehydration.
Dehydration can occur after spending hours in the sun without protection. Headache and fever associated with sunburn and dehydration are treated with pain and fever reducers like ibuprofen or acetaminophen. The American Academy of Dermatology recommends lying a cold cloth over sunburned areas and applying aloe vera, or another moisturizer containing aloe vera, on the area. Moisturizers with alcohol or petroleum-based ingredients should be avoided, since these products can sting or trap the heat in, causing more discomfort. The Old Farmer's Almanac recommends home remedies that include rinsing the skin with apple cider vinegar or buttermilk, adding a few drops of lavender essential oil to cool bath water or rinsing skin with cooled chamomile tea.