SNR is calculated as the ratio of the power of the signal to the power of the noise. Mathematically, it can be expressed as: SNR = P_signal / P_noise In decibels (dB), it is calculated as: SNR (dB) = 10 * log10(P_signal / P_noise) Where P_signal is the power of the signal and P_noise is the power of the noise.