Gastrointestinal extracellular slow wave recordings are providing critical information about normal motility and pathophysiology of the gut. Processing the signals is an important adjunct to acquire clinically and physiologically meaningful analysis. In stomach and intestine in vivo slow wave recordings, ventilation (or respiratory) artifacts can be prominent, which hinders identification and analysis of slow wave profiles. Here, we introduce an algorithm to suppress these artifacts without distorting the slow wave morphology. The algorithm generates a cycle averaged ventilation signal by shifting the raw signal by its ventilation period. The cycle averaged ventilation signal is then subtracted from the slow wave recording. The algorithm was validated using signal to noise ratio (SNR) and Pearson correlation coefficient (PCC) on synthetic signals and SNR with experimental recordings. With synthetic data, SNR and PCC, improved by 7.29±1.14 dB and 0.23±0.15.With experimental data SNR improved by 2.66±0.60 dB. This method improves the slow wave signal content revealing a more accurate estimate of the slow wave morphology. The application of this method will lead to improved analysis of slow wave recordings to understand gut function.