Throwing up yellow bile can be caused by a number of different circumstances, including a malfunctioning pyloric valve, a respiratory infection or excessive dehydration.
No matter which of these conditions you think you may have, it's always best to see a doctor if you are vomiting with no apparent cause. We are not doctors, and any information obtained here is for reference purposes only.
• Respiratory Infection: An infection can cause a person to vomit yellow mucus, if the body is producing a great deal of mucus and can't expel it through coughing or sneezing. If you think this is your condition, you can try to thin the mucous by using various medications, and by drinking plenty of fluids. Seeking medical attention is recommended, because vomiting mucous could be a sign of a more serious respiratory infection such as pneumonia or bronchitis.
• Malfunctioning Pyloric Valve: The pyloric valve, which regulates bile, can malfunction for several reasons. This occurs most often in older adults. Bile is yellow, and this can account for vomiting a yellow substance. See a doctor to find out why this valve is not functioning as it should.
• Severe or Excessive Dehydration: The yellow substance could also be stomach acid, which normally contains a small amount of bile without there being any malfunction present. Vomiting in this manner is most common among heavy drinkers of alcohol, as the stomach lining becomes severely irritated at the same time that the body becomes dehydrated. If this is your condition, cutting back on alcohol will almost certainly improve the situation. In the meantime, to lessen discomfort, drinks designed to hydrate the body quickly can provide some relief.
Remember that vomiting can be a symptom of some very serious conditions, and a doctor's opinion should always be sought. This is especially true if the vomit is a strange color, or if it's accompanied by other symptoms such as fever, chest pain or confusion.