PCB manufacturing PCB manufacturing
Home > Blog

Touchstone Files

S21 vs. S12: Why Your VNA Traces Disagree on an RF PCB
Monday, November 16th, 2026

If a passive PCB coupon expected to be reciprocal gives you different S21 and S12, compare the complex transmission coefficients, not just the two dB traces. Then put a known reciprocal verification device at the same calibration planes and measure it in both directions. If the reference shows the same mismatch, fix the setup before blaming the board. If the VNA agrees but the exported file does not, inspect the file and processing chain before measuring again.

Two-port RF PCB test coupon with connectors at opposite ends on a workbench
A two-port PCB coupon has a forward and reverse transmission path. Confirm both directions at the same reference planes.

S21 vs. S12: Which Direction Is Each Trace?

The first index is the response port; the second is the driven port. S21 is the outgoing wave at port 2 divided by the incident wave at port 1, with no incident wave from port 2. S12 reverses the drive and response with the same port numbers. The other port is terminated in the measurement reference impedance for the coefficient definition. Changing the drive direction does not mean renumbering the connectors on the board.

Both coefficients have magnitude and phase. Displaying 20 log10 of their magnitudes answers how much the signal is attenuated or amplified, not whether their complex values agree. Keep a port map showing the board end, cable and VNA port so another engineer can reproduce the setup after a reconnect.

Two-port diagram showing S21 from port 1 to port 2 and S12 from port 2 to port 1
Keep port labels fixed. Drive each port in turn and measure the opposite port.

Reciprocal Network: What Should and Should Not Match?

For an ordinary reciprocal two-port measured with equal real reference impedances and consistent power-wave normalization, S21 = S12 at the same frequency and reference planes. This is equality of the full complex values. The two reflections, S11 and S22, need not match: a board can have a different connector launch on each end and still transmit reciprocally. For a compatible multiport basis, the comparison is against the plain matrix transpose, not its complex conjugate.

Reciprocity is separate from passivity. A correctly specified ferrite isolator, for example, can be passive while intentionally attenuating reverse transmission more than forward transmission. A biased active stage can also be direction-dependent. Check the intended function, terminations, bias and power setting before applying a reciprocal-coupon release rule. Use the S-parameter passivity check separately if the model must also satisfy a passive power bound.

S21 and S12: Equal dB Can Still Hide a Phase Error

Illustrative values at 5 GHz: S21 = 0.50 at 0° and S12 = 0.50 at +10°. Both magnitude readings are −6.02 dB. In rectangular form, S21 is 0.5000 + j0 and S12 is about 0.4924 + j0.0868. Their complex difference has magnitude 0.0872. If you subtract only their dB values, you find zero and miss the disagreement.

Plot the absolute residual |S21 − S12| versus frequency using linear complex values. For two equal magnitudes A and phase difference Δφ its value is 2A × |sin(Δφ/2)|. Do not use a large phase swing at a very small signal level as stand-alone evidence; first establish that both measurements are above the usable noise and leakage limits. The residual is dimensionless, not dB.

Illustrative complex-plane sketch of equal 0.50 magnitudes at zero and positive ten degrees with a residual of 0.0872
Same magnitude, different phase. The chord between the two endpoints is the complex residual, not a subtraction of dB values.

VNA Calibration: Verify Forward and Reverse Before Reconnecting

  1. State the reference planes. Record cable orientation, adapters, fixture, connector condition, calibration method, sweep grid, source power and IF bandwidth. Use an applicable full two-port correction at the agreed planes, such as SOLT for appropriate coaxial standards or a qualified TRL setup for a fixture.
  2. Measure an independent reciprocal reference at those planes. An appropriate verification thru, line or attenuator should be independent of the solve and suit the band and loss of interest. A low-loss thru alone does not qualify a deep stopband. Record both phase and magnitude.
  3. Repeat the DUT without an avoidable setup change. First capture both VNA directions without physically swapping the cables. If a reversal check is needed, keep the calibrated cables and adapters fixed as far as practical, document which board end goes to which port, and recheck the reference after reconnecting. Do not interpret a reversed setup as a clean confirmation if a cable had to move substantially.

