You should take pain medicine when you are experiencing pain that affects your quality of life or daily functioning. It's important to follow your healthcare provider's recommendations regarding the timing and dosage of pain medication.