Periodic calibrations of Energy Measurement Systems (EMS) installed in locomotives must be carried out to demonstrate the required accuracy established in the EN 50463-2 standard according to European Parliament and Council Directive 2008/57/EC on the interoperability of rail systems within the Community. As a result of the work performed in the “MyRailS” EURAMET project an AC calibration facility was developed consisting of a fictive power source was developed. This fictive power source can generate distorted sinusoidal voltages up to 25 kV-50 Hz and 15 kV-16.7 Hz as well as distorted sinusoidal currents up to 500 A with harmonic content up to 5 kHz or phase-fired current waveform stated in EN50463-2 standard. These waveforms are representative of those that appear during periods of acceleration and breaking of the train. Reference measuring systems have been designed and built consisting of high voltage and high current transducers adapted to multimeters, which function as digital recorders to acquire synchronized voltage and current signals. An approved procedure has been developed and an in-depth uncertainty analysis has been performed to achieve a set of uncertainty formulas considering the influence parameters. Different influence parameters have been analyzed to evaluate uncertainty contributions for each quantity to be measured: rms voltage, rms current, active power, apparent power and non-active power of distorted voltage and current waveforms. The resulting calculated global expanded uncertainty for the developed Energy Measuring Function calibration set up has been better than 0.5% for distorted waveforms. This paper is focused on presenting the complete set of expressions and formulas developed for the different influence parameters, necessary for uncertainty budget calculation of an Energy Measuring Function calibration.