Abstract: The system and method discriminates P-waves or other electrical events originating in the atria from R-waves or other electrical events originating in the ventricles. In one example, far-field R-waves in the atria are distinguished from true P-waves using both a post-ventricular atrial blanking (PVAB) interval and a separate pre-ventricular blanking interval (pre-VAB) interval. Insofar as the pre-VAB interval is concerned, upon detection of a P-wave in the atria, the implantable medical device begins tracking a pre-VAB interval. If an R-wave is then detected in the ventricles during the pre-VAB interval, the P-wave is rejected as being a far-field R-wave. A PVAB interval may also be employed to filter out any P-waves detected in the atria immediately following detection of an R-wave in the ventricles. In another example, far-field R-waves are distinguished from true P-waves using template matching. P-waves detected in the atria are compared against a template representative of true P-waves.