Keysight describes distinct forward and reverse terms in full two-port error correction. A good trace in one direction does not validate the other. A mismatch that appears on the reference is a reason to check the instrument path, not proof that a particular receiver or switch failed.

VNA Dynamic Range: Find Where the Comparison Stops Being Useful

In a deep stopband, the reverse trace may be dominated by instrument noise or residual leakage rather than transmission through the filter. Check a suitable terminated or isolated reference under the same sweep settings, then repeat both traces at a verified lower IF bandwidth. Noise can decrease while systematic leakage stays. If either direction remains too close to the established floor, flag the band as inconclusive rather than publishing a direction-specific isolation number.

If a stable residual remains after the noise check, use the VNA isolation calibration guide to decide whether to use the optional correction and verify it against an independent attenuator before comparing the two directions.

Observed pattern Next discriminating check Decision
Same dB, phase split in the passband Compare raw complex traces with an independent reciprocal reference at unchanged planes. If the reference shows the split, requalify the setup; do not reject the PCB.
Difference mainly near the stopband floor Check residual leakage and repeat both directions with verified measurement settings. If acceptable uncertainty cannot be shown, report the band as inconclusive.
Raw traces agree; processed file does not Re-import the raw export, then apply reference corrections and transforms one step at a time. Fix the step that introduced the mismatch rather than hiding it by copying a column.
Difference persists with a clean reference Check expected directionality, fixture removal, port maps and stimulus-dependent behavior; repeat independently. Escalate before declaring nonreciprocity on an ordinary PCB coupon.

Touchstone File: Compare Each Processing Stage

Save the instrument traces and the untouched file before renormalization, de-embedding, port extension or mixed-mode conversion. Check the frequency units, data format (RI, MA or DB), port map and real reference resistance. In conventional two-port Version 1 data the file lists S11, S21, S12, S22. Touchstone 2.1 allows an explicit [Two-Port Data Order]. Read it rather than imposing an order. Check [Matrix Format] too: a triangular file format can encode assumed symmetry and cannot independently prove that both directions were measured.

Re-import with a compatible reader and compare known complex samples against the instrument first. Then replay each processing step. A plain exchange of S21 and S12 by itself changes the sign of S21 − S12 but not its magnitude; a new nonzero residual points to another mismatch, such as a wrong column, inconsistent reference correction, grid alignment, or asymmetric processing. Never replace the reverse trace with the forward trace to make an undiagnosed problem vanish.

S-Parameter Reciprocity in Three PCB Measurement Tasks

PCB interconnect coupon

Use the raw two-direction data to qualify a passive trace and its launches. For a representative verification condition, compare trace residual over the required band and recheck the references if the ports have been disturbed. Release only if the residual meets the agreed data-quality limit and the coupon meets its own insertion-loss and reflection requirements. Different S11 and S22 can still matter to the system even if reciprocity passes.

RF filter on an assembled board

Compare the two transmission directions in the passband and establish usable measurement range in the stopband. Keep fixture terminations and any bias networks in the defined configuration. Report measurable bands separately from floor-limited bands; do not accept a stopband number simply because forward and reverse both look flat at the instrument floor.

PCB with an isolator or active RF chain

The design may intentionally have unequal transmissions. Verify the expected forward direction and reverse isolation against its specification at the specified bias, power and termination. Reversing a connectorized fixture still requires a defined port map. For a three-port device report the unused-port termination and do not infer the complete multiport behavior from a two-port subset.

VNA Measurement Uncertainty: What Goes in the Release Report?

Use this worksheet to review a new S2P file. The test plan must define frequency bands, expected network class, reporting metric, validation reference and evidence for the decision limit. A set of repeat sweeps estimates repeatability but does not by itself bound systematic errors. Have the lab include validated calibration, fixture, dynamic-range and reference-check contributions appropriate to the band.

