Calcium carbonate is a dietary supplement used when the amount of calcium taken in the diet is not enough. Calcium is needed by the body for healthy bones, muscles, nervous system, and heart. Calcium carbonate also is used as an antacid to relieve heartburn, acid indigestion, and upset stomach. It is available with or without a prescription. This medication is sometimes prescribed for other uses; ask your doctor or pharmacist for more information.