microstrip
microstripCalculate PCB microstrip trace width for a target characteristic impedance using the Hammerstad-Jensen closed-form equations. Given target impedance (Z0), substrate dielectric constant (er), substrate height, and copper weight, returns the required trace width and effective dielectric constant. Optionally computes effective wavelength at a given frequency. Essential for RF PCB layout to achieve controlled impedance traces (e.g. 50 ohm for SMA connectors). References IPC-2141.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| er | No | Substrate relative dielectric constant (default 4.6 for FR-4) | |
| z0_ohm | No | Target characteristic impedance in ohms (default 50) | |
| freq_mhz | No | Optional frequency in MHz for effective wavelength calculation | |
| copper_oz | No | Copper weight in oz/ft2 (1 oz = 0.035 mm thickness) | |
| height_mm | Yes | Substrate height (dielectric thickness) in millimetres |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| er_eff | Yes | Effective dielectric constant of the microstrip | |
| width_mm | Yes | Required trace width in millimetres | |
| wavelength_eff_mm | Yes | Effective wavelength in millimetres at the given frequency (null if freq not provided) |