Electroencephalography (EEG) is widely used in clinical applications and basic research. Dry EEG opened the application area to new fields like self-application during gaming and neurofeedback. While recording, the signals are always affected by artefacts. Manual detection of bad channels is the gold standard in both gel-based and dry EEG but is timeconsuming. We propose a simple and robust method for automatic bad channel detection in EEG. Our method is based on the iterative calculation of standard deviations for each channel. Statistical measures of these standard deviations serve as indications for bad channel detection. We compare the new method to the results obtained from the manually identified bad channels for EEG recordings. We analysed EEG signals during resting state with eyes closed and datasets with head movement. The results showed an accuracy of 99.69 % for both gel-based and dry EEG for resting state EEG. The accuracy of our new method is 99.38 % for datasets with the head movement for both setups. There was no significant difference between the manual gold standard of bad channel identification and our iterative standard deviation method. Therefore, the proposed iterative standard deviation method can be used for bad channel detection in resting state and movement EEG recordings.