The duration of bad breath after eating certain foods can vary depending on the individual and the type of food. However, strong odors from foods like garlic and onions can last for up to 72 hours. Drinking water and chewing sugar-free gum or mints can help alleviate the odor.