Ethernet PHY PCB Layout: Differential Routing, Magnetics and RJ45
Ethernet PHY PCB Layout: Differential Routing, Magnetics and RJ45
An Ethernet port is more than a PHY placed beside an RJ45 connector. The MAC-to-PHY interface, MDI differential pairs, isolation magnetics, ESD protection and chassis connection all have different jobs. If the layout treats them as one continuous bundle of traces, it becomes harder to control signal integrity, emissions and isolation.
The most useful way to plan the board is to follow the signal path and keep the electrical boundaries visible: MAC or processor, PHY, magnetics, then the RJ45 connector. The exact routing rules depend on the PHY data sheet, interface mode, magnetics and selected connector. A 10/100 design and a gigabit design should not be assumed to share identical constraints.

Place the parts in signal-flow order
Start by placing the RJ45 at the board edge where the cable enters. If the design uses discrete magnetics, position them close to the connector and keep the isolation boundary clear. Place the PHY so the MDI pairs can reach the magnetics without unnecessary detours. Keep the digital MAC interface and its clocks on the processor side of the PHY, away from the analog cable-side routing where practical.
Integrated-magjack connectors change the physical arrangement, but they do not remove the need to follow the vendor's pinout, center-tap and shield recommendations. Use the magnetics manufacturer's reference circuit rather than assuming that every integrated connector has the same internal termination.
Separate the MAC interface from the cable-side MDI pairs
The MAC-to-PHY connection may use MII, RMII, RGMII, SGMII or another interface. Each has its own clocking and timing requirements. RGMII, for example, needs the required clock delay to be implemented in the intended place—inside the MAC, inside the PHY or through PCB timing—without accidentally applying it twice. Confirm the PHY strap settings and the processor interface requirements before routing.
The MDI pairs between the PHY and magnetics are a separate high-speed analog interface. Route each pair with consistent geometry and the impedance specified by the PHY and magnetics design guidance. A 100-ohm differential target is common, but the final value and tolerance should come from the actual device documentation and stack-up, not from a generic online rule.
Keep the differential path predictable
Route the positive and negative members of each pair together, with consistent spacing and no unnecessary branch stubs.
Keep the pair over a continuous reference plane. Do not cross a split or a plane void that forces return current to detour.
Use as few layer transitions as practical. If a transition is required, evaluate the via geometry and return path rather than treating the via as electrically invisible.
Follow the PHY manufacturer's length and skew limits. Do not automatically force all four Ethernet pairs to the same total length unless the device guidance requires it.
Keep unrelated clocks, switch-node copper and noisy power routes away from the MDI region.
Respect the magnetics isolation region
The transformer separates the PHY-side circuit from the cable-side interface. Preserve the isolation gap shown in the magnetics and connector reference design. Do not route copper, signals or mounting features through the barrier unless the approved design explicitly permits them. Some reference designs require a copper keepout under or around the magnetics; others specify particular chassis-ground or shield connections. Follow the exact component documentation.
Center-tap resistors, capacitors and common-mode components should be placed where the reference circuit expects them. Moving these parts far away can create longer loops and change the behavior of the interface. Do not add a common-mode choke or Bob Smith termination by habit: check whether the magnetics and RJ45 already include the relevant function.
Place ESD protection at the cable entry
External cable pins are exposed to handling and transient events. Put the selected protection device close to the connector and keep its return path short. The protection path should not force the transient current to travel across the PHY area before reaching its intended return. Confirm the TVS capacitance and working voltage against the PHY and interface requirements.
RJ45 shield and chassis-ground treatment is application-specific. Industrial equipment, consumer products and isolated network ports may have different enclosure and safety requirements. Define whether the shield connects directly to chassis, through a network or to a dedicated ground region, and coordinate the decision with EMC and mechanical design.
Check power, clock and strap details
Place each PHY supply bypass capacitor close to the corresponding power pin and follow the recommended capacitor values and bead or filter arrangement. Keep the reference clock short and away from the MDI pairs and switch-mode power nodes. Strap resistors and LED connections should not be allowed to compromise the PHY's startup configuration or reference-clock quality.
Review the board before release
| Review area | Evidence to check before fabrication |
|---|---|
| Interface mode | MAC/PHY interface type, clock direction, delay configuration and strap settings |
| MDI routing | Pair geometry, reference plane continuity, layer changes, via count and device-specific length/skew limits |
| Magnetics and RJ45 | Correct part numbers, center-tap circuit, isolation gap, shield and chassis treatment |
| Protection | TVS selection, connector proximity, low-inductance return and any required common-mode components |
| Power and clock | Local decoupling, supply filtering, oscillator placement and separation from noisy circuits |
| Validation | Link establishment, traffic under load, cable length, temperature, ESD and EMC tests as required |
Ethernet problems that appear only with a certain cable, enclosure or data rate are often system-level issues, not simply a routing error. Keep the PHY data sheet, magnetics reference design and mechanical interface together during review. FYPCB provides PCB layout services for industrial and communication products, including high-speed routing and manufacturing handoff. Share the PHY part number, interface mode and target connector when discussing a layout project.
Discuss Your Project with FYPCB
Share the PHY part number, MAC interface, magnetics and RJ45 selection, stack-up and routing constraints so the PCB layout scope can be reviewed against the actual Ethernet design.
WhatsApp / Tel: +86 157 7377 3732 | Email: [email protected]

Electronics Design & Development
PCB Design & Layout Services
PCB Fabrication & Prototyping
PCB Assembly & PCBA Services