Extracellular electrograms recorded during atrial fibrillation (AF) are challenging to interpret due to the inherent beat-to-beat variability in amplitude and duration. Phase mapping represents these voltage signals in terms of relative position within the cycle, and has been widely applied to action potential and unipolar electrogram data of myocardial fibrillation. To date, however, it has not been applied to bipolar recordings, which are commonly acquired clinically. The purpose of this study is to present a novel algorithm for calculating phase from both unipolar and bipolar electrograms recorded during AF. A sequence of signal filters and processing steps are used to calculate phase from simulated, experimental, and clinical, unipolar and bipolar electrograms. The algorithm is validated against action potential phase using simulated data (trajectory centre error < 0.8 mm); between experimental multi-electrode array unipolar and bipolar phase; and for wavefront identification in clinical atrial tachycardia. For clinical AF, similar rotational content (R (2) = 0.79) and propagation maps (median correlation 0.73) were measured using either unipolar or bipolar recordings. The algorithm is robust, uses standard signal processing techniques, and accurately quantifies AF wavefronts and sources. Identifying critical sources, such as rotors, in AF, may allow for more accurate targeting of ablation therapy and improved patient outcomes.