An impedance calculator for a 4-layer PCB works out the characteristic impedance of a transmission line (usually a microstrip or stripline) from your stack-up geometry and material properties. You enter trace width, dielectric thickness, copper weight, and the dielectric constant of the core and prepreg, and it returns the impedance in ohms (typically 50 Ω for single-ended, 90 Ω or 100 Ω for differential pairs). This article explains how the calculator works, what inputs matter, and how to interpret the results for a real 4-layer board.
Formula
The calculator uses the standard IPC-2141 microstrip approximation for a surface trace over a ground plane:
Z0 = (87 / √(Er + 1.41)) × ln(5.98 × h / (0.8 × w + t))
where:
- Z0 = characteristic impedance (Ω)
- Er = relative permittivity (dielectric constant) of the substrate
- h = height of the dielectric between the trace and the reference plane (mils)
- w = trace width (mils)
- t = copper thickness (mils)
This formula assumes a microstrip (trace on an outer layer, reference plane directly below) and is accurate for w/h ratios between 0.1 and 3.0, and for Er between 1 and 15. It does not include the effect of solder mask, which typically lowers impedance by 2–5 Ω, so many designers add a correction factor or use a field solver for final verification.
Worked Example
Using the default values from the calculator:
- Trace width (w) = 6 mil
- Dielectric height (h) = 5 mil
- Copper thickness (t) = 1.4 mil (1 oz copper)
- Dielectric constant (Er) = 4.2 (typical FR-4)
First, compute the denominator inside the log: 0.8 × 6 + 1.4 = 4.8 + 1.4 = 6.2. Then compute 5.98 × 5 / 6.2 = 29.9 / 6.2 ≈ 4.8226. The natural log of 4.8226 is about 1.5736. Now compute the leading factor: 87 / √(4.2 + 1.41) = 87 / √5.61 ≈ 87 / 2.368 ≈ 36.74. Multiply: 36.74 × 1.5736 ≈ 57.8 Ω. The calculator shows 57.82 Ω, which matches.
Why 4-Layer Stack-Up Matters
A 4-layer PCB typically has this layer order:
- Top layer (signal or component side)
- Dielectric (prepreg)
- Internal plane layer (usually ground)
- Dielectric (core)
- Internal plane layer (usually power)
- Dielectric (prepreg)
- Bottom layer (signal)
The two internal layers are almost always solid copper planes. This gives you two clean reference planes, so both outer layers can carry controlled-impedance traces. The dielectric between the outer layer and the adjacent plane is usually prepreg, while the core sits between the two internal planes. The thickness of that prepreg (h in the formula) directly controls impedance. A thinner prepreg gives lower impedance for the same trace width; a thicker prepreg gives higher impedance.
How to Use the Calculator for a Real Board
To get a useful result, you need the actual stack-up from your PCB manufacturer. Do not guess the dielectric height or constant. Contact the fab and ask for the “impedance stack-up” or “controlled impedance” options. They will provide:
- The dielectric constant of the prepreg (often 4.2–4.5 for FR-4, but can be lower for high-speed materials)
- The thickness of the prepreg after lamination (in mils or mm)
- The copper weight (1 oz = 1.4 mil, 0.5 oz = 0.7 mil)
Then you enter those values into the calculator and adjust the trace width until the impedance matches your target (50 Ω is common for single-ended, 90 Ω for USB, 100 Ω for Ethernet). The calculator gives you a starting point; the fab will fine-tune the width based on their own field solver.
Microstrip vs. Stripline
The calculator above is for a microstrip: a trace on an outer layer with one reference plane. In a 4-layer board, you can also route traces on the internal layers, which creates a stripline configuration (trace sandwiched between two planes). Stripline impedance is lower for the same width and height, and the formula is different:
Z0 = (60 / √Er) × ln(4h / (0.67 × (0.8w + t)))
where h is the distance between the two planes. Stripline offers better shielding and lower crosstalk, but it is harder to route because both internal layers are usually planes. Many designers keep the planes intact and route on the outer layers as microstrip.
Common Mistakes and How to Avoid Them
- Using the wrong dielectric height: For a microstrip, h is the distance from the trace to the plane, not the total board thickness. In a 4-layer board, that is the prepreg thickness, not the core.
- Ignoring solder mask: Solder mask over the trace lowers impedance. If your target is 50 Ω, the unmasked calculator might give 52 Ω, and the final board will be closer to 49 Ω. Many fabs adjust for this automatically.
- Mixing units: The formula works with any consistent unit (mils, mm, inches), but you must use the same unit for w, h, and t. The calculator above uses mils; if you enter mm, the result will be wrong.
- Assuming FR-4 has a constant Er: FR-4’s dielectric constant varies with frequency and resin content. At 1 GHz it might be 4.2, but at 10 GHz it could drop to 3.8. Use the value your fab specifies for your frequency range.
Limitations of the Formula
The IPC-2141 formula is a closed-form approximation. It is accurate enough for initial design, but it does not account for:
- Non-homogeneous dielectric (air above the trace, FR-4 below)
- Trace thickness effects beyond the simple correction
- Adjacent traces (crosstalk) or ground pour on the same layer
- Etch factor (trapezoidal trace cross-section)
For high-speed digital (above 1 Gbps) or RF, you should use a 2D field solver (like Polar Si8000, or free tools like KiCad’s impedance calculator) and verify with the manufacturer’s coupon test. The calculator here is a quick sanity check, not a substitute for fab verification.
Frequently Asked Questions
What is the typical impedance for a 4-layer PCB?
Most digital signals use 50 Ω single-ended and 90 Ω or 100 Ω differential. USB 2.0 is 90 Ω differential, Ethernet is 100 Ω, and HDMI is 100 Ω differential. Analog RF often uses 50 Ω single-ended. Your design spec will tell you the target.
How do I choose the trace width for 50 Ω on a 4-layer board?
Using the calculator, start with a typical stack-up: 5 mil prepreg, 1 oz copper, Er = 4.2. Adjust the width until the output reads 50 Ω. For that stack-up, you’ll get about 8.5 mil. Your fab will give you the exact width for their process.
Does the calculator work for differential pairs?
No, this calculator is for single-ended traces. Differential impedance depends on the spacing between the two traces as well as the width and height. You need a differential calculator or a field solver. As a rough guide, a 50 Ω single-ended trace with a gap equal to the width often gives around 90 Ω differential, but this varies.
What is the difference between a 2-layer and 4-layer impedance calculation?
On a 2-layer board, the reference plane is on the bottom layer, and the dielectric is the full board thickness (often 62 mil). That requires much wider traces (around 30 mil for 50 Ω). A 4-layer board uses thin prepreg (3–6 mil), so traces can be much narrower (5–10 mil), saving space.
Why does my manufacturer ask for a specific stack-up?
Because impedance depends on the exact dielectric thickness and constant, which vary between materials and lamination processes. The fab will provide a stack-up that meets your impedance targets, but you must specify which layers need controlled impedance.
Can I use this calculator for high-frequency RF?
It gives a rough estimate, but for RF above 1 GHz, you should use a field solver that accounts for frequency-dependent Er, surface roughness, and dispersion. The formula is a DC/low-frequency approximation.
Related
Formula used
in w | Trace width (w) | mil | 6 | 0.5 | 100 in h | Dielectric height (h) | mil | 5 | 0.5 | 200 in t | Copper thickness (t) | mil | 1.4 | 0.1 | 10 in er | Dielectric constant (Er) | - | 4.2 | 1 | 10 out zo | Characteristic impedance | Ω | (87 / sqrt(er + 1.41)) * ln(5.98 * h / (0.8 * w + t)) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow
- How to Automatically Create a Table of Contents