When is stomach pH highest and why is it recommended to take nsaids with food if food in stomach actually triggers acid production? Thanks!

Gastric pH. Remember now on the pH scale, low pH is more acid, high pH is more alkaline. Your stomach is always an acidic environment but when more gastric fluid contents are elaborated the pH may be lower. When it is recommended to take medicine with food it is because it coats your stomach and can protect from the direct interaction of dissolved pharmaceuticals with the gastric mucosa. Talk w/pharmacist plz.