Skip to content
Documentation sections

4-Layer PCB Stackup Impedance Calculator

POSThttps://rftools.io/api/py/v1/calculate

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.

Inputs of stackup-builder
NameUnitRangeDefaultDescription
targetImpedancenumberΩ25 … 15050Target characteristic impedance for trace width calculation
dielectricH1numbermm0.05 … 20.2Prepreg thickness between L1 (top) and L2
dielectricH2numbermm0.1 … 51.2Core thickness between L2 and L3
dielectricH3numbermm0.05 … 20.2Prepreg thickness between L3 and L4 (bottom)
copperWeightnumberoz0.5 … 31Copper foil weight (1 oz = 35 μm)
dielectricConstantnumbernone2 … 124.2Relative 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.

Outputs of stackup-builder
FieldUnitDescription
traceWidthL1mmheadlinemmTrace width for target impedance on L1 (surface microstrip over L2), solved from Hammerstad-Jensen with the copper thickness
traceWidthL3mmmmTrace 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)
totalThicknessMmmmThree 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.