Part 2 of 6 · Design a 2.45 GHz hairpin band-pass filter
Published Nov 28, 2026 · Last updated Nov 28, 2026 · 10 min · IndieRF
Hairpin Filter Coupling Coefficient: 1.05 mm Gap, Qe 21.7
The 3-pole, 0.1 dB hairpin filter at 2.44 GHz on 30 mil RO4350B needs a coupling coefficient of 0.0437 and an external Q of 21.7. Planar EM puts them at a 1.05 mm gap between hairpins and a tap 2.75 mm above the bar, on 1.6 mm lines with 16.4 mm arms.
Three hairpins of 1.6 mm line with 16.4 mm arms, 1.05 mm apart and fed by taps 2.75 mm above the bar, are the first cut of Part 1's 2.4414 GHz, 116 MHz filter on 30 mil RO4350B. The g-values ask for a coupling coefficient of 0.0437 between neighbouring hairpins and an external Q of 21.7 at each port, and Planar EM reads 0.0441 and 21.7 for those dimensions. The textbook coupled-line estimate would have put the gap at 1.45 mm and built a filter about a third too narrow.
Part 1 picked the order, bandwidth and board. Part 2 turns them into coupled hairpins and measures the coupling in Planar EM; Part 3 optimizes the whole filter in the schematic, Part 4 lays it out, Part 5 puts the EM result back into the schematic, and Part 6 builds it. Each EM step opens from its link, and you read two or three numbers off the result.
Two numbers describe the whole filter
A coupled-resonator filter is a row of resonators, all tuned to the centre frequency f0, that hand the signal along by coupling to their neighbours. Two numbers set its response. The coupling coefficient k is how hard one resonator pulls on the next, and it sets the bandwidth. The external Q (Qe) is how hard the source or the load damps an end resonator, and it sets how much ripple the filter keeps. Both come straight from Part 1's g-values and its fractional bandwidth, FBW = 0.047514:
These are Hong and Lancaster's design equations, with g0 = 1. The filter is symmetric, so both couplings match and so do both ends. The two lines are hand arithmetic, because Insert Filter stops at the lumped prototype.
A half-wave line, folded into a U
Each resonator is a microstrip line half a guided wavelength long, open at both ends. On 30 mil RO4350B the 50 Ω line from Part 1 is 1.620 mm wide with εeff 2.837 at 2.4414 GHz, so
Folding that line into a U halves its height. Each hairpin is 5.6 mm wide and 18.0 mm tall, three of them fit in 18.9 by 18.0 mm, and the arms of neighbouring hairpins run side by side, which is where they couple.
Three choices set the U:
- Line width 1.6 mm, a whole number of Planar EM's 50 µm cells and 0.02 mm under the 50 Ω width. The resonator keeps the Qu of 151 that Part 1 budgeted for, and the 50 Ω feed joins it with no step in width.
- Arm gap 2.4 mm, 1.5 times the width, so a hairpin's own two arms couple only weakly to each other.
- First arm length 15.4 mm, from setting the U's centre line to λg/2: two arms, two half-widths and the bar, (36.45 − 4.0 − 1.6) / 2 = 15.4 mm.
One hairpin in Planar EM sets the arm length
A 16.4 mm arm resonates at 2.4463 GHz, 4.9 MHz (0.2%) above f0. The straight-line estimate of 15.4 mm came in at 2.5854 GHz, 5.9% high: the U resonates as if its 38.4 mm centre line were 36.4 mm long, because the current cuts the two inside corners. I keep 16.4 mm because it sits on the editor's 0.1 mm snap, and Part 3 tunes the last 5 MHz.
| Arm | Resonance | Against 2.4414 GHz |
|---|---|---|
| 15.4 mm | 2.5854 GHz | +5.9% |
| 16.5 mm | 2.4332 GHz | −8.2 MHz |
| 16.4 mm | 2.4463 GHz | +4.9 MHz |
Each link feeds one hairpin weakly from both walls, through lines that stop 1.0 mm short of its arms, so S21 shows one narrow spike. The links carry the board lossless (tanδ 0 and perfect conductors) so the resonance is a clean pole; Part 4 puts the loss back. Planar EM has no hairpin part in Insert yet, so each U is three rectangles, already drawn in the link.
Open the Analysis tab and press Run: 1,687 unknowns, about 25 s on a four-core desktop. The warning under Run names the fit's resonance, "The fit puts a resonance at 2.4463 GHz", and Results shows the S21 spike there.
Two hairpins, two peaks: the coupling
A 1.05 mm gap between hairpins gives k = 0.0441, 1.0% above the 0.0437 target.
Put a second hairpin beside the first, flipped open end down, so the facing arms run side by side. Two identical resonators coupled together split into two resonances, one below f0 and one above, and the stronger the coupling, the further apart they land:
The 1.05 mm pair solves in about 90 s on a four-core desktop; at 2,518 unknowns, Run asks first. Planar EM has no k readout either. The two warnings under Run name the fit's resonances, 2.3934 and 2.5014 GHz, and Results shows them as two S21 peaks. Then k = (2.5014² − 2.3934²) / (2.5014² + 2.3934²) = 0.5286 / 11.985 = 0.0441.
| Gap | f1 | f2 | k |
|---|---|---|---|
| 0.60 mm | 2.35547 GHz | 2.54061 GHz | 0.07552 |
| 0.90 mm | 2.38368 GHz | 2.51159 GHz | 0.05222 |
| 1.05 mm | 2.39342 GHz | 2.50138 GHz | 0.04409 |
| 1.20 mm | 2.40123 GHz | 2.49314 GHz | 0.03754 |
| 1.50 mm | 2.41282 GHz | 2.48092 GHz | 0.02783 |
| 1.80 mm | 2.42078 GHz | 2.47257 GHz | 0.02116 |
Near 1 mm, k falls about 10% for every 0.1 mm of gap. Interpolating puts 0.0437 at 1.059 mm, and 1.05 mm is the nearest point on the 50 µm grid. The fab's ±0.02 mm etch on the gap moves k by ±2.2%, about ±2.6 MHz of bandwidth, small next to the ±15 MHz that εr moves the whole filter in Part 1. At every gap √(f1 f2) stays within 0.6 MHz of the single hairpin's 2.4463 GHz, so the split is all coupling.

