Summarize this article:

When you can, try to keep your jaw in a relaxed position by opening your mouth just enough so that your teeth don't touch. This can relieve some of the pressure on the jaw that commonly causes clicking. If you notice yourself clenching your jaw or grinding your teeth, open your mouth slightly to stop creating excess pressure. If you wake up with pain in your jaw or teeth, then you may grind your teeth at night. Talk to your doctor about getting a mouth guard that you can wear while you sleep. You can also buy a mouth guard over-the-counter, which can be shaped to your mouth. Tight muscles around the jawline can contribute to clicking and cause pain around your mouth. Place your forefingers on any sore areas, press down gently, and move your fingers in small circular motions until you feel the muscles relax. Repeat the massaging motions with your mouth open and closed to help relax all of your jawline muscles. You can also use a clean finger to massage the inside of your mouth with the same techniques if you feel muscle tightness in that area. Clicking can be made worse when your jaw is inflamed. Taking a nonsteroidal anti-inflammatory drug (NSAID) such as naproxen or ibuprofen can help control pain and swelling, which in turn can reduce jaw clicking. TMJ doesn't require any special dosage for NSAIDs. Just take them as directed on the medicine package or as otherwise directed by your doctor. Calcium and magnesium can work together to promote muscle relaxation. Dissolve powdered magnesium and calcium together in water, juice, or your coffee each morning to help reduce jaw clicking. If you can't find the powdered version of these minerals, you can take capsule supplements. The powdered minerals are more readily absorbed by the body, though. Always talk to your doctor before you start a new supplement. They can help you check for any potential drug interactions or other risks and side effects based on your personal medical history.
Relax your jaw by opening your mouth slightly. Massage your jaw to relieve muscle tightness. Take an over-the-counter pain medication. Take 500 mg of calcium and 250 mg of magnesium every day.