Reference

Ethernet cable color code: T568B and T568A

Updated

The pin order for an RJ45 (8P8C) plug or jack under both TIA-568 wiring schemes, with the pair each wire belongs to and what it carries at 10/100 and gigabit. The card below prints on one page.

Straight-through or crossover

A straight-through cable has the same scheme on both ends (T568B to T568B, or A to A). It's the cable for nearly everything.

CableEnd 1End 2When you need it
Straight-through (patch)T568BT568B (or A to A)Almost always: computer to switch, switch to switch, patch panel to switch, and any two ports with Auto-MDI-X.
Crossover (10/100)T568BT568ATwo like devices (PC to PC, switch to switch) where neither port has Auto-MDI-X. Swaps pins 1↔3 and 2↔6: the orange and green pairs.
Gigabit crossoverT568BT568A, plus blue and brown swappedHardly ever. Also swaps 4↔7 and 5↔8. Gigabit ports sort out the pair order themselves.

Auto-MDI-X lets a port detect which pairs the other end transmits on and swap its own transmit and receive to match. Practically every gigabit port has it, as do many newer 10/100 ports, so a straight-through cable works between any two of them. Keep crossover cables out of the cabling plant: they're easy to mistake for patch cords.

Not to be confused with a rollover (console) cable, which reverses all eight pins (1↔8, 2↔7 and so on) for a router or switch serial console. It isn't an Ethernet cable.

T568A or T568B: which to use

TIA-568 allows both, and they perform the same. What matters is being consistent.

PoE: which pairs carry power

Power over Ethernet rides on the same pairs as the data, so gigabit and PoE work together. The power sourcing equipment (PSE, usually the switch) uses one of two pair sets, or both.

ModePinsPairs (T568B colors)Notes
Mode A (Alternative A)1-2 and 3-6Orange and greenThe pairs that carry 10/100 data.
Mode B (Alternative B)4-5 and 7-8Blue and brownThe pairs 10/100 leaves unused.
4-pairAll eightAll four802.3bt: Mode A and Mode B at the same time.
StandardPSE outputAt the devicePairs used
802.3af (Type 1, "PoE")15.4 W12.95 W2 (Mode A or B)
802.3at (Type 2, "PoE+")30 W25.5 W2 (Mode A or B)
802.3bt Type 360 W51 W2 or 4
802.3bt Type 490 W71.3 W4

A standards-based powered device accepts power on either pair set and in either polarity, so the wiring scheme (A or B) doesn't matter for PoE. Some older "passive PoE" injectors put fixed voltage on the spare pairs without any detection: check before plugging them into anything else.

Common mistakes

Questions

What is the T568B color code?

Pins 1 to 8: white/orange, orange, white/green, blue, white/blue, green, white/brown, brown. Pin 1 is on the left when you look at the plug's gold contacts with the clip on the far side and the cable hanging down.

What is the T568A color code?

Pins 1 to 8: white/green, green, white/orange, blue, white/blue, orange, white/brown, brown. It is T568B with the orange and green pairs swapped.

Is T568A or T568B better?

Neither. They perform the same; only the orange and green pairs trade places. T568B is the most common in US commercial buildings, T568A is the one called for in homes by TIA-570 and is common on US government work. Use the same one on both ends and across the site, and follow the project spec when there is one.

Do I still need a crossover cable?

Rarely. Almost every gigabit port and most newer 10/100 ports have Auto-MDI-X: they detect the pair order and swap transmit and receive themselves, so a straight-through cable works between any two devices. A crossover cable (T568A on one end, T568B on the other) only matters with old 10/100 equipment that lacks Auto-MDI-X.

Are Cat5e, Cat6 and Cat6A wired differently?

No. The color code and pin order are the same for every category. What changes is the cable and connectors, and how carefully you terminate: keep the twist to within 13 mm (0.5 in) of the contacts.

Which pins does PoE use?

Mode A puts power on pins 1-2 and 3-6, Mode B on pins 4-5 and 7-8. 802.3af and 802.3at use one of the two; 802.3bt Type 3 can use two or four pairs and Type 4 always uses all four. Power rides on the same pairs as the data, so gigabit and PoE work together.

Document the cabling, not just the colors

In NetworkSketch, every link is a cable with an interface at each end, a media type and a speed, and the PDF export includes a cabling schedule. Running fiber too? See the fiber optic color code chart.

Try it, no signup