This paper proposes a practical new algorithm for the calculation of basic ac (alternate current) electric values: average, rms, active power and energy. Based on the value of the integration of the original input (analogue) signal, a calculation is performed using the definition formulae. The realization avoids the use of a separate circuit for sample and hold, and the analogue signal was directly introduced into the integration circuit, after which its digital equivalent is formed. The suggested measuring system was simulated, realized in a practical set-up and tested. The errors related to the signal processing and errors bound were investigated and provided. A processing precision better than 10 ppm was achieved.