Required evidence What to record If missing
Comparable data Port mapping, same planes, impedances, operating state and frequency grid; two measured directions. Hold the comparison. A symmetrical export is not independent evidence.
Uncertainty and usable band Calibration and independent checks, residual repeatability, receiver limits and decision rule. Flag measurements outside the validated band or level as inconclusive.
Illustrative decision at 5 GHz |S21 − S12| = 0.0872; assume a project-specific review trigger of 0.0200 for this example. 0.0872 exceeds 0.0200. Hold the file and localize the cause; this alone does not establish a faulty PCB.

The example trigger is not an IPC threshold or an instrument specification. If the report cannot show how the setup supports a limit, request the missing evidence before qualifying the file or changing the fixture.

S21 vs. S12 FAQs

Do S21 and S12 have to be the same on every passive PCB?

No. Confirm the network is expected to be reciprocal and the two measurements have comparable references. A passive isolator is a counterexample.

Can S11 and S22 differ on a reciprocal board?

Yes. Reciprocity relates exchanged transmission terms. Different launches or impedances at the two ends can give different reflections.

Why can the two traces match in dB but disagree in the file?

A dB plot omits phase. Compare the real and imaginary components, or reconstruct them from magnitude and phase before subtracting.

Does swapping the two VNA cables prove the PCB is directional?

No. You may also change cable shape, contact repeatability or calibration planes. Keep a board-end map and verify the calibrated paths.

Can a lower IF bandwidth fix S21 and S12 disagreement?

It can reduce random receiver noise. It does not undo a wrong reference plane, fixture model, or stable leakage path.

Can I use a reciprocal thru to validate reverse isolation?

A thru is a useful basic check but normally does not establish the uncertainty at the much lower transmission level of an isolation measurement.

Does a symmetric Touchstone file prove the two directions were measured?

No. A reader can fill missing entries from triangular storage. Ask for the measured full two-direction data and the export settings.

Should I average S21 and S12 to repair a file?

Keep the raw data independent. Use symmetry constraints only as a documented model decision after establishing that the network is reciprocal and understanding the original discrepancy.

Technical References

Custom RF PCB Fabrication With Stackup and Launch Review

Send EBest Circuit your RF PCB files, required impedance, connector footprint and operating band to flag stackup and launch constraints before the prototype build. Include coupon or report requirements if they are part of acceptance. Request an RF PCB quote and DFM review to agree on the build and verification scope before ordering.

You may also like

Touchstone File Guide: Read S2P Data
Saturday, November 7th, 2026

A Touchstone file stores frequency-dependent network parameters in text form. An .s2p file normally describes a two-port network, with four complex S-parameters at each frequency. Before importing it into a PCB simulation, check the units, data representation, port map and reference impedance; a file that loads successfully can still describe a different setup from the one you intended.

This guide follows a hypothetical passive RF PCB coupon between two connectors. Numerical examples are teaching values, not measured performance. The reference specification is Touchstone 2.1, ratified January 26, 2024; importing software may support a narrower subset.

RF PCB coupon connected to coaxial cables on a laboratory bench
AI-generated RF measurement-context illustration, not a measured S-parameter result or factory test record.

What an S2P File Tells You—and What It Does Not

The data describes a network response at specified frequencies and reference conditions, not the complete physical design. For the coupon, S21 describes transmission toward port 2 from excitation at port 1, while S11 describes reflection at port 1 under the parameter definition.

The file may originate from a measurement or a simulation. That origin, the physical port locations and included fixtures need accompanying documentation. The filename alone does not establish temperature, calibration, geometry, manufacturing revision or validation quality. It also does not make a small-signal device model valid for every bias or large-signal operating condition.

Read the Option Line Before the Numbers

The option line explains how to interpret the data. For the example # GHz S MA R 50, read the fields separately rather than assuming a familiar instrument’s export defaults.

Field Example Meaning
Frequency unit GHz 1 means 1 GHz
Parameter type S Scattering parameters
Pair format MA Linear magnitude and angle
Reference R 50 50 Ω reference in this example
Angle unit Degrees Not radians

