RunMat
  • Pricing
RunMat
GitHub
GitHub
Sign inTry in browser
DesktopRuntimePhysicsCADAdministrationAgent

Get RunMat updates

New releases, guides and examples.

Product+
  • Runtime
  • GPU
  • Parallel
  • Compile
  • Interop and MEX
  • Simulation
  • MCAD
  • ECAD
  • Enterprise
  • AI integrations
  • Pricing
  • Download
Math+
  • Signal processing
  • Linear algebra
  • Statistics
  • Curve fitting
  • Differential equations
  • Control systems
  • Optimization
  • Finance
  • Data and tables
  • Plotting
Physics+
  • Simulation overview
  • Structural
  • Thermal
  • Electromagnetic
  • Joule heating
  • Thermal stress
  • Acoustics
  • Fluid flow
  • Conjugate heat transfer
  • Fluid–structure
  • What is FEA
Industries+
  • Aerospace
  • Automotive and transportation
  • Defense
  • Electronics and semiconductors
  • Energy
  • Industrial machinery
  • Life sciences
  • Quantitative finance
Learn+
  • Guides
  • Docs
  • Function reference
  • Language reference
  • Migration guide
  • Changelog
  • MATLAB Online
  • MATLAB AI agent
  • For students
Compare+
  • RunMat vs MATLAB
  • RunMat vs Ansys
  • RunMat vs SOLIDWORKS
  • RunMat vs Altium
  • RunMat vs Cadence
  • RunMat vs COMSOL
  • RunMat vs Python
  • RunMat vs Julia
  • RunMat vs Physics AI
  • RunMat vs Octave
  • Benchmarks
  • MATLAB alternatives
  • All comparisons
Company+
  • About
  • Blog
  • Contact
  • Source code↗
  • License
  • Privacy
  • Terms

Product

  • Runtime
  • GPU
  • Parallel
  • Compile
  • Interop and MEX
  • Simulation
  • MCAD
  • ECAD
  • Enterprise
  • AI integrations
  • Pricing
  • Download

Math

  • Signal processing
  • Linear algebra
  • Statistics
  • Curve fitting
  • Differential equations
  • Control systems
  • Optimization
  • Finance
  • Data and tables
  • Plotting

Physics

  • Simulation overview
  • Structural
  • Thermal
  • Electromagnetic
  • Joule heating
  • Thermal stress
  • Acoustics
  • Fluid flow
  • Conjugate heat transfer
  • Fluid–structure
  • What is FEA

Industries

  • Aerospace
  • Automotive and transportation
  • Defense
  • Electronics and semiconductors
  • Energy
  • Industrial machinery
  • Life sciences
  • Quantitative finance

Learn

  • Guides
  • Docs
  • Function reference
  • Language reference
  • Migration guide
  • Changelog
  • MATLAB Online
  • MATLAB AI agent
  • For students

Compare

  • RunMat vs MATLAB
  • RunMat vs Ansys
  • RunMat vs SOLIDWORKS
  • RunMat vs Altium
  • RunMat vs Cadence
  • RunMat vs COMSOL
  • RunMat vs Python
  • RunMat vs Julia
  • RunMat vs Physics AI
  • RunMat vs Octave
  • Benchmarks
  • MATLAB alternatives
  • All comparisons

Company

  • About
  • Blog
  • Contact
  • Source code↗
  • License
  • Privacy
  • Terms
GitHubXLinkedIn

© Dystr, Inc. · RunMat v0.7.1, Nov 17, 2026

RunMat® is a registered trademark of Dystr, Inc. MATLAB® is a registered trademark of The MathWorks, Inc. RunMat is not affiliated with, endorsed by, or sponsored by The MathWorks, Inc.

/
    • Overview
    • Structural
    • Thermal
    • Electromagnetic
    • Trace impedance
    • Acoustics
    • Fluid flow
    • Thermal stress
    • Joule heating
    • Conjugate heat transfer
    • Fluid–structure
Docs>Physics>Physics

Trace impedance

A trace-impedance study computes the transmission-line parameters of a printed circuit board trace from its cross-section: the characteristic impedance Z0Z_0Z0​, the effective permittivity εeff\varepsilon_\text{eff}εeff​, the propagation delay per length, and the per-length capacitance and inductance matrices. For a differential pair it also gives the differential and common-mode impedances, the odd- and even-mode impedances and the near- and far-end coupling coefficients. The cross-section comes from the board stackup: layer thicknesses and Dk, copper thickness, trace width and etch angle, solder mask and reference planes.

