When to Use Straight-Through and Crossover Cables

Straight-through cables connect devices of different types (a computer to a switch), while crossover cables connect devices of the same type (a computer to another computer). The distinction comes down to how the transmit and receive signals are wired at each end of the cable, though modern equipment has largely made it automatic.

Why Two Cable Types Exist

Ethernet communication works by separating outgoing data (transmit) from incoming data (receive) onto different wire pairs. When you connect two different types of devices, like a computer to a switch, their ports are already designed so that one device’s transmit pins line up with the other’s receive pins. A straight-through cable, where both ends are wired identically, works perfectly here.

When you connect two identical devices, like two computers, both devices transmit on the same pins. If you use a straight-through cable, transmit connects to transmit and receive connects to receive, creating a signal conflict. A crossover cable solves this by swapping the transmit and receive wire pairs between the two ends, so each device’s outgoing signal arrives at the other device’s incoming pins.

When to Use a Straight-Through Cable

Straight-through cables are the standard choice for connecting devices with different roles in a network. These are the cables you’ll find in the vast majority of installations:

  • Computer to switch
  • Computer to router
  • Computer to network hub
  • Switch to router
  • Switch to hub

The general rule: if the two devices serve different functions in the network, use a straight-through cable. Both ends are wired using the same standard, typically T568B, where the pin order runs white/orange, orange, white/green, blue, white/blue, green, white/brown, brown. T568A is also valid and simply swaps the green and orange pairs. What matters is that both connectors on the cable use the same standard.

When to Use a Crossover Cable

Crossover cables are needed when connecting two devices of the same type directly to each other:

  • Computer to computer
  • Switch to switch
  • Hub to hub
  • Router to router

A crossover cable has T568A on one end and T568B on the other. This arrangement swaps the orange and green wire pairs between the two connectors, routing each device’s transmit signal to the other device’s receive pins. For 10 Mbps and 100 Mbps Ethernet, only two of the four wire pairs carry data, so only those two pairs need to be crossed.

Gigabit Ethernet (1000BASE-T) uses all four wire pairs for simultaneous two-way communication. A proper gigabit crossover cable crosses all four pairs, not just two. In practice, this distinction rarely matters today because of automatic detection (covered below), but it’s worth knowing if you’re making your own cables for older gigabit hardware.

Auto-MDIX Changed Everything

Most networking equipment manufactured in the last 15 years includes a feature called Auto-MDIX, which automatically detects whether a straight-through or crossover connection is needed and adjusts the pin assignments internally. This means you can plug a straight-through cable between two computers or two switches, and the devices will sort out the transmit/receive alignment on their own.

For the majority of home and office networks, you can use straight-through cables for everything and never think about crossover cables at all. Auto-MDIX is standard on virtually all modern consumer routers, switches, and computer network adapters.

Hardware That Still Needs Crossover Cables

Crossover cables remain relevant in specific situations. Older switches and routers manufactured before Auto-MDIX became standard can’t detect and correct the wiring automatically. Industrial equipment is another common case: programmable logic controllers (PLCs), SCADA systems, and embedded network interfaces often lack Auto-MDIX and require a physical crossover cable for configuration and communication. Test benches and diagnostic setups also frequently rely on crossover cables for direct device-to-device connections without a switch in between.

If you’re working with any equipment more than about 15 years old or with specialized industrial hardware, it’s worth keeping a crossover cable in your toolkit.

How to Tell Which Cable You Have

Hold both RJ45 connectors side by side with the clips facing the same direction. Look at the colored wires visible through the clear plastic. If the color sequence is identical on both ends, it’s a straight-through cable. If the wire colors are arranged differently, with the orange and green pairs swapped between the two ends, it’s a crossover cable. Some manufacturers print “crossover” on the cable jacket, but many don’t, so a visual check of the connectors is the most reliable method.

On a straight-through cable using T568B, both ends will show white/orange first. On a crossover cable, one end will show white/orange first (T568B) and the other will show white/green first (T568A).