The gain of an electronic amplifier is calculated using the formula A = Vout/Vin, where A is gain, Vout is the output voltage, and Vin is input voltage. The gain of an amplifier determines the amount of amplification or attenuation of an input signal and is a critical parameter in electronic devices and circuits as it affects their performance and efficiency.