> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deeppcb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Differential Pairs

> Declare a differential pair in DeepPCB so the engine routes the two nets together with matched length and a controlled gap.

A differential pair tells the engine that two nets travel together — matched in length, held at a fixed gap. Declare them for USB, HDMI, DDR, Ethernet, and anything else where the pair is the signal.

> [!TIP]
>
> Cooper can review the board's pairs and flag the ones worth correcting — see [Review Differential Pairs](https://docs.deeppcb.com/tutorials/how-to/cooper/differential-pairs.md).

## Pair Two Nets in Board Setup

**1. Open Differential Pairs**

Click **Setup** at the top of the board editor, then **Differential Pairs** under **Nets**. The table lists every pair on the board with its **First Net**, **Second Net** and **Gap (mm)**. The engine treats the two nets of a pair as one route with two conductors, rather than two routes that happen to be near each other.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/diffpairs-table.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=915b36c20c8beb5264c1cb8f64dac758" />

The Differential Pairs tab: each pair with its two nets and gap.

**2. Make a pair**

Click **New Differential Pair**. In **Add Differential Pair**, choose the **First Net** and the **Second Net** — nets that are already in a pair are not offered — and set the **Gap (mm)** between them. The gap comes from the part you are routing to, not from preference.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/diffpairs-new.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=5ddb2865dcc4f53f26cca48114f7f424" />

Pairing NRF\_ANT1 with NRF\_ANT2 at a 0.2 mm gap — then Cancel, so nothing is added.

**3. Apply**

Click **Apply** to add the pair; **Cancel** throws it away. Applying a pair changes nothing on the board itself — it takes effect from the next run you start.

## Pair Two Pins on the Board

Faster when you can see the pair in front of you:

1. Right-click one of the two pins.
2. Select **Pair with pin**. The board greys out, leaving the pins you can pair it with.
3. Click its partner. The pin's details now show **Paired with** and the **Gap**.

**Pair with pin** is available on a pin whose nets already form a pair but whose pins are not matched yet.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/diffpairs-pins.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=63670095babb366c12a40a9464af7419" />

Pairing U2-1 with U2-3, with the Differential Pairs highlight on — then discarded, so nothing is saved.

To exclude pins, or change which pins are paired with which, refine the pair at pin level in [Board Setup](https://docs.deeppcb.com/guides/board-setup.md#differential-pairs).

## Route a Pair Single-Ended

To undo a pairing and have the two nets routed independently:

1. Right-click a pin belonging to the pair.
2. Select **Route Single-Ended**.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/diffpairs-single-ended.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=9de19c4c710a15917b6a23624bde108b" />

Route Single-Ended on U2-6 — then discarded, so the pair is kept.

Both pin-level changes are pending edits: click **Save** (the disk icon) in the toolbar to keep them, or **Discard** to throw them away. See [Undo, Save and Discard](https://docs.deeppcb.com/tutorials/how-to/undo-save-discard.md).

> [!NOTE]
>
> DeepPCB reads differential pairs already defined in your EDA tool, so most pairs arrive with the board — tag them there and this becomes a review step. See [Prepare Board File](https://docs.deeppcb.com/guides/prepare-board-file.md).

> [!TIP]
>
> Pairs carry more weight if the nets are also classified as **HIGH\_SPEED** in [Net Types](https://docs.deeppcb.com/tutorials/how-to/net-types.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.