Your stomach may produce more acid when you drink coffee on an empty stomach causing heartburn, warns Rob Hobson, registered nutritionist at Healthspan. Your stomach may produce more acid when you drink coffee on an empty stomach causing heartburn, warns Rob Hobson, registered nutritionist at Healthspan.