Serpentine Length-Match Calculator

Calculate serpentine trace geometry to match length between high-speed signals. Solves for number of loops, pitch, and added length.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Enter the length you need to add (mm).
  2. Enter straight-section length a and turn-amplitude b (how far the serpentine excursion goes).
  3. Enter trace width w and pitch spacing s (between serpentine turns).
  4. Tool returns the number of serpentine loops N needed, total footprint, and coupling factor.
Input
mm
mm
mm
mm
mm
Presets
Serpentine Layout
Loops N
—
Footprint
—mm²
Added Length
—mm
Gap/W ratio
—

Worked Example

A DDR data line is 10 mm shorter than its strobe, and there is room for serpentine loops 2 mm tall. Each loop adds 2 × 2 = 4 mm, so 10 ÷ 4 = 2.5 rounds up to 3 loops, adding 12 mm; shorten the last loop to land on 10 mm. With 1 mm straight sections and 0.5 mm spacing, the footprint is about 4.5 × 2.2 mm.

In time: 10 mm of stripline on FR-4 is about 69 ps, a large share of a fast DDR timing budget, which is why the match matters.

The common mistake: packing the turns tightly. With only 1.3 trace widths between segments the loops couple, the added delay falls short of the added length, and the impedance dips at every turn. Keep the gap at about 3 trace widths or more.

Show Work

Enter length + dimensions.

Formulas

Added per loop
ΔLloop = 2·b
Up + down excursion.
Loops needed
N = ΔL / (2·b)
Round up to integer.
Footprint length
Lf = N · (a + s)
Total along-trace extent.
Footprint width
Wf = b + w
Excursion + trace.
3W Rule
Gap ≥ 3W
Between adjacent serpentine turns.
Time ≈ Length
1 mm ≈ 6.5 ps (FR4)
Quick skew-to-length conversion.

History of Length Matching

Length matching became everyday PCB practice as memory and bus speeds climbed through the late 1990s and 2000s. Synchronous memory interfaces need data and strobe signals to arrive within a small fraction of a clock period of each other, which on a board means matching traces to within millimetres, and serpentine delay sections became the standard way to add the missing length.

Each DDR generation has tightened the allowed skew as clock periods have shrunk, and controller and memory vendors publish the exact matching rules for their parts. Modern ECAD tools (Altium Designer, Cadence Allegro, KiCad) include automatic length-tuning modes that generate serpentines to hit length targets within layout constraints.

The widely used 3W rule (a gap of at least three trace widths between adjacent segments) is a rule of thumb for keeping crosstalk low. Violating it causes visible self-crosstalk in the serpentine: TDR measurements show impedance dips at each turn where mutual coupling temporarily reduces the effective impedance.

About This Calculator

Enter the length that needs to be added (derived from your byte-lane timing target), plus serpentine geometry: excursion amplitude b, straight-section length a, trace width w, and pitch s. The tool computes the number of loops N = ceil(ΔL / 2b), total footprint size, and verifies the 3W gap rule.

For tight impedance control during length-matching, use the accordion or "snake" variants which minimize the number of 90° turns. For very tight matching (DDR5, PCIe Gen5, HDMI 2.1), consult your ECAD tool's built-in length-tuning function — it accounts for dielectric variation, fiber-weave effect, and trace-width tolerance that this first-pass tool can't. Everything runs client-side.

Frequently Asked Questions

Why length-match?

Parallel high-speed signals (DDR byte lanes, QSPI, SGMII, PCIe lanes) need to arrive at the receiver within a few picoseconds of each other. Different source-destination distances must be equalized with serpentine delay sections.

How close can turns be?

Rule of thumb: gap ≥ 3W to minimize self-crosstalk in the serpentine. Tighter coupling reduces effective added delay and causes impedance discontinuity at each turn.

Alternative topologies?

Accordion, trombone, zig-zag — different geometries trade off pitch vs. added length vs. impedance uniformity. Serpentine is the most compact for large length additions.

How much length does each loop add?

In this simple model each loop goes out by the amplitude b and comes back, adding 2b. The loop count is the needed length ÷ 2b, rounded up; the extra from rounding up can be trimmed by shortening the last loop.

Does a serpentine add exactly as much delay as its length?

Not quite. Coupling between closely spaced segments lets part of the signal shortcut the loops, so a tight serpentine adds a little less delay than its length suggests. Wider spacing, fewer and taller loops, or routing on an inner layer reduce the error.

How do I use the Serpentine Length-Match Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

DDR4 Byte Lane Match

Pair all data bits in a byte lane to ±5 ps (±0.75mm on FR4).

PCIe Lane Match

Within-lane ±5 mils (±0.127 mm); inter-lane ±25 mils typical.

HDMI / DP

Intra-pair ±5 ps; inter-pair ±25 ps typical.

Parallel Buses and Clocks

QSPI, RGB display and camera buses, and clock-forwarded links all need their lines matched to the clock or strobe within the interface's timing budget.

Last updated: