The invention relates to a device for synchronizing a magnetic resonance unit with the cardiac rhythm of a patient, comprising a number of electrodes for leading off electrocardiogram signals from the body of the patient and an evaluation unit for determining a characteristic trigger time within a cardiac rhythm period of the patient from the electrocardiogram signals. In order to provide a device, which allows reliable determination of characteristic trigger times within the cardiac rhythm period of the patient even with elevated magnetic field strengths and which operates at least largely independently of external magnetic fields, it is proposed that the evaluation unit is designed to compare electrocardiogram signals obtained before and after the introduction of the patient into the magnetic resonance unit, in order to determine an enlargement of at least one characteristic of the electrocardiogram signals due to the magnetic field.