The study is an electromagnetic line_parameters analysis on a cross_section geometry. It publishes these outputs:

OutputSymbolUnit
impedanceZ0Z_0Z0​ per signal conductorΩ
effective_permittivityεeff\varepsilon_\text{eff}εeff​ per signal conductor1
delaytdt_dtd​ per lengths/m
capacitance, vacuum_capacitanceC\mathbf CC, C0\mathbf C_0C0​F/m
inductanceL\mathbf LLH/m
differential_impedance, common_mode_impedance, odd_mode_impedance, even_mode_impedanceZdiffZ_\text{diff}Zdiff​, ZcommZ_\text{comm}Zcomm​, ZoddZ_\text{odd}Zodd​, ZevenZ_\text{even}Zeven​Ω
odd_mode_effective_permittivity, even_mode_effective_permittivitymodal εeff\varepsilon_\text{eff}εeff​ of a pair1
odd_mode_delay, even_mode_delaymodal tdt_dtd​ of a pairs/m
near_end_coupling, far_end_couplingKbK_bKb​, KfK_fKf​1

This version is lossless. Conductor loss from skin depth and dielectric loss from the loss tangent (resistance and conductance per length, and attenuation) are a separate output Not yet releasedStatus.

A 50 Ω microstrip and a 100 Ω pair

The study below sizes a single-ended microstrip and an edge-coupled differential pair on the top layer of a four-layer board. The top copper is 35 µm (1 oz) under 20 µm of solder mask, on 0.2 mm of prepreg (Dk 4.1) over the ground plane on In1.Cu. The etch leaves 60° sidewalls.

geometry single_ended {
    cross_section {
        layer "F.Mask" : solder_mask { thickness = 20 um; permittivity = 3.8 }
        layer "F.Cu" : signal { thickness = 35 um }
        layer "dielectric 1" : dielectric { thickness = 0.2 mm; permittivity = 4.1 }
        layer "In1.Cu" : plane { thickness = 35 um }
        trace line : signal { layer = "F.Cu"; width = 0.36 mm; etch_angle = 60 deg }
    }
}

geometry pair {
    cross_section {
        layer "F.Mask" : solder_mask { thickness = 20 um; permittivity = 3.8 }
        layer "F.Cu" : signal { thickness = 35 um }
        layer "dielectric 1" : dielectric { thickness = 0.2 mm; permittivity = 4.1 }
        layer "In1.Cu" : plane { thickness = 35 um }
        trace p : signal { layer = "F.Cu"; center = -0.2 mm; width = 0.23 mm; etch_angle = 60 deg }
        trace n : signal { layer = "F.Cu"; center = 0.2 mm; width = 0.23 mm; etch_angle = 60 deg }
    }
}

mesh single_ended on geometry.single_ended { triangles {} }
mesh pair on geometry.pair { triangles {} }

study microstrip {
    geometry = geometry.single_ended
    mesh = mesh.single_ended
    analysis line { electromagnetic line_parameters {} }
    output z0 = analysis.line.impedance.line
    output eps_eff = analysis.line.effective_permittivity.line
    output delay = analysis.line.delay.line
}

study differential_pair {
    geometry = geometry.pair
    mesh = mesh.pair
    analysis lines { electromagnetic line_parameters {} }
    output z_diff = analysis.lines.differential_impedance
    output z_common = analysis.lines.common_mode_impedance
    output next = analysis.lines.near_end_coupling
    output fext = analysis.lines.far_end_coupling
    output c = analysis.lines.capacitance
    output l = analysis.lines.inductance
}

runmat run trace-impedance.fea --study microstrip reports Z0Z_0Z0​ close to 50 Ω and --study differential_pair reports ZdiffZ_\text{diff}Zdiff​ close to 100 Ω. To hit a target, change the width (and, for the pair, the gap) and run again: each solve takes about a second.

Describing the cross-section

A cross_section block lists the stackup from the top of the board down, then the traces.

