There is no single “best” medicine for stomach pain because the cause matters.
Seek urgent medical care now if pain is severe, worsening, localized to one spot, follows an injury, or occurs with fever, repeated vomiting, a swollen abdomen, black/bloody stool, vomiting blood, fainting, yellow skin/eyes, chest pain, pregnancy, or inability to pass stool/gas or urine. The
NHS gastritis guidance also advises medical review if stomach pain persists beyond a week, worsens, or keeps recurring.
If you tell me where the pain is, how long it has lasted, and whether you have vomiting, fever, diarrhea, constipation, or heartburn, I can narrow down the safest option.