> ## 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.

# Decoupling Rules

> Link a pin to its decoupling capacitor in DeepPCB, and remove decoupling rules you no longer need.

A decoupling rule ties a pin to the capacitor that decouples it, so the engine
keeps the pair close together during placement and routing.

## Review and Add Rules in Board Setup

**1. Open Decoupling**

Click **Setup** at the top of the board editor, then **Decoupling** under **Signal Integrity / Power**. Each rule ties one or more pins — a component and a pin number, such as **U4** pin **19** — to a capacitor pin. A rule can chain more than one capacitor: expand it to see each level, numbered **#1**, **#2**. The rules are checked on every run.

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

The decoupling rules, with one chain expanded to show its two levels.

**2. Add a rule**

Click **Add Capacitor Rule**. Pick the net first, then click **Next**. In **Add Decoupling Capacitor Rule**, choose the pin to decouple — **Add a Pin** for more than one — and the capacitor and its pin. Click **Apply** to add the rule, or **Back** to change the net.

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

Starting a +3V3 rule from C2 pin 1 to C10 pin 1 — then Close, so nothing is added.

**3. Edit or delete a rule**

Each rule has an edit button at the end of its row. **Delete** is inside the form it opens.

## Creating Decoupling Rules

1. Right-click the pin that needs a decoupling capacitor — a power pin on the part, for example — and select **Add Decoupling**.
2. The board greys out, leaving the capacitor pins on that pin's net. Click the capacitor pin to link it.
3. The new rule appears under **Decoupling Rules** in the side panel, for example **U3** pin **17** → **C7** pin **1**.
4. Click **Save** (the disk icon) in the toolbar. DeepPCB applies the change and saves it as a new revision.

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

Linking U3 pin 17 to capacitor C7, then Save — the rule is applied as a new revision.

## Removing Decoupling Rules

Method 1: Right-click

1. Right-click the component on the board.
2. Select **Remove All Decoupling** to remove every rule that component belongs to. On a single pin, **Remove Decoupling** removes just that pin's rules.

Method 2: From the side panel

1. Click the component on the board.
2. In the side panel under **Decoupling Rules**, click the trash icon next to the rule.

Both are pending edits until you click **Save**.

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

Remove All Decoupling on C7, then the trash icon on C9 — then Discard, so no rule is removed.

> [!NOTE]
>
> Chains with more than one capacitor level are ordered, and a `.json` rules file can replace the extracted rules wholesale — see [Decoupling Capacitors in Board Setup](https://docs.deeppcb.com/guides/board-setup.md#decoupling-capacitors).

> [!TIP]
>
> To check many rules quickly, ask Cooper to review them: it walks through the rules one card at a time, and you can highlight, accept or delete each from its card. See [Review Decoupling Rules with Cooper](https://docs.deeppcb.com/tutorials/how-to/cooper/decoupling-rules.md).


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