An EKG machine works by detecting the tiny voltage changes produced by heart muscle depolarization at the skin surface, amplifying them roughly 1,000-fold, filtering out noise, and converting the analog signal into a digital waveform displayed at standard paper speed and gain. Ten electrodes on the limbs and chest yield 12 views of the same electrical event, each governed by the relationship between an exploring electrode and a reference.
The machine itself is not diagnosing anything. It is a very sensitive voltmeter with a carefully defined time base, and most of its engineering exists to keep a millivolt-scale signal readable in a room full of electrical interference. Understanding that constraint explains nearly every design choice in a modern electrocardiograph.
The sensing chain from skin to waveform
Each electrode is a conductive pad that converts ionic current in the body into electron flow in a wire. The interface between metal and electrolyte is where the first design problem appears: a half-cell potential develops at that junction, and it drifts as the skin sweats or dries. Good contact reduces this drift, which is why skin preparation matters more than electrode brand.
The differential amplifier is the core of the machine. It measures the voltage difference between two inputs while rejecting the voltage common to both, a property quantified as the common-mode rejection ratio. Because 60 Hz power-line interference arrives equally at both inputs, a high rejection ratio removes it while preserving the cardiac signal. Modern electrocardiographs specify rejection ratios high enough to suppress interference that is many times larger than the heartbeat itself.
A typical cardiac signal at the skin is about 1 millivolt. The analog-to-digital converter needs that signal to span a useful fraction of its input range, so the amplifier applies fixed gain, historically calibrated so 1 millivolt deflects the tracing by 10 millimeters. That is the standard gain setting, and it is why a calibration pulse appears at the start of many tracings.
Filters then shape what survives. A low-pass filter removes muscle tremor and high-frequency noise. A high-pass filter removes baseline wander from respiration and movement. The machine also uses a notch filter tuned to the local power-line frequency to knock down interference, though excessive filtering can distort the very waveform the clinician is reading.
Digital conversion completes the chain. The signal is sampled at a fixed rate, stored as numbers, and reconstructed for display or printing. Once digitized, the machine can apply algorithms that detect QRS complexes, measure intervals, and generate interpretive statements, all of which are advisory rather than diagnostic.
What twelve leads actually measure
A lead is not a physical wire to the heart. It is a mathematical view defined by which electrodes are connected to which amplifier input. The limb leads use combinations of right arm, left arm, and left leg electrodes, plus a computed reference. The chest leads place an exploring electrode on the precordium and compare it to a weighted average of the limb electrodes.
This design means the same electrical event looks different in each lead. A wave that points toward an exploring electrode produces an upward deflection; one pointing away produces a downward deflection. The 12-lead set therefore localizes electrical activity in three-dimensional space rather than merely recording it.
| Lead group | Electrodes used | Primary view | Typical clinical use |
|---|---|---|---|
| I, II, III | RA, LA, LL pairs | Frontal plane | Axis, inferior injury |
| aVR, aVL, aVF | Augmented limb combinations | Frontal plane, enhanced | Reciprocal changes, axis |
| V1–V2 | Right precordium | Septal, right ventricle | Bundle branch block, septal events |
| V3–V4 | Mid precordium | Anterior wall | Anterior ischemia |
| V5–V6 | Left precordium | Lateral wall | Lateral ischemia, hypertrophy |
Placement errors change the math. A left-arm and right-arm swap inverts lead I and swaps aVR with aVL, producing a tracing that can mimic pathology. Precordial electrodes placed one intercostal space too high shift the transition zone and can distort QRS morphology. The machine cannot detect most of these errors because the voltages are internally consistent; they are simply measured from the wrong locations.
Timing, speed, and the numbers that define a tracing
The standard recording speed is 25 millimeters per second. At that rate, one small box on standard grid paper represents 0.04 seconds horizontally, and one large box represents 0.20 seconds. Amplitude calibration is 10 millimeters per millivolt, so one small box vertically equals 0.1 millivolts.
These two constants let a reader convert geometry into physiology. A PR interval of three to five small boxes corresponds to 0.12 to 0.20 seconds. A QRS complex narrower than three small boxes is under 0.12 seconds. The machine prints these values, but the constants behind them are what make the printout interpretable.
| Time point | What the machine records | Standard display |
|---|---|---|
| 0 ms | Baseline before atrial activity | Flat isoelectric line |
| ~80–120 ms | P wave, atrial depolarization | Small rounded deflection |
| ~120–200 ms | PR segment | Isoelectric pause |
| ~0–120 ms | QRS complex, ventricular depolarization | Sharp high-amplitude spike |
| ~120–400 ms | ST segment and T wave | Repolarization, often upright |
| ~400–440 ms | QT interval end | Return to baseline |
The counterintuitive detail is that the EKG records depolarization and repolarization, not contraction. Mechanical squeezing of the ventricles follows the electrical signal by tens of milliseconds. This is why a patient can have a completely normal electrical tracing and still have mechanical heart failure, and why a pulseless electrical activity arrest shows organized electrical activity on the monitor with no effective output.
Sampling rates matter for fidelity. A machine that samples too slowly can miss the sharpest part of the QRS and understate its amplitude or duration. Diagnostic electrocardiographs use sampling rates high enough to preserve QRS morphology, while some rhythm monitors in telemetry use lower rates and are not intended for interval measurement.
Artifacts, interference, and error modes
Baseline wander comes from respiration and electrode movement. It is low-frequency drift that pushes the whole tracing up and down, and the high-pass filter is designed to remove it. Set the filter too aggressively and the ST segment, which contains low-frequency information, begins to distort.
Muscle artifact is high-frequency noise from shivering or tension. It looks like a thickened, fuzzy baseline and can obscure small deflections. Relaxation and warmth reduce it more reliably than any filter setting.
Power-line interference appears as a uniform 60 Hz thickening in the United States. It usually signals a high-impedance electrode, a broken lead wire, or a poor ground. Replacing the electrode and checking the cable resolves most cases.
Lead reversal produces an internally consistent but anatomically wrong tracing; check limb lead labels before interpreting. Precordial electrodes placed too high or too low shift QRS transition and can mimic or hide infarction. Excessive low-pass filtering can smooth away pacemaker spikes and reduce apparent QRS amplitude. A machine interpretation of "normal" does not exclude ischemia, arrhythmia, or structural disease. Continuous monitoring leads are not equivalent to a diagnostic 12-lead and should not be used for formal interval measurement.
The professional caveat is that computerized interpretation is a screening aid. Automated readings of rhythm and intervals are generally reliable, but statements about infarction, ST elevation, and complex arrhythmias carry meaningful error rates and are overridden by trained readers in a substantial fraction of tracings. The machine is fast and tireless, not authoritative.
Practical steps for a clean recording
Prepare skin by clipping hair if needed and cleaning with an abrasive pad or alcohol wipe. Dry skin raises electrode impedance and increases noise. Apply electrodes firmly and check that gel has not dried out on older pads.
Place limb electrodes on fleshy areas rather than bony prominences to reduce movement artifact. Position precordial electrodes by anatomical landmark, not by eyeballing symmetric spacing, and document any deviation from standard placement.
Keep the patient still and warm during acquisition. Ask the patient to breathe normally; breath-holding changes the cardiac axis and can alter the tracing. For rhythm strips, extend recording long enough to capture intermittent events rather than relying on a single ten-second window.
Verify calibration and gain before interpreting. Confirm the speed setting matches the grid you are reading. If the tracing looks wrong in a way that is internally consistent, suspect lead misplacement rather than equipment failure.
Treat automated statements as prompts for human review. A machine flag of possible infarction should trigger careful reading and correlation with symptoms, not automatic action. Conversely, a normal automated reading should not terminate evaluation when the clinical picture is concerning.
What the machine cannot tell you
An EKG captures electrical activity over a short window, typically ten seconds for a standard 12-lead. Events that occur outside that window are invisible unless a longer rhythm recording is used. Paroxysmal arrhythmias may never appear on a resting tracing.
The tracing reflects the heart's electrical behavior, not its structure or pumping function. A normal EKG does not rule out coronary disease, valvular disease, or heart failure. An abnormal EKG does not by itself establish a diagnosis. The test is one input among history, examination, and imaging.
Filtering and processing have limits. Every filter is a tradeoff between noise rejection and waveform fidelity, and the settings that make a tracing look clean can alter the features a clinician needs to measure. That is why diagnostic-quality recordings use standardized filter settings rather than aggressive ones.
Finally, interpretation depends on context the machine does not have: age, prior tracings for comparison, medications that affect conduction, and the clinical question being asked. The most useful question is not whether the machine read the tracing correctly, but whether the recording was acquired and displayed under standardized conditions that make any reading meaningful.
The engineering answer to how an EKG machine works is a chain of precision: stable electrodes, a high-rejection differential amplifier, calibrated gain and time base, controlled filtering, and digitization. The clinical answer is that this chain produces a standardized electrical portrait whose value depends on placement, preparation, and human judgment at least as much as on electronics.