Layer roleFieldsMeaning
dielectricthickness, permittivitycore or prepreg with its Dk at the frequency of interest
solder_maskthickness, permittivityconformal mask over the outer copper next to it: thickness deep on the laminate between traces and over each trace's top and sidewalls
signalthickness, optional fill_permittivitythe routed copper layer; between traces it is filled with mask or air on an outer layer and with the dielectric directly above on an inner layer, unless fill_permittivity says otherwise
planethicknessa full reference plane at 0 V
Trace fieldMeaning
role signal or grounda line whose parameters are reported, or coplanar ground copper held at 0 V
layerthe copper layer it is etched on; every trace of one section is on the same layer
centerlateral position of the trace centre (default 0)
widthwidth of the base face, the face bonded to the laminate
etch_anglesidewall angle from the base face (default 90°); the far face is narrower by 2t/tan⁡θ2t/\tan\theta2t/tanθ
base = top or bottomwhich face is the base; by default the laminate side (bottom on the top layer, top on the bottom layer, bottom on an inner layer)

The domain lies between the reference planes nearest the signal layer. Layers beyond those planes do not affect the result, so a section may list the stackup only down to (or up to) the plane. An outer layer without a plane on its open side is surrounded by air: the section extends 60 dielectric heights to the sides and above, with insulating walls, which changes Z0Z_0Z0​ by less than 0.05 %. enclosure { half_width = …; air = … } sets other distances. A line needs a return conductor: a reference plane or ground traces.

Taking the stackup from the board

stackup = "./board.circuit.layout" reads the layer list (names, thicknesses, Dk and copper weights) from the board's layout file, so the section and the board cannot disagree. The traces then name the layout's copper layers, for example layer = "F.Cu". A layout with several stackups (rigid-flex) names one with stackup_name = rigid.

Broadside-coupled lines

Conductors on two copper layers of one section, such as a broadside-coupled pair Not yet releasedStatus, solve as one multiconductor line.

How the parameters are computed

The line is quasi-TEM: its cross-section is small compared with the wavelength, so the transverse field at each instant satisfies the 2D electrostatic equation on the section,

∇⋅(ε0εr∇φ)=0,\nabla\cdot\left(\varepsilon_0\varepsilon_r \nabla\varphi\right) = 0,∇⋅(ε0​εr​∇φ)=0,

with φ\varphiφ prescribed on the conductors and zero normal flux on the enclosure walls.

Capacitance. Holding signal conductor jjj at 1 V and every other conductor at 0 V gives the potential φj\varphi_jφj​. The Maxwell capacitance matrix per length is the energy form

Cij=∫Ωε0εr ∇φi⋅∇φj dA,C_{ij} = \int_\Omega \varepsilon_0\varepsilon_r\, \nabla\varphi_i\cdot\nabla\varphi_j \, dA ,Cij​=∫Ω​ε0​εr​∇φi​⋅∇φj​dA,

symmetric, with positive diagonal and negative off-diagonal terms. A second solve with every εr=1\varepsilon_r = 1εr​=1 gives C0\mathbf C_0C0​.

Inductance. Copper and laminate are non-magnetic, so the inductance matrix follows from the vacuum capacitance: L=μ0ε0 C0−1\mathbf L = \mu_0\varepsilon_0\,\mathbf C_0^{-1}L=μ0​ε0​C0−1​.

Single line. Z0=L/CZ_0 = \sqrt{L/C}Z0​=L/C​, εeff=C/C0\varepsilon_\text{eff} = C/C_0εeff​=C/C0​ and td=LC=εeff/ct_d = \sqrt{LC} = \sqrt{\varepsilon_\text{eff}}/ctd​=LC​=εeff​​/c per metre.

Several lines. The characteristic impedance matrix of the lossless multiconductor line is Zc=C−1/2(C1/2L C1/2)1/2C−1/2\mathbf Z_c = \mathbf C^{-1/2}\left(\mathbf C^{1/2}\mathbf L\,\mathbf C^{1/2}\right)^{1/2}\mathbf C^{-1/2}Zc​=C−1/2(C1/2LC1/2)1/2C−1/2. impedance is its diagonal, the impedance of each line with the others held at 0 V. For a pair driven differentially, v=[1,−1]\mathbf v = [1, -1]v=[1,−1], and in common, v=[1,1]\mathbf v = [1, 1]v=[1,1]:

