Question: how to get rid of cramps?
Answer: Over-the-counter pain medicine like ibuprofen (Advil), naproxen (Aleve), or acetaminophen (Tylenol). ... 
Exercise.
Putting a heating pad on your belly or lower back.
Taking a hot bath.
Having an orgasm (by yourself or with a partner).
Rest.