Documentation sections
4-Layer PCB Stackup Impedance Calculator
Slug stackup-builder. Calculate trace widths for a target impedance on a 4-layer PCB stackup: microstrip on L1 over the L2 plane, stripline on L3 between the L2 and L4 planes. Enter the dielectric heights, dielectric constant and copper weight for 50 ohm or a custom Z0. Free, instant results.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| targetImpedancenumber | Ω | 25 … 150 | 50 | Target characteristic impedance for trace width calculation |
| dielectricH1number | mm | 0.05 … 2 | 0.2 | Prepreg thickness between L1 (top) and L2 |
| dielectricH2number | mm | 0.1 … 5 | 1.2 | Core thickness between L2 and L3 |
| dielectricH3number | mm | 0.05 … 2 | 0.2 | Prepreg thickness between L3 and L4 (bottom) |
| copperWeightnumber | oz | 0.5 … 3 | 1 | Copper foil weight (1 oz = 35 μm) |
| dielectricConstantnumber | none | 2 … 12 | 4.2 | Relative permittivity of the board material at design frequency |
Retired, still accepted and ignored with a warning: layerCount (Layer Count, 2026-10-12).
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| traceWidthL1mmheadline | mm | Trace width for target impedance on L1 (surface microstrip over L2), solved from Hammerstad-Jensen with the copper thickness |
| traceWidthL3mm | mm | Trace width for target impedance on L3 (stripline between the L2 and L4 planes, H2 and H3 away), solved from the asymmetric-stripline model |
| achievedImpedanceL1 | Ω | Impedance of the L1 trace at the reported width (Hammerstad-Jensen, with t) |
| achievedImpedanceL3 | Ω | Impedance of the L3 trace at the reported width (asymmetric stripline between L2 and L4) |
| totalThicknessMm | mm | Three dielectric layers and four copper layers: H1 + H2 + H3 + 4·t |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.