Version-specific keywords can affect the interpretation, including reference values and port ordering. Read the complete header and the applicable specification instead of treating this one example as a universal template.

Compare MA, DB and RI Using the Same Complex Value

All three formats can describe the same complex S-parameter, but the two stored numbers mean different things. Keysight’s S-parameter table documentation identifies these supported representations.

Format Pair means Teaching example
MA Magnitude, angle 0.5, −90°
DB dB value, angle −6.0206, −90°
RI Real, imaginary 0, −0.5

The example value is −j0.5. Its magnitude in dB is 20 log10(0.5) ≈ −6.0206 dB. These are calculated representations, not three measurement results. Simply changing MA to DB in the header without converting the data changes the meaning of the file.

Check the Special Two-Port Data Order

Do not assume every two-port row is stored in the intuitive S11, S12, S21, S22 sequence. The legacy two-port convention is frequency followed by the S11, S21, S12 and S22 pairs. Versions 2.0 and 2.1 use the applicable [Two-Port Data Order] declaration to identify the permitted order.

For the teaching coupon, manually identify one frequency and its transmission pair, then compare that point with the imported plot. This spot check can catch an ordering mistake before the wrong column becomes a design conclusion. Preserve any original header instead of rearranging columns by visual intuition.

Map File Ports to Physical Connector Locations

A correct numeric matrix still needs a physical port map. Label the coupon ends in the review record, identify signal and reference conductors, and confirm the direction represented by S21. Do not assume the left side of a photograph is always port 1.

For a reciprocal uniform coupon, forward and reverse transmission can look similar, so a reversed connection may not be obvious from one magnitude plot. Connector launches or other asymmetric features can matter when the model is connected to the next network. Keep a simple physical connection sketch with the data, separate from the file’s numeric indexing.

Separate Reference Impedance from the Connected Load

The S-parameter reference defines the wave representation; it does not say that the actual trace has a constant 50 Ω impedance or that every future connected load must equal 50 Ω. The simulator must interpret the file with the correct reference before connecting other circuit elements.

When changing the S-parameter reference, use a valid renormalization operation rather than editing the R value alone. The scikit-rf renormalization example shows that the same physical load has a different reflection coefficient under a changed reference. More advanced complex-reference cases also require attention to wave definitions; do not improvise them from a simple real-resistance example.

Understand Why S4P Does Not Automatically Mean Differential Data

Four ports can represent two single-ended conductors at each end, but that physical arrangement must be established. A four-port file can also describe another network entirely. Even for a differential pair, single-ended data and mixed-mode data require the correct interpretation and pairing.

For a differential version of our coupon, identify the positive and negative conductors at both ends and check the file’s declared mode/order information. A mistaken pairing can produce misleading differential transmission or mode-conversion results. Do not rename .s4p to .s2p to make an import dialog accept it.

Four-port PCB coupon with SMA connectors and detached coaxial cable ends
AI-generated connection-planning illustration. Actual port numbering and differential pairing must come from the data provider.

Check the Frequency Band and Low-Frequency Treatment

The dataset supports its stated frequency range; behavior outside that range depends on the importing tool’s modeling assumptions. Record the first and last frequencies, point spacing and whether the intended analysis requires extrapolation or a DC estimate.

For the coupon, compare the planned simulation band with the data before running a time-domain analysis. Ask how the tool handles missing low-frequency data, interpolation and high-frequency truncation. A smooth-looking extrapolated curve is not an additional measurement. Keep any fitted or extended dataset distinguishable from the original supplied file.

Identify What the Measurement Reference Planes Include

The model boundary determines which physical effects are already in the data. A coupon file measured at coaxial reference planes may include launches that a trace-only electromagnetic model excludes. Cascading both without checking their boundaries can count the same transition twice.

Ask for the calibration or de-embedding description and a physical definition of each reference plane. For the teaching network, decide whether the connector bodies, launch pads and uniform line are included. This is different from the numerical impedance reference: both need to be correct, but they answer different questions.

Check Physical Plausibility for the Intended Network