The closed form is the reason for the EM step. Trace Studio's edge-coupled pair at 1.05 mm gives Z0e 55.0 Ω and Z0o 45.4 Ω, and the quarter-wave coupled-line estimate, k ≈ (2/π)(Z0e − Z0o)/(Z0e + Z0o), turns that into 0.0612. EM reads 72% of it, and 62% to 77% across the six gaps, because the arms are 81° long and offset from each other by a line width.
The tap sets the external Q
A tap centred 2.75 mm above the outer edge of the bar gives Qe = 21.66, 0.2% under the 21.71 target.
The 50 Ω feed joins the end hairpin's outer arm. A half-wave resonator has its voltage null halfway along the line, here in the bar, and the voltage rises toward the open ends. A tap near the bar sees a low impedance and loads the resonator lightly, so Qe is high; move the tap up the arm and the loading grows. Over 1.6 to 4.8 mm, Qe falls from 38.3 to 9.1.
One run gives Qe through the reflection's group delay, which peaks at τ = 4Qe/ω0 at resonance, so Qe = π f0 τ / 2. The 2.75 mm tap is one port and 1,470 unknowns, about 14 s. The board is lossless, so |S11| sits at 0 dB everywhere, and the resonance shows on the Phase plot as S11 turning through a full circle. Planar EM has no group delay: press Download .s1p on Results, open the file in the S-parameter Viewer, set the trace to Group delay and point at the peak: 5.646 ns at 2.46 GHz. The 4 mm feed line adds its own round trip, 2 × 4 mm × 1.6843 / c = 0.045 ns, so the resonator's delay is 5.60 ns and Qe = π × 2.461 GHz × 5.60 ns / 2 = 21.7.
| Tap | f0 | Qe from τ | Closed form |
|---|---|---|---|
| 1.60 mm | 2.4571 GHz | 38.31 | 27.16 |
| 2.40 mm | 2.4602 GHz | 25.66 | 16.60 |
| 2.75 mm | 2.4609 GHz | 21.66 | 13.88 |
| 2.80 mm | 2.4609 GHz | 21.06 | 13.55 |
| 3.20 mm | 2.4611 GHz | 17.43 | 11.29 |
| 4.00 mm | 2.4591 GHz | 12.31 | 8.26 |
| 4.80 mm | 2.4538 GHz | 9.10 | 6.37 |
Interpolating puts 21.71 at 2.745 mm, and 2.75 mm is on the grid. The closed form for a tapped half-wave line, Qe = (π/2)(Z0/Zr) / sin²(πt/L) with t the tap's distance from the voltage null along the centre line, reads 29% to 36% low at every tap and would have put the tap near 1.9 mm. The tap sits within 2 mm of the bend, where a one-dimensional line model has to guess which way round the corner the current flows.
The tap also pulls the resonance up, to 2.4538 to 2.4611 GHz against the untapped 2.4463 GHz, so the two end hairpins will want a slightly longer arm than the middle one. Part 3 sets it.

The first cut, and the fab check
| Dimension | Value | From |
|---|---|---|
| Board | RO4350B 0.762 mm, 1 oz, OSP, mask cleared over the filter | Part 1 |
| Line width, resonators and taps | 1.60 mm | the 50 Ω line |
| Gap between a hairpin's own arms | 2.40 mm | 1.5 W |
| Arm length, bar's inner edge to open end | 16.40 mm | one hairpin in EM |
| One hairpin, outside | 5.60 by 18.00 mm | |
| Gap, hairpin 1 to 2 and 2 to 3 | 1.05 mm | k from the pair |
| Tap centre above the bar's outer edge, hairpins 1 and 3 | 2.75 mm | Qe from the tap |
| Orientation | U, ∩, U, taps on the outer arms of 1 and 3 | |
| Filter footprint, without feed lines | 18.9 by 18.0 mm |
The smallest feature is the 1.05 mm gap, ten times the 0.10 mm minimum trace and space JLCPCB's capabilities page prints for 2-layer boards in 1 oz copper. Every dimension is a whole number of 50 µm cells, so Part 4 draws it in Planar EM with no rounding.
Each run above saw one effect at a time, so the first cut still carries four errors: the end hairpins sit 8 to 15 MHz high from their taps, every hairpin sits 4.9 MHz high from the arm snap, the middle hairpin is loaded by both neighbours at once, and each hairpin couples weakly to its second neighbour. Part 3 builds the whole filter in the schematic as a circuit of coupled lines and bends from these dimensions, and lets the optimizer move the arms, gaps and taps together.
References
- J.-S. Hong and M. J. Lancaster, Microstrip Filters for RF/Microwave Applications, Wiley, 2001: k and Qe from the g-values, k from split resonances, Qe from group delay.
- G. Matthaei, L. Young and E. M. T. Jones, Microwave Filters, Impedance-Matching Networks, and Coupling Structures, Artech House, 1980: the tapped half-wave resonator.
- D. M. Pozar, Microwave Engineering, 4th ed., Wiley, 2012: coupled-line band-pass filters.
- JLCPCB, PCB Manufacturing Capabilities: minimum trace and space, 1- and 2-layer boards.
Questions? Contact
Discussion
No comments yet. Start the thread with a measurement, a correction, or a worked example.