How to calculate
Convert decibels to a matched wave amplitude ratio. Build the pi pad so each port sees its selected resistance when the opposite port is terminated. The series element goes between ports, and each shunt goes to ground.
Worked example
Use Matched attenuation (dB) 6 · Terminations Equal input and output impedances · Input impedance (Ω) 50. The result is ≈ 37.351877034 Ω.
Input and result notes
Unequal impedances require sufficient loss for all resistors to be passive. Choose practical resistor values and check their power ratings and high-frequency behavior.