Sodium bicarbonate is an antacid used to relieve heartburn and acid indigestion. Your doctor also may prescribe sodium bicarbonate to make your blood or urine less acidic in certain conditions. This medication is sometimes prescribed for other uses; ask your doctor or pharmacist for more information.