Passing a syntax check does not demonstrate passivity, causality, reciprocity or measurement accuracy. A passive coupon and a biased amplifier are different model classes, so the applicable checks must match the object.

Use the simulator’s documented validation tools and investigate suspicious behavior against the original data and measurement setup. Do not judge full multiport passivity solely by looking at one S21 magnitude. Likewise, do not “repair” a model automatically without understanding how the correction changes its response. Save the original and document any authorized fitted or corrected version.

Diagnose an Import Failure Without Corrupting the File

Identify the reader’s supported version and the exact reported problem before altering the data. Common review areas include the option line, frequency units, port count, pair format and required version-specific keywords.

Keep an unchanged original, test the file with a suitable independent reader, and compare at least one known point. If a format conversion is required, use a tool that actually converts the data and preserves the intended network meaning. Deleting unfamiliar header lines until the error disappears can remove information the importer needed to interpret the file correctly.

Release the Dataset with a Short Model Record

A usable handoff includes enough context to connect the network correctly and understand its limits.

  • File identity, revision and measured or simulated origin.
  • Format version, parameter type and pair representation.
  • Frequency range and any fitting or extrapolation.
  • Physical port map, reference planes and impedance convention.
  • Relevant bias, temperature and construction conditions.
  • Import spot check and applicable model validation results.

For interpretation of reflected signals, see the related PCB return loss and S11 guide. Reading the file correctly is the starting point for that interpretation, not proof that the manufactured channel meets its requirement.

FAQ

Can a CSV export be renamed to .s2p?

No. The content must follow the supported Touchstone syntax and contain the required complex network data. A spreadsheet of frequency and one magnitude curve is not a complete two-port network. Use an appropriate export or conversion method, then verify units, ordering and a known data point in the receiving tool.

Why does a file open in one tool but not another?

The tools may support different versions or subsets of the format, or may handle nonconforming input differently. Compare their documented capabilities with the actual header and data. A tolerant reader accepting the file does not prove full conformance, and a rejected file should not be fixed by removing required information blindly.

Can the file contain Y or Z parameters instead of S parameters?

Yes, the declared parameter type matters. Do not interpret every pair in a file as an S-parameter just because the workflow uses the word Touchstone. Check the option line and the receiving tool’s support for that parameter type. A conversion to scattering parameters must use the appropriate definitions and reference conventions.

Does a negative S21 dB value mean negative power?

No. It is a logarithmic representation of the magnitude of a complex transmission parameter under the stated reference definition. In the teaching example, magnitude 0.5 corresponds to about −6.02 dB. Interpreting delivered power additionally requires the relevant network and termination conditions; the sign alone is not a power measurement.

Can I recover phase from a magnitude-only screenshot?

Not as a complete replacement for the original complex dataset. A plot of magnitude omits phase information and usually lacks the full numeric precision and context needed for a network model. Ask for the original file rather than reconstructing a production simulation from a screenshot and assuming the missing phase is zero.

Does an S2P file fully describe an operational amplifier?

Not across every operating condition. Device data depends on how the part was biased, connected and characterized, and a small-signal network description does not replace all nonlinear, stability or supply behavior. Check the manufacturer’s intended model use and conditions before applying a two-port representation to an amplifier circuit.

Should I delete comment lines to improve compatibility?

Only if a documented conversion or troubleshooting step justifies it and the original is preserved. Comments may carry essential human-readable context such as port names or measurement conditions, even when they do not alter numeric parsing. Keep that context in the handoff record rather than stripping it simply to make the file smaller.

Is a supplier’s simulated file equivalent to a measured production coupon?

No. Both can be useful, but they answer different evidence questions. A simulated file depends on the model assumptions; a measurement depends on the specimen and test setup. Label the origin clearly and compare the construction and conditions with the intended PCB. Do not present simulation output as a manufacturing test certificate.

For a Best Technology RF PCB enquiry, send the stackup, conductor requirements, model boundary and intended validation scope to sales@bestpcbs.com. Keep the supplied network file paired with its physical port map and construction revision.

You may also like