During pregnancy, the safest pain medication to take is acetaminophen (also known as Tylenol or paracetamol), which is recommended for mild to moderate pain such as headaches, muscle aches, and fever. It can generally be taken at recommended doses under a doctor's guidance. Nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and naproxen may be used cautiously during the first trimester for inflammatory pain but should be avoided from around 20 weeks onward, especially after 28 weeks, due to risks to the fetus such as kidney problems and premature closure of the ductus arteriosus. Opioids (including codeine, tramadol, morphine) may be considered for more severe pain but must be used cautiously and under strict medical supervision due to potential risks to both the mother and fetus. Aspirin is generally avoided except for low-dose forms prescribed for specific medical reasons because of bleeding risks. Overall, it is critical to consult a healthcare provider before taking any pain medication during pregnancy to ensure the safest choice and dose for both mother and baby.