Zdiff=vdTZcvd,Zcomm=14 vcTZcvc,Zodd=Zdiff/2,Zeven=2Zcomm,Z_\text{diff} = \mathbf v_\text{d}^T \mathbf Z_c \mathbf v_\text{d},\qquad Z_\text{comm} = \tfrac14\,\mathbf v_\text{c}^T \mathbf Z_c \mathbf v_\text{c},\qquad Z_\text{odd} = Z_\text{diff}/2,\qquad Z_\text{even} = 2Z_\text{comm},Zdiff​=vdT​Zc​vd​,Zcomm​=41​vcT​Zc​vc​,Zodd​=Zdiff​/2,Zeven​=2Zcomm​,

and the modal effective permittivity is vTCv/vTC0v\mathbf v^T\mathbf C\mathbf v / \mathbf v^T\mathbf C_0\mathbf vvTCv/vTC0​v. On a microstrip the odd mode travels faster than the even mode, because more of its field is in air.

Coupling. With the mutual terms Cm=−C12C_m = -C_{12}Cm​=−C12​ and Lm=L12L_m = L_{12}Lm​=L12​ against Cs=C11C22C_s = \sqrt{C_{11}C_{22}}Cs​=C11​C22​​ and Ls=L11L22L_s = \sqrt{L_{11}L_{22}}Ls​=L11​L22​​:

Kb=14(LmLs+CmCs),Kf=12(CmCs−LmLs).K_b = \tfrac14\left(\frac{L_m}{L_s} + \frac{C_m}{C_s}\right),\qquad K_f = \tfrac12\left(\frac{C_m}{C_s} - \frac{L_m}{L_s}\right).Kb​=41​(Ls​Lm​​+Cs​Cm​​),Kf​=21​(Cs​Cm​​−Ls​Lm​​).

A step of ΔV\Delta VΔV with rise time trt_rtr​ on one line of a coupled length ℓ\ellℓ gives a near-end voltage Kb ΔVK_b\,\Delta VKb​ΔV on the quiet line (once 2ℓ/v>tr2\ell/v > t_r2ℓ/v>tr​) and a far-end pulse of about Kf (ℓ/v) ΔV/trK_f\,(\ell/v)\,\Delta V/t_rKf​(ℓ/v)ΔV/tr​. In a homogeneous dielectric (stripline) Kf=0K_f = 0Kf​=0; on microstrip KfK_fKf​ is negative because inductive coupling dominates.

Discretization. The mesher builds a graded triangle mesh whose lines follow every layer interface, the mask surfaces and the trace edges, including sloped sidewalls. Elements are smallest at trace edges and corners, where the field is singular, and grow geometrically away from them. On linear triangles the element matrix is

Ke=ε0εr4A(bbT+ccT),\mathbf K_e = \frac{\varepsilon_0\varepsilon_r}{4A}\left(\mathbf b\mathbf b^T + \mathbf c\mathbf c^T\right),Ke​=4Aε0​εr​​(bbT+ccT),

with AAA the area and bib_ibi​, cic_ici​ the corner coordinate differences. Conductor nodes are prescribed; one sparse Cholesky factor of the free block serves every signal conductor as a right-hand side, on the admitted CPU threads.

Mesh fieldDefaultMeaning
edge_sizesmallest feature / 1000element size at trace edges and corners
growth1.1size ratio between neighbouring elements
max_sizetwice the dielectric heightlargest element, reached in the far field

The smallest feature is the least of the copper thickness, trace widths, gaps, dielectric and mask thicknesses. A section that would not fit the run's memory budget is rejected with its size and the budget.

Accuracy

Against Hammerstad and Jensen's microstrip forms the default mesh gives Z0Z_0Z0​ and εeff\varepsilon_\text{eff}εeff​ within 0.5 %. Against Cohn's exact stripline and coupled-stripline solutions it gives each impedance within 0.3 %. Refining the edge size converges Z0Z_0Z0​ to better than 0.1 %. The electromagnetic validation page lists these checks with their problems, tolerances and results, including agreement with the IPC-2141A forms inside their stated ranges.

The parameters are quasi-static. They hold while the cross-section is small compared with the wavelength in the dielectric, which covers board traces well into the gigahertz range; dispersion of εeff\varepsilon_\text{eff}εeff​ at higher frequencies and loss are not included.

On this page
  • A 50 Ω microstrip and a 100 Ω pair
  • Describing the cross-section
  • Taking the stackup from the board
  • Broadside-coupled lines
  • How the parameters are computed
  • Accuracy