RF measurement calculator for spectrum analyzer work with external attenuators
Computes the actual source power from a power level measured on a spectrum analyzer, given the sum of external step-attenuator values and the analyzer's internal attenuation setting. Also converts directly between dBm and watts, and between dBm and RMS/peak-to-peak voltage across a chosen system impedance (default 50 Ω), which is useful when comparing analyzer readings to oscilloscope or signal generator values.
P_out[dBm] = P_in[dBm] − L[dB]P_in[dBm] = P_out[dBm] + L[dB]P_src[dBm] = P_meas[dBm] + L_ext[dB] + L_int[dB]P[mW] = 10^(P[dBm] / 10)P[W] = 10^((P[dBm] − 30) / 10)P[dBm] = 10 · log₁₀(P[mW])P[W] = (V_rms²) / RV_rms = √(P[W] · R)V_pp = 2 · √2 · V_rms ≈ 2.828 · V_rms