Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon

Calculators PCB

PCB via current and parasitics calculator

From the finished hole, the plating thickness, the board thickness and the pad and antipad diameters, the calculator gives the via's resistance, inductance, capacitance and thermal resistance, how much current one via carries for a temperature rise, and how many vias a current needs.

The barrel is a copper tube of section A = π t (d + t). Inductance and capacitance use the formulas of Johnson and Graham, High-Speed Digital Design; the current uses the IPC-2221 fit on the barrel section. The plating defaults follow IPC-6012: class 2 averages 20 µm, class 3 25 µm.

The calculator

The app's own calculator window, built from the BetterSPICE 0.8.1 source. What needs a schematic is greyed out here: placing the circuit, running it, applying values to parts and picking parts from the library. Open it in its own window.

The formulas it uses

These are the formulas the calculator shows, copied from its source code. The results in the window above come from the same code as the app.

Via formulas

  • A = π · t · (d + t)
  • R = (ρ(T) · h) / A
  • L = 5.08 · h · [ln(4 h / d) + 1] nH (h and d in inch)
  • C = (1.41 · εr · T · D1) / (D2 − D1 pF (inch))
  • Rθ = h / (k · A)
  • Current: IPC-2221 on the barrel section A, k = 0.048

Sources. Barrel resistance and thermal resistance from the copper cross section of the plated wall (ρ = 1.724e-8 Ω m, k = 385 W/(m K)). Inductance and capacitance: Howard Johnson and Martin Graham, High-Speed Digital Design, chapter on vias (L = 5.08 h [ln(4h/d) + 1] nH, C = 1.41 εr T D1 / (D2 − D1) pF, lengths in inch). Current capacity: IPC-2221 chart fit I = 0.048 ΔT^0.44 A^0.725 on the barrel section. Plating: IPC-6012 class 2 average 20 µm, class 3 25 µm. Several vias in parallel divide R and L and add their capacitance.

Simple and Advanced

Simple is the main values, one set of results and a plot. Advanced is the full design view: the operating range with its corners, tolerance and temperature, checks with their margin (a green tick, an amber warning or a red cross), the parts to order with the ratings they need, warnings that give the fact, the number and the fix, and plots over the whole range. A value typed in one view is the same in the other.

In the app it also places the circuit and checks it

In the app, the buttons under the result act on your circuit: Add the via R and L in series and run.

The last tab of the Advanced view, Verify in simulation, places the calculator's circuit and runs it, with measurements whose pass limits are the calculator's own numbers. A row the simulator cannot check says so and why. More in the manual: Via current and parasitics.